From 1aa78b710b1f1e9531ac52c1a3be9715a252ab69a25bf70fa4785d13bcde810d Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 3 Nov 2022 11:32:41 +0000 Subject: [PATCH] Accepting request 1033046 from home:wagi:branches:Base:System - Update to version 2.2.1: * Added parsing for Solidigm telemetry observable data. * add item ddr_ecc_err_cnt in smart-log-add * build: Drop dependency on libuuid * build: Fix endian check for cross build * build: Remove unused uuid.wrap file * build: Remove unusned uuid.h include * completions: Add show-topology tab completion * fabrics: Honor JSON config file in connect-all command * fabrics: Trigger auto connect if config.json exists * fabrics: fix 'persistent' handling during connect-all with JSON file * fabrics: nvme config --modify depends on -n and -t argument * fabrics: re-read the discovery log page when a discovery controller reconnected * json: Support uint64 types serialization for older json-c versions * nvme, plugins: fix __u64 -> unsigned long long assumptions * nvme-print: Add missing values in id-ctrl for JSON output * nvme-print: Handle NULL hostid in JSON output * nvme-print: Output 128bit values as uint128 type instead of double * nvme-print: Print fguid as a UUID * nvme-print: Use uint128 JSON function for media_units_written * nvme-print: decode MI status values * nvme-print: decode status types * nvme-print: fix wrong json key * nvme: Add helper function to parse 16-bit comma separated list * nvme: Add nvme_cmd wrapper for get_features * nvme: Add show-topology command * nvme: Add wrapper for Format NVM * nvme: Add wrapper for Sanitize NVM * nvme: Add wrappers for Get Log page helpers * nvme: Add wrappers for Identify controller lists * nvme: Add wrappers for NS attach/detach * nvme: Add wrappers for NS management functions * nvme: Add wrappers for basic NS identify * nvme: Add wrappers for firmware commands * nvme: Fix set feature command to get feature identifier 0Dh length as zero * nvme: Introduce a union in struct nvme_dev for different transport types * nvme: Introduce nvme_cli_ wrappers, wrap identify and identify_ctrl * nvme: Make static nvme_dev private to open_dev(), use locals elsewhere * nvme: Masks SSTAT in sanize-log output * nvme: Remove static nvme_dev, allocate on open instead * nvme: Use correct print format specifier for sizeof arguments * nvme: Use local struct nvme_dev for show_registers & map_registers * nvme: check if cfg.metadata is NULL before passing it to strlen() * nvme: use helpers for checking status types * plugins/innogrit: Include timer.h * plugins/innogrit: add smart items for smart-log-add * plugins/micron-nvme: Use correct print format specifier for sizeof arguments * plugins/ocp: Include timer.h * plugins/ocp: Output 128bit values as uint128 type instead of double * plugins/ocp: pass struct nvme_dev to internal functions * plugins/seagate: Add support for OCP * plugins/toshiba: pass struct nvme_dev rather than fd + name * plugins/virtium: Output 128bit values as uint128 type instead of double * plugins/wdc: Add support for SN660 drive * plugins/wdc: Add type case for feature id * plugins/wdc: Output 128bit values as uint128 type instead of double * plugins/wdc: pass a struct nvme_dev around rather than a fd * plugins/wdc: pass struct nvme_dev rather than using global nvme_dev * plugins/ytmc: pass struct nvme_dev rather than fd + name * plugins: Use PRIu64 format specifier for 64bit types * print: Add Controller Ready Timeout Exceeded HW error code * solidgm: fix initialization warning * solidigm: Added parsing for telemetry customer screenable data * solidigm: Fix printf format for size_t variable * solidigm: Updated Telemetry parsing code to MIT license. * subprojects/libnvme: update for MI admin command coverage * tests: Update license to GPL-2.0-or-later * tree: Add NVMe-MI support * tree: Add dev_fd() helper * tree: Change nvme_dev from global to static * tree: Combine NVMe file descriptor into struct nvme_dev * tree: Move global device info to a single struct * tree: fail on non-negative return values from parse_and_open * udev: Add HOST_IFACE to udev rule * util/json.h: Add json_object_get_uint64 fallback implementation * util/json: Add 128 bit JSON helpers * util/types: Add 128 bit conversion helpers * util: Fix le128_to_cpu on big-endian * util: Fix le128_to_cpu on little-endian * util: Move common type conversion helpers into util section * utils/json: Add json_object_new_uint64 for json-c < 0.14 * utils: Fix uint128_t usage * wdc: OCP Log page updates and fixes * zns.c: report zones should be started after retrieved zone - Handle suse-missing-rclink lint warnings by providing the symlinks - Drop rpmlintrc as it is not needed anymore OBS-URL: https://build.opensuse.org/request/show/1033046 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=131 --- _service | 2 +- _servicedata | 2 +- nvme-cli-2.1.2.obscpio | 3 -- nvme-cli-2.2.1.obscpio | 3 ++ nvme-cli-rpmlintrc | 2 - nvme-cli.changes | 90 ++++++++++++++++++++++++++++++++++++++++++ nvme-cli.obsinfo | 6 +-- nvme-cli.spec | 13 ++++-- 8 files changed, 108 insertions(+), 13 deletions(-) delete mode 100644 nvme-cli-2.1.2.obscpio create mode 100644 nvme-cli-2.2.1.obscpio delete mode 100644 nvme-cli-rpmlintrc diff --git a/_service b/_service index 0a59a04..1b49dbe 100644 --- a/_service +++ b/_service @@ -4,7 +4,7 @@ https://github.com/linux-nvme/nvme-cli.git nvme-cli @PARENT_TAG@ - v2.1.2 + v2.2.1 v(.*) enable diff --git a/_servicedata b/_servicedata index 1ff774c..22c7cb0 100644 --- a/_servicedata +++ b/_servicedata @@ -1,6 +1,6 @@ https://github.com/linux-nvme/nvme-cli.git - 93dd92fefd36581fc795909ed4a1b07e23e92acc + aff7a09da61a555cea25c48b24224b6e45b905df \ No newline at end of file diff --git a/nvme-cli-2.1.2.obscpio b/nvme-cli-2.1.2.obscpio deleted file mode 100644 index a880ea1..0000000 --- a/nvme-cli-2.1.2.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4842a9e3419886535cafce3870e380cff1017ae7aa163cf40bdddbe1fd7692aa -size 6197773 diff --git a/nvme-cli-2.2.1.obscpio b/nvme-cli-2.2.1.obscpio new file mode 100644 index 0000000..cf02b36 --- /dev/null +++ b/nvme-cli-2.2.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:303faf2ede22290f13b176829db1fa04c2402e540df73b5e3b8f835bfcb19e98 +size 6653965 diff --git a/nvme-cli-rpmlintrc b/nvme-cli-rpmlintrc deleted file mode 100644 index a25773a..0000000 --- a/nvme-cli-rpmlintrc +++ /dev/null @@ -1,2 +0,0 @@ -addFilter("W: systemd-service-without-service_del_preun") -addFilter("W: systemd-service-without-service_del_postun") \ No newline at end of file diff --git a/nvme-cli.changes b/nvme-cli.changes index a9560f8..5ebda91 100644 --- a/nvme-cli.changes +++ b/nvme-cli.changes @@ -1,3 +1,93 @@ +------------------------------------------------------------------- +Wed Nov 02 17:10:58 UTC 2022 - Daniel Wagner + +- Update to version 2.2.1: + * Added parsing for Solidigm telemetry observable data. + * add item ddr_ecc_err_cnt in smart-log-add + * build: Drop dependency on libuuid + * build: Fix endian check for cross build + * build: Remove unused uuid.wrap file + * build: Remove unusned uuid.h include + * completions: Add show-topology tab completion + * fabrics: Honor JSON config file in connect-all command + * fabrics: Trigger auto connect if config.json exists + * fabrics: fix 'persistent' handling during connect-all with JSON file + * fabrics: nvme config --modify depends on -n and -t argument + * fabrics: re-read the discovery log page when a discovery controller reconnected + * json: Support uint64 types serialization for older json-c versions + * nvme, plugins: fix __u64 -> unsigned long long assumptions + * nvme-print: Add missing values in id-ctrl for JSON output + * nvme-print: Handle NULL hostid in JSON output + * nvme-print: Output 128bit values as uint128 type instead of double + * nvme-print: Print fguid as a UUID + * nvme-print: Use uint128 JSON function for media_units_written + * nvme-print: decode MI status values + * nvme-print: decode status types + * nvme-print: fix wrong json key + * nvme: Add helper function to parse 16-bit comma separated list + * nvme: Add nvme_cmd wrapper for get_features + * nvme: Add show-topology command + * nvme: Add wrapper for Format NVM + * nvme: Add wrapper for Sanitize NVM + * nvme: Add wrappers for Get Log page helpers + * nvme: Add wrappers for Identify controller lists + * nvme: Add wrappers for NS attach/detach + * nvme: Add wrappers for NS management functions + * nvme: Add wrappers for basic NS identify + * nvme: Add wrappers for firmware commands + * nvme: Fix set feature command to get feature identifier 0Dh length as zero + * nvme: Introduce a union in struct nvme_dev for different transport types + * nvme: Introduce nvme_cli_ wrappers, wrap identify and identify_ctrl + * nvme: Make static nvme_dev private to open_dev(), use locals elsewhere + * nvme: Masks SSTAT in sanize-log output + * nvme: Remove static nvme_dev, allocate on open instead + * nvme: Use correct print format specifier for sizeof arguments + * nvme: Use local struct nvme_dev for show_registers & map_registers + * nvme: check if cfg.metadata is NULL before passing it to strlen() + * nvme: use helpers for checking status types + * plugins/innogrit: Include timer.h + * plugins/innogrit: add smart items for smart-log-add + * plugins/micron-nvme: Use correct print format specifier for sizeof arguments + * plugins/ocp: Include timer.h + * plugins/ocp: Output 128bit values as uint128 type instead of double + * plugins/ocp: pass struct nvme_dev to internal functions + * plugins/seagate: Add support for OCP + * plugins/toshiba: pass struct nvme_dev rather than fd + name + * plugins/virtium: Output 128bit values as uint128 type instead of double + * plugins/wdc: Add support for SN660 drive + * plugins/wdc: Add type case for feature id + * plugins/wdc: Output 128bit values as uint128 type instead of double + * plugins/wdc: pass a struct nvme_dev around rather than a fd + * plugins/wdc: pass struct nvme_dev rather than using global nvme_dev + * plugins/ytmc: pass struct nvme_dev rather than fd + name + * plugins: Use PRIu64 format specifier for 64bit types + * print: Add Controller Ready Timeout Exceeded HW error code + * solidgm: fix initialization warning + * solidigm: Added parsing for telemetry customer screenable data + * solidigm: Fix printf format for size_t variable + * solidigm: Updated Telemetry parsing code to MIT license. + * subprojects/libnvme: update for MI admin command coverage + * tests: Update license to GPL-2.0-or-later + * tree: Add NVMe-MI support + * tree: Add dev_fd() helper + * tree: Change nvme_dev from global to static + * tree: Combine NVMe file descriptor into struct nvme_dev + * tree: Move global device info to a single struct + * tree: fail on non-negative return values from parse_and_open + * udev: Add HOST_IFACE to udev rule + * util/json.h: Add json_object_get_uint64 fallback implementation + * util/json: Add 128 bit JSON helpers + * util/types: Add 128 bit conversion helpers + * util: Fix le128_to_cpu on big-endian + * util: Fix le128_to_cpu on little-endian + * util: Move common type conversion helpers into util section + * utils/json: Add json_object_new_uint64 for json-c < 0.14 + * utils: Fix uint128_t usage + * wdc: OCP Log page updates and fixes + * zns.c: report zones should be started after retrieved zone +- Handle suse-missing-rclink lint warnings by providing the symlinks +- Drop rpmlintrc as it is not needed anymore + ------------------------------------------------------------------- Wed Sep 21 08:32:38 UTC 2022 - Daniel Wagner diff --git a/nvme-cli.obsinfo b/nvme-cli.obsinfo index a6fa666..27000e8 100644 --- a/nvme-cli.obsinfo +++ b/nvme-cli.obsinfo @@ -1,4 +1,4 @@ name: nvme-cli -version: 2.1.2 -mtime: 1660223255 -commit: 93dd92fefd36581fc795909ed4a1b07e23e92acc +version: 2.2.1 +mtime: 1667403857 +commit: aff7a09da61a555cea25c48b24224b6e45b905df diff --git a/nvme-cli.spec b/nvme-cli.spec index ec110c7..d782efb 100644 --- a/nvme-cli.spec +++ b/nvme-cli.spec @@ -17,14 +17,13 @@ Name: nvme-cli -Version: 2.1.2 +Version: 2.2.1 Release: 0 Summary: NVM Express user space tools License: GPL-2.0-only Group: Hardware/Other URL: https://github.com/linux-nvme/nvme-cli/ Source0: nvme-cli-%{version}.tar.gz -Source1: nvme-cli-rpmlintrc # downstream patches Patch100: 0100-harden_nvmf-connect@.service.patch BuildRequires: gcc @@ -102,6 +101,12 @@ rm %{buildroot}%{_sysconfdir}/dracut/dracut.conf.d/70-nvmf-autoconnect.conf # for subpackage nvme-cli-regress-script: install -m 744 -D regress %{buildroot}%{_sbindir}/nvme-regress +mkdir -p %{buildroot}%{_sbindir} +pushd %{buildroot}%{_sbindir} +ln -s service rcnvmefc-boot-connections +ln -s service rcnvmf-autoconnect +popd + %define services nvmefc-boot-connections.service nvmf-connect.target nvmf-autoconnect.service %pre @@ -113,7 +118,7 @@ if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then %{_sbindir}/nvme gen-hostnqn > %{_sysconfdir}/nvme/hostnqn fi if [ ! -s %{_sysconfdir}/nvme/hostid ]; then - %{_bindir}/uuidgen > %{_sysconfdir}/nvme/hostid + sed -nr 's/.*:uuid:(.*?)$/\1/p' %{_sysconfdir}/nvme/hostnqn > %{_sysconfdir}/nvme/hostid fi %service_add_post %{services} nvmf-connect@.service @@ -137,6 +142,8 @@ fi %license LICENSE %doc README.md %{_sbindir}/nvme +%{_sbindir}/rcnvmefc-boot-connections +%{_sbindir}/rcnvmf-autoconnect %{_mandir}/man1/nvme*.1*%{?ext_man} %{_udevrulesdir}/70-nvmf-autoconnect.rules %{_udevrulesdir}/71-nvmf-iopolicy-netapp.rules