Skip to content

Commit

Permalink
Merge pull request #372 from martin-belanger/v2.2.3-rc1
Browse files Browse the repository at this point in the history
udev-rules: Only react to `rediscover` events (not `connected`)
  • Loading branch information
martin-belanger authored Jun 12, 2023
2 parents fd07276 + 31f187f commit 3547a04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# STorage Appliance Services (STAS)

## Changes with release 2.2.3

Bug fixes:

* When processing kernel nvme events, only react to `rediscover` and not to `connected` events. The `connected` event happens too early (before the nvme device has been fully identified).
*

## Changes with release 2.2.2

Bug fixes:
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project(
'nvme-stas',
meson_version: '>= 0.53.0',
version: '2.2.2',
version: '2.2.3-rc1',
license: 'Apache-2.0',
default_options: [
'buildtype=release',
Expand Down
2 changes: 1 addition & 1 deletion staslib/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3547a04

Please sign in to comment.