1
0
Fork 0

Adding upstream version 2.4.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-06 10:19:19 +02:00
parent 7422bc4c2f
commit 3bbd99c56d
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 13 additions and 2 deletions

View file

@ -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:

View file

@ -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',

View file

@ -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