diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-16 11:03:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-16 11:03:24 +0000 |
commit | cd7009797f422a1df7e9fc1edf633a1ec6720b13 (patch) | |
tree | 623d2a0079912a23a15b28179f8fbdb7d6fc9a66 /staslib/defs.py | |
parent | Releasing debian version 2.2.2-1. (diff) | |
download | nvme-stas-cd7009797f422a1df7e9fc1edf633a1ec6720b13.tar.xz nvme-stas-cd7009797f422a1df7e9fc1edf633a1ec6720b13.zip |
Merging upstream version 2.3~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'staslib/defs.py')
-rw-r--r-- | staslib/defs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/staslib/defs.py b/staslib/defs.py index 5a50371..877f6e6 100644 --- a/staslib/defs.py +++ b/staslib/defs.py @@ -12,6 +12,7 @@ import os import sys import shutil import platform +from libnvme import nvme from staslib.version import KernelVersion try: @@ -48,4 +49,8 @@ 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" +NBFT_SYSFS_FILENAME = "NBFT*" + SYSTEMCTL = shutil.which('systemctl') |