-
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.
Merge pull request #372 from martin-belanger/v2.2.3-rc1
udev-rules: Only react to `rediscover` events (not `connected`)
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 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
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] | ||
|