Adding upstream version 2.4.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7422bc4c2f
commit
3bbd99c56d
3 changed files with 13 additions and 2 deletions
6
NEWS.md
6
NEWS.md
|
@ -1,5 +1,11 @@
|
||||||
# STorage Appliance Services (STAS)
|
# STorage Appliance Services (STAS)
|
||||||
|
|
||||||
|
## Changes with release 2.4.1
|
||||||
|
|
||||||
|
Bug fix:
|
||||||
|
|
||||||
|
* Restore backward compatibility with libnvme 1.11 and earlier. The controller attribute `discovery_ctrl` was added in libnvme 1.12. Prior to this version, the method `discovery_ctrl_set()` is to be used.
|
||||||
|
|
||||||
## Changes with release 2.4
|
## Changes with release 2.4
|
||||||
|
|
||||||
New features:
|
New features:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
project(
|
project(
|
||||||
'nvme-stas',
|
'nvme-stas',
|
||||||
meson_version: '>= 0.53.0',
|
meson_version: '>= 0.53.0',
|
||||||
version: '2.4',
|
version: '2.4.1',
|
||||||
license: 'Apache-2.0',
|
license: 'Apache-2.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'buildtype=release',
|
'buildtype=release',
|
||||||
|
|
|
@ -221,7 +221,12 @@ class Controller(stas.ControllerABC): # pylint: disable=too-many-instance-attri
|
||||||
host_traddr=self.tid.host_traddr if self.tid.host_traddr else None,
|
host_traddr=self.tid.host_traddr if self.tid.host_traddr else None,
|
||||||
host_iface=host_iface,
|
host_iface=host_iface,
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
self._ctrl.discovery_ctrl = self._discovery_ctrl
|
self._ctrl.discovery_ctrl = self._discovery_ctrl
|
||||||
|
except AttributeError:
|
||||||
|
# Note: discovery_ctrl_set() is deprecated. We keep it
|
||||||
|
# for backward compatibility with libnvme 1.11 and earlier.
|
||||||
|
self._ctrl.discovery_ctrl_set(self._discovery_ctrl)
|
||||||
|
|
||||||
# Set the DHCHAP host key on the controller
|
# Set the DHCHAP host key on the controller
|
||||||
# NOTE that this may eventually have to
|
# NOTE that this may eventually have to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue