-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udev: Rework/simplify _cid_matches_tid()
Signed-off-by: Martin Belanger <[email protected]>
- Loading branch information
Martin Belanger
committed
Jun 12, 2023
1 parent
b4fb2b4
commit f02604d
Showing
6 changed files
with
685 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -856,7 +856,7 @@ def _nvme_cli_interop(self, udev_obj): | |
return | ||
|
||
# Did we receive a Change of DLP AEN or an NVME Event indicating 'connect' or 'rediscover'? | ||
if not _is_dlp_changed_aen(udev_obj) and not _event_matches(udev_obj, ('connected', 'rediscover')): | ||
if not _is_dlp_changed_aen(udev_obj) and not _event_matches(udev_obj, ('rediscover',)): | ||
return | ||
|
||
# We need to invoke "nvme connect-all" using nvme-cli's [email protected] | ||
|
@@ -873,6 +873,6 @@ def _nvme_cli_interop(self, udev_obj): | |
options = r'\x09'.join( | ||
[fr'{option}\x3d{value}' for option, value in cnf if value not in (None, 'none', 'None', '')] | ||
) | ||
logging.info('Invoking: systemctl restart nvmf-connect@%s.service', options) | ||
logging.debug('Invoking: systemctl restart nvmf-connect@%s.service', options) | ||
cmd = [defs.SYSTEMCTL, '--quiet', '--no-block', 'restart', fr'nvmf-connect@{options}.service'] | ||
subprocess.run(cmd, check=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.