]>
www.infradead.org Git - users/sagi/libnvme.git/log
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>
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>
Arunpandian J [Wed, 2 Mar 2022 05:40:52 +0000 (11:10 +0530)]
util: Congregate status code values to return EINVAL
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Tue, 1 Mar 2022 15:01:27 +0000 (16:01 +0100)]
tree: Ignore traddr case in nvme_lookup_ctrl()
Some FC discovery controllers return traddr strings with upper case
hexadecimal. There was is no requirement in the NVME-FC specification
that it be upper or lower case. Switch to strcasecmp for case
insentive traddr comparison.
Based on nvme-cli change
1264c6323937 ("nvme-cli: Make connect-all
matching be case insensitive")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 1 Mar 2022 13:51:46 +0000 (14:51 +0100)]
Merge pull request #264 from igaw/fix-system-uuid
fabrics: Do not swap bytes for system uuid
Daniel Wagner [Tue, 1 Mar 2022 09:03:23 +0000 (10:03 +0100)]
fabrics: Do not swap bytes for system uuid
The kernel is taking care of swapping the system uuid bytes since
f1d8e614d74b ("drivers/firmware/dmi_scan.c: check dmi version when get
system uuid"). Hence we should not swap them again. Instead just read
/sys/class/dmi/id/product_uuid and store the bytes directly into the
system_uuid buffer.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 1 Mar 2022 13:40:15 +0000 (14:40 +0100)]
Merge pull request #266 from glimchb/actionbranch
CI: rename branch main to master
Boris Glimcher [Tue, 1 Mar 2022 12:49:22 +0000 (14:49 +0200)]
CI: rename branch main to master
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 1 Mar 2022 12:39:35 +0000 (13:39 +0100)]
Merge pull request #257 from glimchb/setuptools
pyproject.toml instead of setup.py for new packaging
Boris Glimcher [Tue, 1 Mar 2022 10:14:21 +0000 (12:14 +0200)]
Workflow: temporary disable publish to PyPI, starting with TestPyPI
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Daniel Wagner [Tue, 1 Mar 2022 09:44:35 +0000 (10:44 +0100)]
Merge pull request #259 from Arunpandian15/fix_sct
types: status code type value update as per NVMe specification
Daniel Wagner [Tue, 1 Mar 2022 09:30:48 +0000 (10:30 +0100)]
Merge pull request #262 from Arunpandian15/util_01
util: Add status code values in geneic status to errono conversion
Arunpandian J [Tue, 1 Mar 2022 07:15:46 +0000 (12:45 +0530)]
util: Add status code values in generic status to errno conversion
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Mon, 28 Feb 2022 18:03:58 +0000 (19:03 +0100)]
Merge pull request #261 from martin-belanger/move-ccan-out-of-public-headers
Move ccan definitions out of public headers.
Martin Belanger [Mon, 28 Feb 2022 16:26:07 +0000 (11:26 -0500)]
Move ccan definitions out of public headers.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Boris Glimcher [Mon, 28 Feb 2022 07:34:06 +0000 (09:34 +0200)]
Add workflow to publish to PyPI and TestPyPI
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Boris Glimcher [Sun, 27 Feb 2022 19:36:04 +0000 (21:36 +0200)]
pyproject.toml instead of setup.py for new packaging
This allows to build with meson and package for Pypi
Build like this:
python -m build
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Arunpandian J [Mon, 28 Feb 2022 10:52:22 +0000 (16:22 +0530)]
types: status code type value update as per NVMe specification
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Mon, 28 Feb 2022 09:28:20 +0000 (10:28 +0100)]
Merge pull request #258 from Arunpandian15/types_doc_28
types: Add missing doc for ZNS, NVMe OF, NVMe command set
Arunpandian J [Mon, 28 Feb 2022 05:55:02 +0000 (11:25 +0530)]
types: Add missing doc for ZNS, NVMe OF, NVMe command set
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Fri, 25 Feb 2022 12:22:12 +0000 (13:22 +0100)]
Merge pull request #256 from Arunpandian15/doc_types_25
types: Add doc section for enum fields
Arunpandian J [Fri, 25 Feb 2022 11:08:53 +0000 (16:38 +0530)]
types: Add doc section for enum fields
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Thu, 24 Feb 2022 11:59:12 +0000 (12:59 +0100)]
Merge pull request #255 from Arunpandian15/types_doc_24
types: Add doc field for admin opcodes, FIDs, LIDs, Identify commands
Arunpandian J [Thu, 24 Feb 2022 11:03:31 +0000 (16:33 +0530)]
types: Add doc field for admin opcodes, FIDs, LIDs, Identify commands
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Wed, 23 Feb 2022 15:12:31 +0000 (16:12 +0100)]
Merge pull request #254 from Arunpandian15/mi_types
types: All MI command related structure doc field update
Arunpandian J [Wed, 23 Feb 2022 08:40:52 +0000 (14:10 +0530)]
types: All MI command related structure doc field update
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Tue, 22 Feb 2022 17:09:45 +0000 (18:09 +0100)]
build: Use boolean type for docs-build default
muon complains about the type used for the default value. As it a
boolean type use a boolean as value instead of a string value.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 22 Feb 2022 16:35:32 +0000 (17:35 +0100)]
doc: Regenerate all documentation
Prepare for next release candiate.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 22 Feb 2022 16:45:58 +0000 (17:45 +0100)]
doc: Do not precomple HTML doc anymore
The HTML part is not ready yet. Let's remove the precompiled HTML doc.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 22 Feb 2022 15:45:42 +0000 (16:45 +0100)]
Merge pull request #253 from igaw/port-default-port-for-discovery
fabrics: add default port number for NVMe/TCP I/O controllers
Daniel Wagner [Tue, 22 Feb 2022 15:06:52 +0000 (16:06 +0100)]
fabrics: add default port number for NVMe/TCP I/O controllers
As per section 7.4.9.3 "Transport Service Identifier" of the NVMe over
Fabrics 1.1 specification, the default IANA port number for a NVMe/TCP
discovery controller is 8009. But at the same time, it also clearly
states that NVMe/TCP I/O controllers should not use TCP port number
8009, but may instead use 4420 as the default here.
So make sure to fill these values appropriately, and pass it down.
Signed-off-by: Martin George <marting@netapp.com>
[dwagner: backport from monolithic branch]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Tue, 22 Feb 2022 14:07:43 +0000 (15:07 +0100)]
Merge pull request #252 from Arunpandian15/doc_mi
types: doc field update for NVM commands, Feature Identifiers
Arunpandian J [Tue, 22 Feb 2022 04:39:08 +0000 (10:09 +0530)]
types: doc field update for NVM commands, Feature Identifiers
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Mon, 21 Feb 2022 16:06:47 +0000 (17:06 +0100)]
Merge pull request #248 from igaw/tp8010-support-refactored
TP8010 support refactored
Martin Belanger [Fri, 18 Feb 2022 09:42:49 +0000 (10:42 +0100)]
fabrics: Add support to register with a DC
This adds support for the TP8010 by introducing nvmf_registration_ctlr
function which performs the registration task with a Discovery
Controller.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
[dwagner: refactored, reformated, udpated documentation,
moved nvme_fetch_cntrltype_dctype_from_id here]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Martin Belanger [Fri, 18 Feb 2022 09:07:11 +0000 (10:07 +0100)]
ioctl: Add nvme_dim_send()
Add nvme_dim_send() to send Discovery Information Managements commands.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
[dwagner: reorder args arguments, rename function]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Martin Belanger [Thu, 17 Feb 2022 15:16:11 +0000 (16:16 +0100)]
util: Add key-value helpers and OS identification tools
Key value helpers and also the OS identification are used for
implementing TP8010 support.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
[dwagner: refactoring, reformating]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Martin Belanger [Thu, 17 Feb 2022 16:33:50 +0000 (17:33 +0100)]
types: Add Discovery Information Managment types
Add Discovery Information Management related types for TP8010.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
[dwagner: renaming, adding documation and reformating]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Martin Belanger [Wed, 16 Feb 2022 15:11:05 +0000 (10:11 -0500)]
tree: Add cntrltype and dctype to the controller object
The Discovery Controller Type (dctype) is a new attribute defined
in TP8010. This new attribute, as well as the existing Controller
Type (cntrltype) attributes will now be exposed through the sysfs
starting with kernel 5.18. For older kernels, the cntrltype and
dctype must be retrieved by performing a Identify command.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
[dwagner: Removed nvme_fetch_cntrltype_dctype_from_id]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Mon, 21 Feb 2022 11:01:55 +0000 (12:01 +0100)]
Merge pull request #250 from Arunpandian15/types_h_doc_21
types.h: doc update for ZNS structures
Daniel Wagner [Mon, 21 Feb 2022 10:53:58 +0000 (11:53 +0100)]
Merge pull request #246 from igaw/fix-nvme_msg
log: Allow nvme_msg usage with invalid root pointer
Daniel Wagner [Thu, 17 Feb 2022 09:25:31 +0000 (10:25 +0100)]
log: Allow nvme_msg usage with invalid root pointer
24ac082f481d ("Add 'nvme_root_t' argument to nvme_msg()") and
19b12831a9ec ("Move global logging variables into nvme_root_t") moved
the logging controller knobs into the root object. In case the pointer
is invalid we should not try to use it. Instead just bailing out just
log the line.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Arunpandian J [Mon, 21 Feb 2022 07:06:33 +0000 (12:36 +0530)]
types.h: doc update for ZNS structures
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Fri, 18 Feb 2022 13:57:58 +0000 (14:57 +0100)]
Merge pull request #247 from Arunpandian15/types_h_doc_field
types.h: Add missing documentation for all the log pages
Daniel Wagner [Fri, 18 Feb 2022 13:55:58 +0000 (14:55 +0100)]
Merge pull request #249 from AkhileshRN/telemetry_ctlr
Fix to update size for telemetry log page when telemetry controller initiated data is unavailable.
Akhilesh RN [Fri, 18 Feb 2022 13:41:10 +0000 (19:11 +0530)]
linux: Update size when telemetry controller initiated data is unavailable
Fix to update size for telemetry log page when telemetry controller
initiated data is unavailable.
Martin Belanger [Thu, 17 Feb 2022 13:09:07 +0000 (14:09 +0100)]
types: Add DCTYPE to nvme_id_psd
TP8010 introduced Discovery Controller Type (DCTYPE) to the
Identify Controller data structure. Add the new field.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Martin Belanger [Tue, 15 Feb 2022 20:54:38 +0000 (15:54 -0500)]
tree: Add host symbolic name
The host symbolic name was introduced in TP8010. It is used for
explicit registration with discovery controllers using the
discovery information management (DIM) command.x
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Martin Belanger [Fri, 18 Feb 2022 09:10:15 +0000 (10:10 +0100)]
python: Add dump_config
Add support to the Python binding to dump the JSON config by hooking
up nvme_dump_config.
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Arunpandian J [Fri, 18 Feb 2022 07:22:10 +0000 (12:52 +0530)]
types.h: Add missing documentaion for all the log pages
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Thu, 17 Feb 2022 09:21:36 +0000 (10:21 +0100)]
Merge pull request #245 from Arunpandian15/cleanup_17
Cleanup patch for linux.h, log.h, tree.h
Arunpandian J [Thu, 17 Feb 2022 09:10:50 +0000 (10:10 +0100)]
tree: Add missing documentation
Add missing documentation to all functions declarations.
While at it also fix whitespace issues and intentions levels
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
[dwagner: added commit messages, extended the docs bits]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Arunpandian J [Thu, 17 Feb 2022 09:10:37 +0000 (10:10 +0100)]
log: Fix whitespacing in documentation
Make the documentation consistent with the other header files.
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
[dwagner: added commit messages]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Arunpandian J [Thu, 17 Feb 2022 06:23:40 +0000 (11:53 +0530)]
linux: Streamline documentation
Make the documetation consistent with the other header files.
While at it also fix whitespace issues and intentions levels
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
[dwagner: added commit messages, extended the docs bits]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Wed, 16 Feb 2022 15:10:34 +0000 (16:10 +0100)]
Merge pull request #242 from Arunpandian15/doc_update
ioctl.h: Add description for fields used
Arunpandian J [Wed, 16 Feb 2022 09:50:42 +0000 (15:20 +0530)]
ioctl.h: Add description for fields used
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Daniel Wagner [Wed, 16 Feb 2022 07:39:44 +0000 (08:39 +0100)]
Merge pull request #234 from jeffreyalien/uuidx-parm
[libnvme] Add uuidx parm to get log page API
Jeff Lien [Tue, 15 Feb 2022 22:51:09 +0000 (16:51 -0600)]
linux: Change nvme_get_log_page to use nvme_get_log_args parm
Combined nvme_get_log_page and nvme_get_log_page_padded into
one function
Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Daniel Wagner [Tue, 15 Feb 2022 13:50:22 +0000 (14:50 +0100)]
Merge pull request #237 from Arunpandian15/cleanup_Description
types: Add doc description for fields used
Daniel Wagner [Tue, 15 Feb 2022 09:13:00 +0000 (10:13 +0100)]
Merge pull request #239 from hanumanthuh/master
add cdw13 for set_feature_args structure
Daniel Wagner [Tue, 15 Feb 2022 09:02:21 +0000 (10:02 +0100)]
Merge pull request #238 from samiWaheed/master
Corrected FW log page used in nvme_get_log_fw_slot
Hanumanthu H [Tue, 15 Feb 2022 05:23:40 +0000 (10:53 +0530)]
add cdw13 for set_feature_args structure
Sami Waheed [Mon, 14 Feb 2022 22:27:47 +0000 (14:27 -0800)]
Update ioctl.h
Arunpandian J [Mon, 14 Feb 2022 12:10:31 +0000 (17:40 +0530)]
types: Added doc description for fields used
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
Klaus Jensen [Sun, 13 Feb 2022 07:54:40 +0000 (08:54 +0100)]
meson: do not leak internal include directories
When building libnvme as a subproject, do not leak the internal ccan or
project root directories. Only add src/ to the list of directories to be
included.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Daniel Wagner [Fri, 11 Feb 2022 12:52:16 +0000 (13:52 +0100)]
Merge pull request #233 from igaw/fix-mem-leak
tree: Fix memleaks in __nvme_free_ns() and nvme_scan_subsystem()
Daniel Wagner [Fri, 11 Feb 2022 12:45:57 +0000 (13:45 +0100)]
build: make Python memory allocations valgrind friendly
When testing with
meson test -C .build --wrap='valgrind --leak-check=full'
the Python binding will trigger 'Invalid read of size 4' warnings.
Tell Python to use malloc directly for all memory allocation which can
be properly traced by valgrind.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 11 Feb 2022 12:20:14 +0000 (13:20 +0100)]
tree: Fix memleaks in __nvme_free_ns() and nvme_scan_subsystem()
valgrind reports that we are leaking memory in __nvme_free_ns() and
nvme_scan_subsystem(). Free ns->generic_name and path which makes
valgrind also happy.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Fri, 11 Feb 2022 10:41:54 +0000 (11:41 +0100)]
Merge pull request #230 from sc108-lee/fix/io_cmd
ioctl: nvme_io_args.dspec(Directive Specific) value is 16 bits
Steven Seungcheol Lee [Fri, 11 Feb 2022 10:36:40 +0000 (19:36 +0900)]
ioctl: nvme_io_args.dspec(Directive Specific) value is 16 bits
Command Dword 13 [31:16]
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Hannes Reinecke [Thu, 10 Feb 2022 09:39:53 +0000 (10:39 +0100)]
Merge pull request #229 from igaw/remove-jsonc-ifdefs
tree: Remove CONFIG_JSONC ifdefs
Daniel Wagner [Thu, 10 Feb 2022 09:13:46 +0000 (10:13 +0100)]
tree: Remove CONFIG_JSONC ifdefs
We have an hard dependency on json-c, so we can rely it's always
available. Remove old ifdefs for json-c.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 10 Feb 2022 09:09:18 +0000 (10:09 +0100)]
Merge pull request #221 from hreinecke/dump-tree
tree: add nvme_dump_tree()
Hannes Reinecke [Thu, 3 Feb 2022 11:21:17 +0000 (12:21 +0100)]
tree: add nvme_dump_tree()
Dump the internal tree in JSON format to stdout for debugging.
Signed-off-by: Hannes Reinecke <hare@suse.de>
[dwagner: dropped json wrapper definition usage]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner [Thu, 10 Feb 2022 08:49:47 +0000 (09:49 +0100)]
Merge pull request #227 from igaw/cleanup-libuuid-dep
tree: Remove dead !LIBUUID code