diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:15:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:15:24 +0000 |
commit | fd6bd8e3ee83881f2f40686b21502926ddf977af (patch) | |
tree | 6093d44e4716db2c1f768c23c78359e34bb8e819 /staslib/defs.py | |
parent | Adding upstream version 2.3~rc3. (diff) | |
download | nvme-stas-fd6bd8e3ee83881f2f40686b21502926ddf977af.tar.xz nvme-stas-fd6bd8e3ee83881f2f40686b21502926ddf977af.zip |
Adding upstream version 2.3~rc4.upstream/2.3_rc4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'staslib/defs.py')
-rw-r--r-- | staslib/defs.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/staslib/defs.py b/staslib/defs.py index 877f6e6..fc1135b 100644 --- a/staslib/defs.py +++ b/staslib/defs.py @@ -36,18 +36,25 @@ KERNEL_IFACE_MIN_VERSION = KernelVersion('5.14') KERNEL_TP8013_MIN_VERSION = KernelVersion('5.16') KERNEL_HOSTKEY_MIN_VERSION = KernelVersion('5.20') KERNEL_CTRLKEY_MIN_VERSION = KernelVersion('5.20') +KERNEL_ALL_MIN_VERSION = max( + # Minimum version required to have support for all + KERNEL_IFACE_MIN_VERSION, + KERNEL_TP8013_MIN_VERSION, + KERNEL_HOSTKEY_MIN_VERSION, + KERNEL_CTRLKEY_MIN_VERSION, +) WELL_KNOWN_DISC_NQN = 'nqn.2014-08.org.nvmexpress.discovery' PROG_NAME = os.path.basename(sys.argv[0]) -NVME_HOSTID = '/etc/nvme/hostid' -NVME_HOSTNQN = '/etc/nvme/hostnqn' -NVME_HOSTKEY = '/etc/nvme/hostkey' +NVME_HOSTID = '@ETC@/nvme/hostid' +NVME_HOSTNQN = '@ETC@/nvme/hostnqn' +NVME_HOSTKEY = '@ETC@/nvme/hostkey' -SYS_CONF_FILE = '/etc/stas/sys.conf' -STAFD_CONF_FILE = '/etc/stas/stafd.conf' -STACD_CONF_FILE = '/etc/stas/stacd.conf' +SYS_CONF_FILE = '@ETC@/stas/sys.conf' +STAFD_CONF_FILE = '@ETC@/stas/stafd.conf' +STACD_CONF_FILE = '@ETC@/stas/stacd.conf' HAS_NBFT_SUPPORT = hasattr(nvme, 'nbft_get') NBFT_SYSFS_PATH = "/sys/firmware/acpi/tables" |