]>
www.infradead.org Git - users/sagi/libnvme.git/log
Hannes Reinecke [Thu, 31 Mar 2022 07:39:56 +0000 (09:39 +0200)]
Merge pull request #324 from hreinecke/subsystem-rework
Rework nvme_scan_subsystem()
Hannes Reinecke [Wed, 30 Mar 2022 15:00:48 +0000 (17:00 +0200)]
tree: rework nvme_scan_subsystem()
The nvme subsystem does not have a 'hostnqn' sysfs entry, so we
cannot infer from the nvme subsystem sysfs entry to which host
it relates. And really, the subsystem should already have been
created by the previous call to nvme_scan_ctrl().
So do not call nvme_lookup_subsystem() in nvme_scan_subystem(),
but rather just validate the sysfs subsystem entries and create
any missing subsystems.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 30 Mar 2022 14:47:17 +0000 (16:47 +0200)]
tree: make subsystem name mandatory in nvme_scan_ctrl()
nvme_scan_ctrl() is iterating over sysfs, so any controller must
have a corresponding subsystem; not finding one is an error.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 30 Mar 2022 14:42:18 +0000 (16:42 +0200)]
tree: move nvme_init_subsystem() into nvme_lookup_subsystem()
We're always calling nvme_init_subsystem() when nvme_lookup_subsystem()
is called with a non-NULL 'name' parameter. So we might as well move
it into nvme_lookup_subsystem() and simplify the callers.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 30 Mar 2022 10:30:12 +0000 (12:30 +0200)]
Merge pull request #323 from hreinecke/export-symbol
libnvme: export 'nvme_lookup_ctrl()'
Hannes Reinecke [Wed, 30 Mar 2022 10:25:50 +0000 (12:25 +0200)]
libnvme: export 'nvme_lookup_ctrl()'
For some reason it has been missing from the map file.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 30 Mar 2022 10:02:15 +0000 (12:02 +0200)]
Merge pull request #322 from hreinecke/update-config
fabrics: add 'nvmf_update_config()'
Hannes Reinecke [Wed, 30 Mar 2022 08:29:55 +0000 (10:29 +0200)]
fabrics: add 'nvmf_update_config()'
Add a function to update the fabrics configuration values of an
existing controller.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Wed, 30 Mar 2022 06:22:39 +0000 (08:22 +0200)]
Merge pull request #320 from hreinecke/json-scan
json: fix endless loop scanning for controllers
Hannes Reinecke [Wed, 30 Mar 2022 06:05:56 +0000 (08:05 +0200)]
json: fix endless loop scanning for controllers
nvme_lookup_ctrl() will always create a new controller if none is
found, so checking for a NULL return value is not correct here.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Tue, 29 Mar 2022 09:53:32 +0000 (11:53 +0200)]
Merge pull request #319 from hreinecke/scan-filter
Fixup scan filter usage
Hannes Reinecke [Tue, 29 Mar 2022 08:09:56 +0000 (10:09 +0200)]
tree: do not return error when filtering out subsystems
The filter is set by the caller, and just modifies the tree.
It does not invalidate the scanning, so we shouldn't return
an error.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Tue, 29 Mar 2022 08:39:58 +0000 (10:39 +0200)]
tree: add debugging messages during scanning
Add some debugging messages during scanning to aid debugging.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Tue, 29 Mar 2022 08:18:54 +0000 (10:18 +0200)]
Merge pull request #318 from hreinecke/display-tree
meson: build display-tree example
Hannes Reinecke [Tue, 29 Mar 2022 08:03:35 +0000 (10:03 +0200)]
meson: build display-tree example
The 'display-tree' example program wasn't build with meson.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Fri, 25 Mar 2022 14:40:22 +0000 (15:40 +0100)]
Merge pull request #307 from bjpaupor/lbstm
Add lbstm support for create-ns
Daniel Wagner [Fri, 25 Mar 2022 09:36:43 +0000 (10:36 +0100)]
Merge pull request #315 from igaw/fix-host-traddr-free
fabrics: Free old traddr in nvmf_add_ctrl
Daniel Wagner [Fri, 25 Mar 2022 09:35:04 +0000 (10:35 +0100)]
Merge pull request #308 from Arunpandian15/tests_23_03
test: print test logs for pass case
Arunpandian J [Fri, 25 Mar 2022 03:56:47 +0000 (09:26 +0530)]
test: print test logs for pass case
test log print for passed cases and aligning
log output.
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Thu, 24 Mar 2022 18:56:48 +0000 (19:56 +0100)]
fabrics: Free old traddr in nvmf_add_ctrl
We need to free the old traddr and not the newly translated traddr.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 24 Mar 2022 15:44:03 +0000 (16:44 +0100)]
Merge pull request #306 from jeffreyalien/nvme-2.0-2
Nvme 2.0 Changes
Brandon Paupore [Thu, 24 Mar 2022 14:46:19 +0000 (09:46 -0500)]
Remove nvme_init_id_ns
Function was used only once in nvme-cli for the create-ns command,
instead just handle setting the fields in nvme-cli directly.
Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
Brandon Paupore [Thu, 24 Mar 2022 14:51:28 +0000 (09:51 -0500)]
Add lbstm support for create-ns
Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
Jeff Lien [Tue, 22 Mar 2022 15:54:01 +0000 (10:54 -0500)]
types: Add support for get log - MI Command Supported
Add API to get NVMe-MI Commands Supported and Effects log page.
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Mon, 21 Mar 2022 21:23:01 +0000 (16:23 -0500)]
types: Add new Identify constant
Add IDENTIFY_CNS_CSI_ID_NS_DATA_STRUCTURE/0x1B define
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Mon, 21 Mar 2022 21:17:29 +0000 (16:17 -0500)]
types: Update persistent event entry struct added new fields
Add missing ehai and pelpid members.
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Jeff Lien [Mon, 21 Mar 2022 21:06:03 +0000 (16:06 -0500)]
types: Add Host Initiated Data Gen Number to telemetry log struct
Daniel Wagner [Thu, 24 Mar 2022 12:15:27 +0000 (13:15 +0100)]
Merge pull request #292 from tbzatek/errno-fixes-1
tree: nvme_configure_ctrl(): Set errno to zero on success
Daniel Wagner [Thu, 24 Mar 2022 12:13:06 +0000 (13:13 +0100)]
Merge pull request #310 from igaw/nvme_chomp
fabrics: Avoid out of bounds string chomping
Daniel Wagner [Thu, 24 Mar 2022 12:06:18 +0000 (13:06 +0100)]
Merge pull request #314 from glimchb/codecov
ci: add code coverage
Boris Glimcher [Thu, 24 Mar 2022 10:12:30 +0000 (12:12 +0200)]
ci: add code coverage
From https://mesonbuild.com/howtox.html#producing-a-coverage-report
Upload a report to https://codecov.io/
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Thu, 24 Mar 2022 09:23:15 +0000 (10:23 +0100)]
Merge pull request #313 from glimchb/badges
readme: Add github badges
Daniel Wagner [Thu, 24 Mar 2022 09:21:26 +0000 (10:21 +0100)]
Merge pull request #311 from glimchb/ci
CI: fixing dist packaging error
Boris Glimcher [Wed, 23 Mar 2022 20:57:14 +0000 (22:57 +0200)]
readme: Add github badges
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Boris Glimcher [Wed, 23 Mar 2022 20:10:17 +0000 (22:10 +0200)]
CI: fixing dist packaging error
Fixes #303
python.platlibdir and python.install_env are mutually exclusive
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Wed, 23 Mar 2022 14:59:46 +0000 (15:59 +0100)]
Merge pull request #309 from tbzatek/init-subsystem-2
tree: Handle NULL subsysname in nvme_scan_ctrl()
Daniel Wagner [Wed, 23 Mar 2022 14:49:38 +0000 (15:49 +0100)]
fabrics: Avoid out of bounds string chomping
Update all callsides of nvme_chomp to use the correct max lenght of
the string to avoid out of bounds access.
While at it, nvme_chomp() is used by fabrics.c to sanitize the traddr
and trsvcid. There is no user outside of fabrics and clearly this is a
small helper function. Thus move it to fabrics and rename it to a more
comon name strchomp.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Tomas Bzatek [Wed, 23 Mar 2022 12:17:02 +0000 (13:17 +0100)]
tree: Handle NULL subsysname in nvme_scan_ctrl()
As noted couple of lines earlier, the subsysname string might
be NULL. In that case, defer initialization of nvme_subsystem_t
in hope that it would get initialized while scanning subsystems.
Daniel Wagner [Wed, 23 Mar 2022 07:46:22 +0000 (08:46 +0100)]
Merge pull request #304 from tbzatek/init-subsystem-1
tree: Fix subsystem initialization in nvme_scan_ctrl()
Tomas Bzatek [Tue, 22 Mar 2022 15:22:30 +0000 (16:22 +0100)]
tree: Fix subsystem initialization in nvme_scan_ctrl()
The subsystem instance would normally get properly initialized
in later stages of topology scanning, unless there's a host
mismatch and the instance would stand alone.
Daniel Wagner [Tue, 22 Mar 2022 10:17:56 +0000 (11:17 +0100)]
Merge pull request #302 from martin-gpy/update_log_level
fabrics: update log level for write failures
Martin George [Tue, 22 Mar 2022 07:34:43 +0000 (13:04 +0530)]
fabrics: update log level for write failures
Update the log level to LOG_ERR for write failures in
__nvmf_add_ctrl().
Signed-off-by: Martin George <marting@netapp.com>
Daniel Wagner [Mon, 21 Mar 2022 14:51:21 +0000 (15:51 +0100)]
Merge pull request #299 from tbzatek/covscan-fixes-1
Misc. static analyzer fixes
Daniel Wagner [Mon, 21 Mar 2022 14:47:54 +0000 (15:47 +0100)]
Merge pull request #301 from Arunpandian15/doc_20
Streamlining documentation
Arunpandian J [Mon, 21 Mar 2022 04:16:06 +0000 (09:46 +0530)]
ioctl: Align arguments indentation with braces
Aligned function arguments indentation with open braces
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Arunpandian J [Mon, 21 Mar 2022 03:55:51 +0000 (09:25 +0530)]
fabrics: Streamlining documentation
Aligning whitespace indentation
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Tomas Bzatek [Fri, 18 Mar 2022 16:59:25 +0000 (17:59 +0100)]
tree: Fix leaking 'name' in nvme_subsystem_lookup_namespace()
Tomas Bzatek [Fri, 18 Mar 2022 16:54:30 +0000 (17:54 +0100)]
tree: Avoid dereferencing nvme_subsystem_t before its check for NULL
Tomas Bzatek [Fri, 18 Mar 2022 16:45:26 +0000 (17:45 +0100)]
fabrics: Fix leaking ctrl in nvmf_connect_disc_entry()
Tomas Bzatek [Fri, 18 Mar 2022 16:43:20 +0000 (17:43 +0100)]
fabrics: Add missing break in a switch
No functional change, just a static analyzer warning.
Daniel Wagner [Fri, 18 Mar 2022 16:40:19 +0000 (17:40 +0100)]
doc: Provide SYSCONFDIR without quotes
Unfortunately, we can't use the configuration data object defined in
the top meson.build file as this one is with quotes. Instead, making
the c code ugly, just provide a new configuration data object without
the quotes. This avoid generating strings suchs as
"/etc"/nvme/hostnqn
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Tomas Bzatek [Fri, 18 Mar 2022 16:08:44 +0000 (17:08 +0100)]
tree: Clarify NULL return values from nvme_get_attr()
Returned NULL value means either an empty string or an error
reading the sysfs attribute. The only way to distinguish that
is by errno.
Tomas Bzatek [Mon, 14 Mar 2022 17:09:38 +0000 (18:09 +0100)]
tree: nvme_configure_ctrl(): Set errno to zero on success
Daniel Wagner [Fri, 18 Mar 2022 15:19:50 +0000 (16:19 +0100)]
Merge pull request #297 from igaw/fix-stringify-hostnqn
fabrics: Correctly stringify default hostnqn and hostid paths
Hannes Reinecke [Fri, 18 Mar 2022 15:15:16 +0000 (16:15 +0100)]
Merge pull request #298 from hreinecke/log-page-len
linux: fixup log page offset in nvme_get_log_page()
Daniel Wagner [Fri, 18 Mar 2022 13:05:27 +0000 (14:05 +0100)]
fabrics: Correctly stringify default hostnqn and hostid paths
Fixes: f356ab0ca74a ("fabrics: Allow to change sysconfdir for hostnqn and hostid file")
Reported-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Hannes Reinecke [Fri, 18 Mar 2022 13:58:37 +0000 (14:58 +0100)]
Merge pull request #296 from igaw/set_default_trsvcid
tree: Add support for default trsvcid for all controllers
Hannes Reinecke [Fri, 18 Mar 2022 13:54:07 +0000 (14:54 +0100)]
linux: fixup log page offset in nvme_get_log_page()
When resubmitting the log page with a different length in
nvme_get_log_page() we need to store the original length
of the log page to avoid the length being overwritten.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Fri, 18 Mar 2022 08:33:21 +0000 (09:33 +0100)]
tree: Add support for default trsvcid for all controllers
When the user doesn't provide trsvcid always use the default values
for tcp/rdma transport.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Wed, 16 Mar 2022 11:30:37 +0000 (12:30 +0100)]
Merge pull request #290 from glimchb/rpm
rpm: add makefile rule for rpms
Daniel Wagner [Wed, 16 Mar 2022 11:17:38 +0000 (12:17 +0100)]
Merge pull request #293 from igaw/fix-sysconfdir
fabrics: Allow to change sysconfdir for hostnqn and hostid file
Daniel Wagner [Wed, 16 Mar 2022 11:16:43 +0000 (12:16 +0100)]
Merge pull request #294 from hreinecke/disc-ttrsvcid
tree: fixup coredump during nvme discover
Hannes Reinecke [Wed, 16 Mar 2022 10:40:55 +0000 (11:40 +0100)]
tree: fixup coredump during nvme discover
nvme_free_ctrl() expects the 'trsvcid' string to be dynamically
allocated; just calling 'stringify' will cause a coredump on exit.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Tue, 15 Mar 2022 11:09:58 +0000 (12:09 +0100)]
fabrics: Allow to change sysconfdir for hostnqn and hostid file
Instead hard coding the sysconfdir allow the user to overwrite the
location of the hostnqn and hostid file. The default is "/etc" but
when configured with --prefix=DIR the files should be read from
"DIR/nvme/".
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Boris Glimcher [Mon, 14 Mar 2022 12:44:07 +0000 (14:44 +0200)]
rpm: add makefile rule for rpms
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Mon, 14 Mar 2022 08:56:05 +0000 (09:56 +0100)]
Merge pull request #289 from glimchb/rpm
dist: add missing BuildRequires to spec file
Boris Glimcher [Sun, 13 Mar 2022 14:23:26 +0000 (16:23 +0200)]
dist: add missing BuildRequires to spec file
According to https://docs.fedoraproject.org/en-US/packaging-guidelines/Meson/
Fixes #288
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Fri, 11 Mar 2022 16:01:20 +0000 (17:01 +0100)]
doc: Regenerate all documentation
Prepare for next release candiate.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Hannes Reinecke [Fri, 11 Mar 2022 13:43:51 +0000 (14:43 +0100)]
Merge pull request #283 from hreinecke/ana-path
tree: add nvme_ctrl_get_ana_state()
Hannes Reinecke [Fri, 11 Mar 2022 08:06:36 +0000 (09:06 +0100)]
tree: add nvme_ctrl_get_ana_state()
Add a function to return the ANA state of a namespace on a given
controller.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Hannes Reinecke [Fri, 11 Mar 2022 12:43:08 +0000 (13:43 +0100)]
tree: link paths to namespaces in nvme_subsystem_scan_namespace()
Depending on the order of scanning nvme_subsystem_scan_namespace()
might be called after nvme_scan_ctrl(), causing the links from
paths to namespaces to be missing.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Daniel Wagner [Fri, 11 Mar 2022 11:29:44 +0000 (12:29 +0100)]
Merge pull request #282 from glimchb/wheel2
CI: add python wheel build in addition to source package
Hannes Reinecke [Fri, 11 Mar 2022 09:02:11 +0000 (10:02 +0100)]
Merge pull request #284 from hreinecke/filter-doc
Document filter functions
Hannes Reinecke [Fri, 11 Mar 2022 08:37:37 +0000 (09:37 +0100)]
Document filter functions
Add documentation for the various filter functions.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Boris Glimcher [Mon, 28 Feb 2022 17:24:02 +0000 (19:24 +0200)]
CI: add python wheel build in addition to source package
When using source distribution,
python package will be compiled during pip install.
Wheels make the end-to-end installation of Python packages faster:
- wheels are typically smaller in size than source distributions
- pip fetches a prebuilt wheel and avoids the intermediate step of building
So why cibuildwheel and manylinux?
See https://github.com/pypa/manylinux and https://github.com/pypa/cibuildwheel
The goal of the manylinux project is to provide a convenient way to distribute binary Python extensions as wheels on Linux
See https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml
Skipping musllinux and auditwheel repair.
Skipping MacOS and Windows for now.
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 8 Mar 2022 13:50:54 +0000 (14:50 +0100)]
Merge pull request #281 from glimchb/opensslci
CI: add test for subproject fallbacks compilation
Boris Glimcher [Tue, 1 Mar 2022 12:30:36 +0000 (14:30 +0200)]
CI: add test for subproject fallbacks compilation
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 8 Mar 2022 10:09:26 +0000 (11:09 +0100)]
Merge pull request #280 from glimchb/test
test: adding dependency on pynvme
Boris Glimcher [Tue, 8 Mar 2022 07:55:18 +0000 (09:55 +0200)]
test: adding dependency on pynvme
On few systems (i.e. Fedora) when running meson test,
the python library build is not invoked.
For example, on Ubuntu, this works fine.
That's why CI dodn't catch it.
So adding explicit dependency in tests.
Fixes #279
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 8 Mar 2022 08:14:40 +0000 (09:14 +0100)]
Merge pull request #278 from sc108-lee/list_ns
ns list bug fix (wrong cns value)
Daniel Wagner [Tue, 8 Mar 2022 07:45:42 +0000 (08:45 +0100)]
Merge pull request #277 from glimchb/openssl
openssl: update to patch-3 to fix installation issue
Daniel Wagner [Tue, 8 Mar 2022 07:41:33 +0000 (08:41 +0100)]
Merge pull request #275 from Arunpandian15/types_05
types: Add missing doc field description
Steven Seungcheol Lee [Tue, 8 Mar 2022 06:35:09 +0000 (15:35 +0900)]
ioctl.h: ns list bug fix (wrong cns value)
original cns is not using csi field
naming align
NVME_IDENTIFY_CNS_CSS_ALLOCATED_NS_LIST -> NVME_IDENTIFY_CNS_CSI_ALLOCATED_NS_LIST
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Steven Seungcheol Lee [Tue, 8 Mar 2022 06:28:30 +0000 (15:28 +0900)]
types.h: Key Value Command Set Identifier added (NVME_CSI_KV)
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Boris Glimcher [Sun, 6 Mar 2022 16:33:12 +0000 (18:33 +0200)]
openssl: update to patch-3 to fix installation issue
Fixes #268
Patch taken from https://mesonbuild.com/Wrapdb-projects.html
Wrap file used https://wrapdb.mesonbuild.com/v2/openssl_1.1.1l-3/openssl.wrap
Fixed by mesonbuild/wrapdb#322
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Arunpandian J [Sat, 5 Mar 2022 05:10:53 +0000 (10:40 +0530)]
types: Add missing doc field description
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Fri, 4 Mar 2022 13:41:31 +0000 (14:41 +0100)]
Merge pull request #274 from sc108-lee/status_code_type
types: fix status code type bug (wrong masking)
Steven Seungcheol Lee [Fri, 4 Mar 2022 07:50:29 +0000 (16:50 +0900)]
types: fix status code type bug (wrong masking)
the error comes from
fc274c57c6b3063d35dd76e36b777adc4da29e0d
using NVME_GET for masked value #148
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Daniel Wagner [Thu, 3 Mar 2022 18:35:43 +0000 (19:35 +0100)]
doc: Regenerate all documentation
Prepare for next release candiate.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 3 Mar 2022 17:55:59 +0000 (18:55 +0100)]
linux: Add log.h back
We still need log.h for the various log level definitions.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 3 Mar 2022 17:53:24 +0000 (18:53 +0100)]
linux: Include private.h
Replace log.h with private.h because we added log.h only for
nvme_msg() but this define has been moved to the private.h header
file.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 3 Mar 2022 15:55:59 +0000 (16:55 +0100)]
Merge pull request #236 from birkelund/meson-fixes
meson: small fixes
Daniel Wagner [Thu, 3 Mar 2022 15:32:37 +0000 (16:32 +0100)]
Merge pull request #273 from igaw/fix-libssl-dep
build: Depend on libssl when using the fallback dependency
Daniel Wagner [Thu, 3 Mar 2022 15:27:18 +0000 (16:27 +0100)]
build: Depend on libssl when using the fallback dependency
libnvme doesn't depend on the openssl application. Update the fallback
dependency to libssl.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 3 Mar 2022 10:15:51 +0000 (11:15 +0100)]
Merge pull request #272 from Arunpandian15/sc
util: Add status code values in order to return errno
Arunpandian J [Thu, 3 Mar 2022 08:36:20 +0000 (14:06 +0530)]
util: Add status code values in order to return errno
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Wed, 2 Mar 2022 07:46:18 +0000 (08:46 +0100)]
Merge pull request #267 from igaw/traddr-case-insesitive
tree: Ignore traddr case in nvme_lookup_ctrl()
Daniel Wagner [Wed, 2 Mar 2022 07:27:11 +0000 (08:27 +0100)]
Merge pull request #269 from Arunpandian15/util_sc_02
util: Congregate status code values to return EINVAL
Daniel Wagner [Wed, 2 Mar 2022 07:19:48 +0000 (08:19 +0100)]
Merge pull request #270 from igaw/fix-pel
ioctl: Set lsp to action in nvme_get_log_persistent_event
Wen Xiong [Tue, 1 Mar 2022 21:32:18 +0000 (16:32 -0500)]
ioctl: Set lsp to action in nvme_get_log_persistent_event
Retrieving PEL fails because the lsp is set to NVME_LOG_LSP_NONE
instead of action:
# nvme -persistent-event-log -a 1 /dev/nvme0
NVMe status: Command Sequence Error: The command was aborted due to a protocol violation in a multi- command sequence(0xc)
Signed-off-by: Wen Xiong <wenxiong@linux.ibm.com>
[dwagner: updated commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>