commit nvme-cli for openSUSE:Factory

2020-11-10 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2020-11-10 13:38:36

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.11331 (New)


Package is "nvme-cli"

Tue Nov 10 13:38:36 2020 rev:39 rq:846170 version:1.13

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2020-08-19 
18:46:09.423507061 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.11331/nvme-cli.changes 
2020-11-10 13:39:20.576486670 +0100
@@ -1,0 +2,11 @@
+Fri Oct 23 08:22:27 UTC 2020 - Daniel Wagner 
+
+- update to 1.13
+  * support for zoned command set
+  * Identify I/O Command Set data structure command added
+  * Added new namespace list command on list-ns, 4056 modification added
+  * Added temperature information getting and text formatting
+  * Implemented additional statistics to display
+  * nvme: add support for non shared namespaces
+
+---

Old:

  nvme-cli-1.12.tar.gz

New:

  nvme-cli-1.13.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.HXjmO0/_old  2020-11-10 13:39:21.096485637 +0100
+++ /var/tmp/diff_new_pack.HXjmO0/_new  2020-11-10 13:39:21.100485629 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:1.12
+Version:1.13
 Release:0
 Summary:NVM Express user space tools
 License:GPL-2.0-only

++ nvme-cli-1.12.tar.gz -> nvme-cli-1.13.tar.gz ++
 40422 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2020-08-19 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2020-08-19 18:44:58

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.3399 (New)


Package is "nvme-cli"

Wed Aug 19 18:44:58 2020 rev:38 rq:826916 version:1.12

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2020-02-07 
15:52:16.247440560 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.3399/nvme-cli.changes  
2020-08-19 18:46:09.423507061 +0200
@@ -1,0 +2,12 @@
+Sun Aug 16 00:14:42 UTC 2020 - Dirk Mueller 
+
+- update to 1.12
+  * Corrected text output in FW activation history
+  * nvme: allow addr family to recognize loop
+  * Add log page CA parsing
+  * nvme status code updates based nvme spec v1.4
+  * Provide documentation for log page directory WDC plugin command 
+  * Fix status displayed by vs-telemetry-controller-option wdc plugin
+  * fabrics: ignore hostnqn file if its empty
+
+---

Old:

  _service
  _servicedata
  nvme-cli-1.10.1+git9.872e6b0.obscpio
  nvme-cli-1.10.1+git9.872e6b0.tar.xz
  nvme-cli.obsinfo

New:

  nvme-cli-1.12.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.KPxQid/_old  2020-08-19 18:46:11.671508256 +0200
+++ /var/tmp/diff_new_pack.KPxQid/_new  2020-08-19 18:46:11.675508258 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nvme-cli
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   nvme-cli
-Version:1.10.1+git9.872e6b0
+Version:1.12
 Release:0
 Summary:NVM Express user space tools
 License:GPL-2.0-only
 Group:  Hardware/Other
-Url:https://github.com/linux-nvme/nvme-cli
-Source: %{name}-%{version}.tar.xz
+URL:https://github.com/linux-nvme/nvme-cli
+Source: 
https://github.com/linux-nvme/nvme-cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source2:nvme-cli-rpmlintrc
 # downstream patches:
 Patch102:   0102-nvme-cli-Add-script-to-determine-host-NQN.patch




commit nvme-cli for openSUSE:Factory

2020-02-07 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2020-02-07 15:51:22

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.26092 (New)


Package is "nvme-cli"

Fri Feb  7 15:51:22 2020 rev:37 rq:769958 version:1.10.1+git9.872e6b0

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-11-21 
12:57:39.642546487 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.26092/nvme-cli.changes 
2020-02-07 15:52:16.247440560 +0100
@@ -1,0 +2,60 @@
+Mon Jan 27 07:11:47 UTC 2020 - h...@suse.com
+
+- Update to version 1.10.1+git9.872e6b0:
+  * fabrics: fix connection args parsing
+  * nvmf-autoconnect.service
+  * Fix status displayed by vs-telemetry-controller-option wdc plugin command.
+  * Provide documentation for log page directory WDC plugin command
+  * Provide WDC plugin command to dump log page directory
+  * Tests: Hande string encoding and handling failures
+  * Makefile: use UDEVRULESDIR instead of UDEVDIR
+- Rename 'nvme-det-hostnqn' script to 'nvme-gen-hostnqn'
+
+---
+Thu Jan 16 12:12:55 UTC 2020 - h...@suse.com
+
+- Update to version 1.10.1+git2.797ec65:
+  * Makefile: generate Dracut config according to UDEVDIR
+  * Add additional smart log critical warn decoding
+  * New tag for missing docs
+  * Add new wdc documentation
+  * Release v1.10
+  * Regen documentation
+  * Use asprintf for long names
+  * [NVME-CLI] Add documentation file for vs-error-reason-identifier WDC   
 plugin command. [NVME-CLI] Minor updates/corrections to the 
clear-fw-activate-historyand vs-fw-activate-history command help 
text.
+  * [NVME-CLI] Add support for WDC plugin command - vs-error-reason-identifier 
[NVME-CLI] Reverse enable/disable bit on the vs-telemetry-controller-option 
   WDC plugin command
+  * Fix systemd service script use of CONNECT_ARGS env var
+  * Shannon Plugin update.
+  * Doc/Makefile: Introduce 'quiet' build option
+  * Makefile: use 'quiet' compile
+  * Makefile: Use special variables
+  * micron: don't ignore 'system()' return value
+  * Fix libhugetlbfs flags
+  * Regenerate documentation
+  * Micron plugin updates
+  * README.md: Mention the buildroot package
+  * nvmf-autoconnect: add udev rules to set iopolicy for certain NetApp devices
+  * Fix intel json latency statistics output format
+  * intel: Add function lat-stats to cli Adds the lat-stats function to intel 
plugin. If lat-stats-tracking is enabled, lat-stats will print out latency 
statistics according to the user's desired format.
+  * [NVMe-CLI] Update documentation for telemetry data retrieval to 
vs-internal-log wdc plugin command.
+  * [NVMe-CLI] Add support to retrieve telemetry data in vs-internal-log
+  * [nvme-cli] Add documentation file for new  wdc plugin command - 
vs-telemetry-controller-option
+  * [nvme-cli] Add support for wdc plugin command - 
vs-telemetry-controller-option
+  * Fix typo (bulit -> built)
+  * Warn on admin-passthru opcode not matching read/write flag
+  * MAINT: Fix format compile warning error on 32 bit system
+  * nvme-cli: Check for sysfs interface before NVMe discovery
+  * Revert "Add Dera plugin extension."
+  * Revert "Add Dera plugin extension."
+  * Add Dera plugin extension. Add stat sub-command to retrieve Dera device 
status and additional SMART log.
+  * Add Dera plugin extension. Add stat sub-command to retrieve Dera device 
status and additional SMART log.
+  * Improve self test log command
+  * nvme-cli: Update err to 0 in get_telemetry_log
+  * fixup up self-test log when no test is in progress
+  * nvme-cli: Update err value to 0 in get_ns_id func.
+  * Add Dera plugin extension. Add stat sub-command to retrieve Dera device 
status and additional SMART log.
+  * nvme.c: create-ns arguments are added
+- Remove patch merged with upstream
+  * Delete 0101-nvme-add-iopolicy-rules-for-netapp.patch
+
+---

Old:

  0101-nvme-add-iopolicy-rules-for-netapp.patch
  nvme-cli-1.9+git122.c5097d5.tar.xz

New:

  nvme-cli-1.10.1+git9.872e6b0.obscpio
  nvme-cli-1.10.1+git9.872e6b0.tar.xz
  nvme-cli.obsinfo



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.PRtErq/_old  2020-02-07 15:52:18.367441719 +0100
+++ /var/tmp/diff_new_pack.PRtErq/_new  2020-02-07 15:52:18.371441721 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nvme-cli
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the 

commit nvme-cli for openSUSE:Factory

2019-11-21 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-11-21 12:57:38

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.26869 (New)


Package is "nvme-cli"

Thu Nov 21 12:57:38 2019 rev:36 rq:749627 version:1.9+git122.c5097d5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-07-30 
12:37:35.910948118 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.26869/nvme-cli.changes 
2019-11-21 12:57:39.642546487 +0100
@@ -1,0 +2,145 @@
+Tue Nov 19 14:49:40 CET 2019 - h...@suse.de
+
+- Add libhugetlbfs to the list of build requirements
+
+---
+Mon Nov 18 14:00:12 UTC 2019 - h...@suse.com
+
+- Update to version 1.9+git122.c5097d5:
+  * [NVMe-CLI] Get DUI for SN-340 failing with Data Area 4 - Buffer 
Misalignment
+  * Minor intel-nvme print refactor
+  * Use simpler nvme ioctl api for admin
+  * Relocate functions and constants to the files that use them
+  * Move all spec defined structs to single file
+  * Update build rules for .c with no .h
+  * Update my email address
+  * Makefile: fix cleaning subdirectories
+  * remove unused "paths" controller field
+  * reign in line lengths
+  * Add print for directive receive
+  * Unify print routines
+  * regenerate documentation
+  * fix fw-download reference to committing fw
+  * argconfig: Remove unused paramters
+  * fix huawei filter to search all namespaces
+  * nvme-cli: Support for hugetlbfs
+  * Remove all 'struct nvme_command' usage
+  * nvme-cli: Update PMR Capability and PMR Status 1. Adding Controller 
Memory Space Supported(CMSS) in PMRCAP 2. Adding Persistent Memory Region 
Status(CBAI) in PMRSTS
+  * nvme-cli: Update Controller Capabilities Register  1. Add Controller 
Memory Buffer Supported (CMBS)
+  * nvme-cli: Update NVMe Registers1. Add Controller Memory Buffer Memory 
Space Control (CMBMSC)   2. Add Controller Memory Buffer Status (CMBSTS)
 3. Add Persistent Memory Region Memory Space Control (PMRMSC)
+  * fixup attach-ns documentation
+  * Add files via upload
+  * [NVMe-CLI] Updates and fixes to WDC plugin command vs-internal-log for the 
SN340 drive.
+  * Regen docs, add host-nqn man page
+  * [NVMe-ClI] Add Documentation files for clear-fw-activate-history command
+  * [NVMe-CLI] Add clear-fw-activate-history WDC plugin command
+  * fix namespace checks for legacy list
+  * Reset wdc_do_cap_dui default parameters to the proper values
+  * README.md: Mention the OpenEmbedded/Yocto recipe
+  * Intel plugin: Adding fields to id-ctrl VU region Per 
https://github.com/linux-nvme/nvme-cli/pull/584/commits/f33510efbf5192116e5757d13a02463d446a1dc5#r332178975
 removing pack pragma on vu_id_ctrl_field struct.
+  * udev: convert the discovery event handler to the kernel support
+  * Use a systemd app-specific machine ID for hostnqn
+  * nvme-cli: Add 'transport type' error to the error log
+  * nvme-cli: Update nvme_endurance_group_log structure
+  * Adding fields to id-ctrl VU reigon for Intel DC drives
+  * Check return value of scandir
+  * nvme-cli: Add namespace-id option to self-test-log
+  * Report invalid output format for 'list' command
+  * Provide no-binary output format help text
+  * regen documentation
+  * Documentation: nvme-wdc-vs-fw-activate-history(1,html) generated
+  * nvme-cli/fabrics: Add tos param to connect cmd
+  * nvme.spec.in: fix rpm build error
+  * Correct self-test-log output
+  * nvme: Add 'Endurance Group Critical Warning Summary' to the Smart/Health 
information Log
+  * [NVMe-CLI] Documentation file for WDC vs-fw-activate-history command.
+  * [NVMe-CLI] Add new WDC plugin command vs-fw-activate-history.
+  * make: install-hostparams depends on install-etc
+  * MAINT: compile warning error on 32 bit system
+  * nvme-print: fix to print ctrltype when human-readable
+  * nvme: add Persistent Memory Region(PMR) Write Elasticity Status Registers
+  * [NVMe-CLI] Fix Potential Memory Leak with vs-internal-log command.
+  * regen docs
+  * fix admin-passthru documentation typo
+  * [NVMe-CLI] Fix empty file issue with vs-internal-log wdc plugin command
+  * nvme-cli: Fix namespace list output
+  * Fix builds for missing uuid
+  * Revert "remove LIBUUID things from nvme.h"
+  * Revert "nvme-cli: Fix compile on non-libuuid machines"
+  * Revert "fix uuid include typo"
+  * [NVMe-CLI] Fix offset parameter size for vs-internal-log wdc plugin 
command.
+  * remove LIBUUID things from nvme.h
+  * fix build error due to asprintf()
+  * id-ctrl: show Flush command behavior in VWC
+  * fix uuid include typo
+  * nvme-cli: Fix compile on non-libuuid machines
+  * [NVMe-CLI] Add updated documentation for additional parameters to specify 
file size   in 

commit nvme-cli for openSUSE:Factory

2019-07-30 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-07-30 12:37:35

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.4126 (New)


Package is "nvme-cli"

Tue Jul 30 12:37:35 2019 rev:35 rq:719004 version:1.8.1+git135.9bab71e

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-05-27 
08:36:26.999116243 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.4126/nvme-cli.changes  
2019-07-30 12:37:35.910948118 +0200
@@ -1,0 +2,46 @@
+Fri Jul 26 20:22:17 UTC 2019 - sschric...@suse.com
+
+- Update to version 1.8.1+git135.9bab71e:
+  * various documentation improvements
+  * nvme-cli: Restore support for older gcc versions
+  * [NVMe-CLI] Add support for larger data sizes needed to get DUI data.
+  * [Log] Memblaze add more log infomation for S.M.A.R.T.
+  * nvme: add Verify command
+  * lnvm: do not print 0 when the arg is not given
+  * lnvm: remove redundant whitespace in lnvm_init()
+  * nvme: clean up goto labels without whitespace
+  * format: check BLKRRPART failure
+  * [NVMe-CLI] Add support for SN730 to WDC plugin commmands
+  * Add verbose capability to get DUI function to improve debug
+  * nvme-print: Show value for Transport SGL Data Block Descriptor support
+  * [NVMe-CLI] WDC: Add support for 64 bit data addresses in Get DUI Data 
functions
+  * nvme-cli: Fix more endianness issues
+  * nvme-print: add JSON for NVMe 1.4 NPWG, NPWA, NPDG, NPDA and NOWS fields
+  * fabrics: Return errno mapped for fabrics error status
+  * fabrics: return error when discovery retry exhausted
+  * nvme: Return errno mapped for nvme error status
+  * nvme-status: Introduce nvme status module to map errno
+  * nvme: Return negative error value for internal errors
+  * fabrics: Do not return in the middle of the subcommand
+  * nvme: Do not return in the middle of the subcommand
+  * nvme-cli: Report the NVMe 1.4 NPWG, NPWA, NPDG, NPDA and NOWS fields
+  * Introduce NVMe 1.4 Identify Namespace fields in struct nvme_id_ns
+  * nvme-cli: Skip properties that are not supported
+  * Fix various bugs related to endianness bugs
+  * NVMe-Cli Shannon Plugin-add support for shannon systems.
+  * nvme-print: fix json object memory leak
+  * fabrics: Fix memory leak of subsys list
+  * nvme: update description for "nvme list" command
+  * nvme: update list-ns nsid option
+  * nvme-print: add pretty print for estimated sanitize time
+  * add namespace to json output of nvme list
+  * add free call for json object for commands show-regs
+  * add newline for command show-regs
+  * nvme-cli: remove unnecessary initialize of local var
+  * nvme-cli: don't try to disconnect for ctrl with pcie transport
+  * Fix sprintf truncate
+- Reorder install steps: Install systemd services first, since they
+  are required for the udev rules, avoiding a theoretical race
+  condition.
+
+---

Old:

  nvme-cli-1.8.1+git64.b969cf0.tar.xz

New:

  nvme-cli-1.8.1+git135.9bab71e.tar.xz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.CafqlD/_old  2019-07-30 12:37:36.906947992 +0200
+++ /var/tmp/diff_new_pack.CafqlD/_new  2019-07-30 12:37:36.910947992 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:1.8.1+git64.b969cf0
+Version:1.8.1+git135.9bab71e
 Release:0
 Summary:NVM Express user space tools
 License:GPL-2.0-only
@@ -77,10 +77,10 @@
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}
 install -m 644 -D /dev/null %{buildroot}%{_sysconfdir}/nvme/hostnqn
 install -m 644 -D completions/bash-nvme-completion.sh 
%{buildroot}%{_datadir}/bash_completion/completions/nvme
-install -m 644 -D nvme-fc-autoconnect/70-nvmefc-autoconnect.rules 
%{buildroot}%{_udevrulesdir}/70-nvmefc-autoconnect.rules
 install -m 644 -D nvme-fc-autoconnect/nvmefc-boot-connections.service 
%{buildroot}%{_unitdir}/nvmefc-boot-connections.service
 install -m 644 -D nvme-fc-autoconnect/nvmefc-connect@.service 
%{buildroot}%{_unitdir}/nvmefc-connect@.service
 install -m 644 -D nvme-fc-autoconnect/nvmefc-connect.target 
%{buildroot}%{_unitdir}/nvmefc-connect.target
+install -m 644 -D nvme-fc-autoconnect/70-nvmefc-autoconnect.rules 
%{buildroot}%{_udevrulesdir}/70-nvmefc-autoconnect.rules
 install -m 644 -D scripts/71-nvme-iopolicy-netapp-ONTAP.rules 
%{buildroot}%{_udevrulesdir}/71-nvme-iopolicy-netapp-ONTAP.rules
 install -m 644 -D scripts/71-nvme-iopolicy-netapp-E-Series.rules 
%{buildroot}%{_udevrulesdir}/71-nvme-iopolicy-netapp-E-Series.rules
 %ifarch x86_64 aarch64 i586

++ _servicedata ++
--- 

commit nvme-cli for openSUSE:Factory

2019-05-27 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-05-27 08:36:24

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.5148 (New)


Package is "nvme-cli"

Mon May 27 08:36:24 2019 rev:34 rq:704985 version:1.8.1+git64.b969cf0

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-05-15 
12:24:44.398055377 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.5148/nvme-cli.changes  
2019-05-27 08:36:26.999116243 +0200
@@ -1,0 +2,19 @@
+Thu May 23 06:55:34 UTC 2019 - Simon Schricker 
+
+- Add new subpackage containing the nvme-cli regress script
+- Add script to determine host NQN based on the system UUID
+  + 0008-nvme-cli-Add-script-to-determine-host-NQN.patch
+- Add new udev rule for NetApp E-Series and adjust udev rule naming
+  scheme accordingly. (bsc#1124564)
+  + 0006-nvme-cli-add-default-IO-policy-rule-for-NetApp-E-Ser.patch
+  + 0007-nvme-cli-Rename-udev-rule-for-ONTAP-controller.patch
+- Update to version 1.8.1+git64.b969cf0:
+  * fix json print for list-subsys command
+  * Add Virtium plugin extension document
+  * Add Virtium plugin extension
+  * nvme.h: Fix typos in status code values
+  * nvme-cli: remove unused NVME_AER_NOTICE_
+  * list-ctrl, create-ns, format: Do not return directly without
+freeing fd
+
+---

Old:

  nvme-cli-1.8.1+git41.2c43c51.tar.xz

New:

  0006-nvme-cli-add-default-IO-policy-rule-for-NetApp-E-Ser.patch
  0007-nvme-cli-Rename-udev-rule-for-ONTAP-controller.patch
  0008-nvme-cli-Add-script-to-determine-host-NQN.patch
  nvme-cli-1.8.1+git64.b969cf0.tar.xz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.OLceRy/_old  2019-05-27 08:36:27.635115995 +0200
+++ /var/tmp/diff_new_pack.OLceRy/_new  2019-05-27 08:36:27.639115993 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:1.8.1+git41.2c43c51
+Version:1.8.1+git64.b969cf0
 Release:0
 Summary:NVM Express user space tools
 License:GPL-2.0-only
@@ -31,17 +31,32 @@
 Patch3: 0003-Add-nvmefc-connect.target.patch
 Patch4: 0004-Change-service-to-type-simple.patch
 Patch5: 0005-nvme-cli-Check-for-sysfs-interface-before-NVMe-disco.patch
+Patch6: 0006-nvme-cli-add-default-IO-policy-rule-for-NetApp-E-Ser.patch
+Patch7: 0007-nvme-cli-Rename-udev-rule-for-ONTAP-controller.patch
+Patch8: 0008-nvme-cli-Add-script-to-determine-host-NQN.patch
 BuildRequires:  libuuid-devel
 BuildRequires:  pkgconfig
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRequires:  rubygem(asciidoctor)
+%ifarch x86_64 aarch64 i586
+Requires(post): dmidecode
+%endif
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
 nvme-cli package contains core management tools with minimal
 dependencies.
 
+%package -n nvme-cli-regress-script
+Summary:A small script to test the nvme binary for regressions
+Group:  Hardware/Other
+Requires:   nvme-cli
+
+%description -n nvme-cli-regress-script
+A small shell script to test the nvme binary for regressions. It requires an
+NVMe device for testing purposes. Do NOT use in a production environment.
+
 %prep
 %setup -q
 %patch1 -p1
@@ -49,10 +64,14 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
 echo %{version} > version
 make CFLAGS="%{optflags} -I." PREFIX=%{_prefix} USE_ASCIIDOCTOR=YesPlease 
%{?_smp_mflags} all
+sed -i '/make.*/d' regress
 
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}
@@ -62,7 +81,13 @@
 install -m 644 -D nvme-fc-autoconnect/nvmefc-boot-connections.service 
%{buildroot}%{_unitdir}/nvmefc-boot-connections.service
 install -m 644 -D nvme-fc-autoconnect/nvmefc-connect@.service 
%{buildroot}%{_unitdir}/nvmefc-connect@.service
 install -m 644 -D nvme-fc-autoconnect/nvmefc-connect.target 
%{buildroot}%{_unitdir}/nvmefc-connect.target
-install -m 644 -D scripts/71-nvme-iopolicy-netapp.rules 
%{buildroot}%{_udevrulesdir}/71-nvme-iopolicy-netapp.rules
+install -m 644 -D scripts/71-nvme-iopolicy-netapp-ONTAP.rules 
%{buildroot}%{_udevrulesdir}/71-nvme-iopolicy-netapp-ONTAP.rules
+install -m 644 -D scripts/71-nvme-iopolicy-netapp-E-Series.rules 
%{buildroot}%{_udevrulesdir}/71-nvme-iopolicy-netapp-E-Series.rules
+%ifarch x86_64 aarch64 i586
+install -m 744 -D scripts/det-hostnqn.sh 
%{buildroot}%{_sbindir}/nvme-det-hostnqn
+%endif
+# for subpackage nvme-cli-regress-script:
+install -m 744 -D regress %{buildroot}%{_sbindir}/nvme-regress
 
 %define services nvmefc-boot-connections.service 

commit nvme-cli for openSUSE:Factory

2019-05-15 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-05-15 12:24:42

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.5148 (New)


Package is "nvme-cli"

Wed May 15 12:24:42 2019 rev:33 rq:702761 version:1.8.1+git41.2c43c51

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-05-06 
13:18:25.924123970 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.5148/nvme-cli.changes  
2019-05-15 12:24:44.398055377 +0200
@@ -1,0 +2,103 @@
+Thu May  9 15:19:44 UTC 2019 - Simon Schricker 
+
+- Update to version 1.8.1+git41.2c43c51:
+  * nvme-print: remove Virtual Management support from ONCS
+  * nvme-print: update self-test log to include 'aborted due to
+sanitize'
+  * move to DocBook 5
+  * nvme-cli: add missing endianness conversions for telemetry log
+page
+  * property: Fit print size for a property
+  * Add Disable IO flag to wdc_dump_dui_data function
+  * Reorder primary commands
+  * nvme-cli: add identify secondary controller list
+  * sanitize/get-telemetry-log: Print nvme status in case ret > 0
+  * print: Introduce show_nvme_status to print nvme status
+  * ioctl: Fix wrong return case of get_property
+  * ioctl: Fix double-free in a loop of get_property
+  * improved Documentation
+  * fix compilation with GCC-8
+  * fix CFLAGS parameter
+  * nvme-cli: fix compilation with uint64_t cast
+  * nvme-cli: minor cleanup for submit_io()
+  * nvme-cli: align all the macros
+  * wdc: Change device capability checking
+  * wdc: Add additional device for vs-internal-log
+  * wdc: Add device unit info log extraction
+  * wdc: Add get drive status command
+  * wdc: Add clear assert dump status command
+  * wdc: Add drive resize command
+  * wdc: Update device capabilities for clear pcie corr
+  * wdc: Update file parameter checking
+  * wdc: Add command to extract NAND statistics
+  * wdc: Add data area extraction for DUI command
+  * wdc: Additional device capabilities check
+  * nvme-cli: fix fc trtype string
+  * NVMe-CLI WDC Plugin - add support for additional SN840 device ID.
+  * WDC plugin Change vs-internal-log Command to Save Partial E6 Log Data.
+  * WDC Plugins vs-internal-log command unsupported on SN340.
+  * Fix print format specifiers
+  * Fix format block size usage
+  * Add reporting of Virtual Management support to id-ctrl
+  * Fix possible NULL pointer dereferences
+  * Fix possible memory leak on get-internal-log
+  * Print timestamp as a date and time string
+  * nvme-cli: add netapp ontapdevices command
+  * Add FreeBSD installation instructions
+  * Adding a helper to format command
+  * fabrics: Return negative errno when asprintf() fails
+  * fabrics: Return negative errno to check remove_ctrl() is failed
+  * nvme: Support raw_binary and json format for show-regs
+  * ioctl: Free memory if get_property for fabrics failed
+  * nvme: Use ARRAY_SIZE() macro in common.h
+  * nvme: Unify min(), max() macro as a common one
+  * nvme: Simplify description for virt-mgmt
+  * nvme: Simplify virt-mgmt options to lowercase
+  * nvme-print: Fix evaluation of ctratt on pretty print
+  * nvme: print I/O error to stderr
+- Drop obsolete patches:
+  - 0001-wdc-Change-device-capability-checking.patch
+  - 0002-wdc-Add-additional-device-for-vs-internal-log.patch
+  - 0003-generate-new-documentation.patch
+  - 0004-Fix-compilation-with-GCC-8.patch
+  - 0005-Fix-CFLAGS-parameter.patch
+  - 0006-nvme-cli-fix-compilation-with-uint64_t-cast.patch
+  - 0007-Regen-docs.patch
+  - 0008-nvme-cli-minor-cleanup-for-submit_io.patch
+  - 0009-Regen-documentation.patch
+  - 0010-nvme-cli-fix-fc-trtype-string.patch
+  - 0011-nvme-cli-add-netapp-ontapdevices-command.patch
+  - 0012-nvme-cli-add-netapp-ontapdevices-man-page.patch
+  - 0013-nvme-cli-Revert-stop-on-failure-with-connect-all.patch
+  - 0014-nvme-cli-Increase-size-of-ONTAP-namespace-path-varia.patch
+  - 0015-DOC-Move-to-DocBook-5-when-using-asciidoctor.patch
+  - 0104-nvme-cli-Fix-documentation-syntax-and-typo.patch
+- Rename downstream patch:
+  + 0001-nvme_fc-auto-connect-scripts.patch
+  + 0002-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
+  + 0003-Add-nvmefc-connect.target.patch
+  + 0004-Change-service-to-type-simple.patch
+  + 0005-nvme-cli-Check-for-sysfs-interface-before-NVMe-disco.patch
+  - 0100-nvme_fc-auto-connect-scripts.patch
+  - 0101-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
+  - 0102-Add-nvmefc-connect.target.patch
+  - 0103-Change-service-to-type-simple.patch
+  - 0105-nvme-cli-Check-for-sysfs-interface-before-NVMe-disco.patch
+
+---
+Wed May  8 16:04:34 UTC 2019 - Dominique Leuenberger 
+
+- No longer convert via obsolete DocBook 4.5 format, but rather 

commit nvme-cli for openSUSE:Factory

2019-05-06 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-05-06 13:18:09

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.5148 (New)


Package is "nvme-cli"

Mon May  6 13:18:09 2019 rev:32 rq:699825 version:1.7

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-04-02 
09:18:13.700525434 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.5148/nvme-cli.changes  
2019-05-06 13:18:25.924123970 +0200
@@ -1,0 +2,12 @@
+Fri Apr 12 08:45:04 UTC 2019 - Simon Schricker 
+
+- Add new 'ontapdevices' command and corresponding documentation.
+  Requested in (bsc#1131930).
+  + 0011-nvme-cli-add-netapp-ontapdevices-command.patch
+  + 0012-nvme-cli-add-netapp-ontapdevices-man-page.patch
+  + 0104-nvme-cli-Fix-documentation-syntax-and-typo.patch
+- Revert stop-on-failure patch for connect-all, which caused
+  unintended behaviour (bsc#1132124)
+  + 0013-nvme-cli-Revert-stop-on-failure-with-connect-all.patch
+
+---

New:

  0011-nvme-cli-add-netapp-ontapdevices-command.patch
  0012-nvme-cli-add-netapp-ontapdevices-man-page.patch
  0013-nvme-cli-Revert-stop-on-failure-with-connect-all.patch
  0104-nvme-cli-Fix-documentation-syntax-and-typo.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.2DVP9V/_old  2019-05-06 13:18:29.972134898 +0200
+++ /var/tmp/diff_new_pack.2DVP9V/_new  2019-05-06 13:18:29.976134909 +0200
@@ -35,10 +35,14 @@
 Patch8: 0008-nvme-cli-minor-cleanup-for-submit_io.patch
 Patch9: 0009-Regen-documentation.patch
 Patch10:0010-nvme-cli-fix-fc-trtype-string.patch
+Patch11:0011-nvme-cli-add-netapp-ontapdevices-command.patch
+Patch12:0012-nvme-cli-add-netapp-ontapdevices-man-page.patch
+Patch13:0013-nvme-cli-Revert-stop-on-failure-with-connect-all.patch
 Patch100:   0100-nvme_fc-auto-connect-scripts.patch
 Patch101:   0101-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
 Patch102:   0102-Add-nvmefc-connect.target.patch
 Patch103:   0103-Change-service-to-type-simple.patch
+Patch104:   0104-nvme-cli-Fix-documentation-syntax-and-typo.patch
 BuildRequires:  libuuid-devel
 BuildRequires:  pkgconfig
 BuildRequires:  xmlto
@@ -62,10 +66,14 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
 %patch100 -p1
 %patch101 -p1
 %patch102 -p1
 %patch103 -p1
+%patch104 -p1
 
 %build
 echo %{version} > version

++ 0011-nvme-cli-add-netapp-ontapdevices-command.patch ++
>From 70bfe077af40aeace6c9e2b628b20cf8a34c1def Mon Sep 17 00:00:00 2001
From: Martin George 
Date: Mon, 1 Apr 2019 09:39:56 -0700
Subject: [PATCH] nvme-cli: add netapp ontapdevices command

Add a new ontapdevices command to the NetApp plugin for
NetApp ONTAP devices.

Signed-off-by: Martin George 
Reviewed-by: Steve Schremmer 
---
 plugins/netapp/netapp-nvme.c | 342 +++
 plugins/netapp/netapp-nvme.h |   1 +
 2 files changed, 343 insertions(+)

diff --git a/plugins/netapp/netapp-nvme.c b/plugins/netapp/netapp-nvme.c
index 416e74e..2951311 100644
--- a/plugins/netapp/netapp-nvme.c
+++ b/plugins/netapp/netapp-nvme.c
@@ -21,6 +21,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "nvme.h"
 #include "nvme-ioctl.h"
@@ -31,12 +32,28 @@
 #define CREATE_CMD
 #include "netapp-nvme.h"
 
+#define ONTAP_C2_LOG_ID0xC2
+#define ONTAP_C2_LOG_SIZE  4096
+#define ONTAP_LABEL_LEN260
+#define ONTAP_NS_PATHLEN   520
+
 enum {
NNORMAL,
NJSON,
NCOLUMN,
 };
 
+enum {
+   ONTAP_C2_LOG_SUPPORTED_LSP  = 0x0,
+   ONTAP_C2_LOG_NSINFO_LSP = 0x1,
+};
+
+enum {
+   ONTAP_VSERVER_TLV   = 0x11,
+   ONTAP_VOLUME_TLV= 0x12,
+   ONTAP_NS_TLV= 0x13,
+};
+
 static const char *dev_path = "/dev/";
 
 struct smdevice_info {
@@ -46,6 +63,15 @@ struct smdevice_info {
chardev[265];
 };
 
+struct ontapdevice_info {
+   int nsid;
+   struct nvme_id_ctrl ctrl;
+   struct nvme_id_ns   ns;
+   charnsdesc[4096];
+   unsigned char   log_data[ONTAP_C2_LOG_SIZE];
+   chardev[265];
+};
+
 #define ARRAY_LABEL_LEN60
 #define VOLUME_LABEL_LEN   60
 
@@ -77,6 +103,100 @@ static void netapp_nguid_to_str(char *str, __u8 *nguid)
str += sprintf(str, "%02x", nguid[i]);
 }
 
+static void netapp_get_ns_size(char *size, long long *lba,
+   struct nvme_id_ns *ns)
+{
+   

commit nvme-cli for openSUSE:Factory

2019-04-02 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-04-02 09:18:12

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.25356 (New)


Package is "nvme-cli"

Tue Apr  2 09:18:12 2019 rev:31 rq:689771 version:1.7

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-02-13 
10:05:39.685557045 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.25356/nvme-cli.changes 
2019-04-02 09:18:13.700525434 +0200
@@ -1,0 +2,23 @@
+Wed Mar 13 13:43:17 UTC 2019 - Simon Schricker 
+
+- Add nvmefc-connect.target to allow stopping the parameterized
+  services (bsc#1127076). Also change the service type so udevd
+  doesn't have to wait for the termination of the service process.
+  + 0102-Add-nvmefc-connect.target.patch
+  + 0103-Change-service-to-type-simple.patch
+
+---
+Mon Feb 11 12:32:27 CET 2019 - h...@suse.de
+
+- Regenerate documentation (bsc#1124713)
+  * Add 0007-Regen-docs.patch
+- Minor cleanup for submit_io (bsc#1124713)
+  * Add 0008-nvme-cli-minor-cleanup-for-submit_io.patch
+- Regenerate documentation ((bsc#1124713)
+  * Add 0009-Regen-documentation.patch
+- Fix fc_trtype string (bsc#1124713)
+  * Add 0010-nvme-cli-fix-fc-trtype-string.patch
+- Add 71-nvme-iopolicy-netapp.rules (bsc#1124564)
+  * Add 0101-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
+
+---

New:

  0007-Regen-docs.patch
  0008-nvme-cli-minor-cleanup-for-submit_io.patch
  0009-Regen-documentation.patch
  0010-nvme-cli-fix-fc-trtype-string.patch
  0101-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
  0102-Add-nvmefc-connect.target.patch
  0103-Change-service-to-type-simple.patch
  nvme-cli-rpmlintrc



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.4iObRn/_old  2019-04-02 09:18:14.176525871 +0200
+++ /var/tmp/diff_new_pack.4iObRn/_new  2019-04-02 09:18:14.176525871 +0200
@@ -22,20 +22,28 @@
 Summary:NVM Express user space tools
 License:GPL-2.0-only
 Group:  Hardware/Other
-Url:https://github.com/linux-nvme/nvme-cli
+URL:https://github.com/linux-nvme/nvme-cli
 Source: %{name}-%{version}.tar.gz
+Source2:nvme-cli-rpmlintrc
 Patch1: 0001-wdc-Change-device-capability-checking.patch
 Patch2: 0002-wdc-Add-additional-device-for-vs-internal-log.patch
 Patch3: 0003-generate-new-documentation.patch
 Patch4: 0004-Fix-compilation-with-GCC-8.patch
 Patch5: 0005-Fix-CFLAGS-parameter.patch
 Patch6: 0006-nvme-cli-fix-compilation-with-uint64_t-cast.patch
+Patch7: 0007-Regen-docs.patch
+Patch8: 0008-nvme-cli-minor-cleanup-for-submit_io.patch
+Patch9: 0009-Regen-documentation.patch
+Patch10:0010-nvme-cli-fix-fc-trtype-string.patch
 Patch100:   0100-nvme_fc-auto-connect-scripts.patch
+Patch101:   0101-71-nvme-iopolicy-netapp.rules-add-default-rules-for-.patch
+Patch102:   0102-Add-nvmefc-connect.target.patch
+Patch103:   0103-Change-service-to-type-simple.patch
 BuildRequires:  libuuid-devel
+BuildRequires:  pkgconfig
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRequires:  rubygem(asciidoctor)
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
@@ -43,14 +51,21 @@
 dependencies.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
 %patch100 -p1
+%patch101 -p1
+%patch102 -p1
+%patch103 -p1
 
 %build
 echo %{version} > version
@@ -59,15 +74,17 @@
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}
 install -m 644 -D /dev/null %{buildroot}%{_sysconfdir}/nvme/hostnqn
-install -m 644 -D completions/bash-nvme-completion.sh 
%{buildroot}%{_sysconfdir}/bash_completion.d/nvme
+install -m 644 -D completions/bash-nvme-completion.sh 
%{buildroot}%{_datadir}/bash_completion/completions/nvme
 install -m 644 -D nvme-fc-autoconnect/70-nvmefc-autoconnect.rules 
%{buildroot}%{_udevrulesdir}/70-nvmefc-autoconnect.rules
 install -m 644 -D nvme-fc-autoconnect/nvmefc-boot-connections.service 
%{buildroot}%{_unitdir}/nvmefc-boot-connections.service
 install -m 644 -D nvme-fc-autoconnect/nvmefc-connect@.service 
%{buildroot}%{_unitdir}/nvmefc-connect@.service
+install -m 644 -D nvme-fc-autoconnect/nvmefc-connect.target 
%{buildroot}%{_unitdir}/nvmefc-connect.target
+install -m 644 -D 

commit nvme-cli for openSUSE:Factory

2019-02-13 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-02-13 10:05:23

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.28833 (New)


Package is "nvme-cli"

Wed Feb 13 10:05:23 2019 rev:30 rq:673599 version:1.7

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2019-01-28 
20:50:47.233756965 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.28833/nvme-cli.changes 
2019-02-13 10:05:39.685557045 +0100
@@ -1,0 +2,5 @@
+Tue Jan 29 15:30:35 CET 2019 - ti...@suse.de
+
+- Build documents with asciidoctor (bsc#1075764)
+
+---



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.x89TdE/_old  2019-02-13 10:05:42.033556455 +0100
+++ /var/tmp/diff_new_pack.x89TdE/_new  2019-02-13 10:05:42.033556455 +0100
@@ -31,10 +31,10 @@
 Patch5: 0005-Fix-CFLAGS-parameter.patch
 Patch6: 0006-nvme-cli-fix-compilation-with-uint64_t-cast.patch
 Patch100:   0100-nvme_fc-auto-connect-scripts.patch
-BuildRequires:  asciidoc
 BuildRequires:  libuuid-devel
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
+BuildRequires:  rubygem(asciidoctor)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -54,7 +54,7 @@
 
 %build
 echo %{version} > version
-make CFLAGS="%{optflags} -I." PREFIX=%{_prefix} %{?_smp_mflags} all
+make CFLAGS="%{optflags} -I." PREFIX=%{_prefix} USE_ASCIIDOCTOR=YesPlease 
%{?_smp_mflags} all
 
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}




commit nvme-cli for openSUSE:Factory

2019-01-28 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2019-01-28 20:50:03

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new.28833 (New)


Package is "nvme-cli"

Mon Jan 28 20:50:03 2019 rev:29 rq:669109 version:1.7

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-10-22 
11:23:59.27177 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new.28833/nvme-cli.changes 
2019-01-28 20:50:47.233756965 +0100
@@ -1,0 +2,515 @@
+Mon Jan 28 14:36:32 UTC 2019 - h...@suse.com
+
+- Update to version 1.7:
+  * Use tnvmcap register for creating namespace
+  * don't execute a command if --dry-run is supplied
+  * Remove trailing "\n" so that the output is valid json
+  * nvme-cli: remove unnecessary assignments
+  * nvme-print.c : fix ns-descs JSON output
+  * nvme-cli: fix typo in json_print_list_items
+  * nvme-get-property : Add documentation
+  * fabrics: write ctrl_loss_tmo to fabrics device on connect
+  * fabrics: write keep-alive-timeout to fabrics device on connect
+  * nvme-models.c - search for pci.ids
+  * nvme-cli add ns write protect feature support
+  * nvme-cli: add minimal ana-log page support
+  * nvme-cli: add ana-log documentation
+  * Fix print format specifier for 64-bit
+  * nvme-ana-log: fixup compiler warning in show_ana_log()
+  * nvme-vendor: fixup c99 declaration in huawei plugin
+  * nvme-discover: sanitize options
+  * Fix nvme id namespace struct
+  * nvme-cli: make show_registers_cap() static
+  * nvme-cli: wdc-plugin mark array static declaration
+  * nvme-cli: fix sparse warnings for declaration
+  * nvme-cli: don't use unsigned for fd in lnvm-nvme.c
+  * nvme-cli: remove always true condition for u8
+  * nvme-cli: fix dead-code nvmf log page discovery
+  * nvme-cli: code cleanup for passthru() handlers
+  * nvme-cli: fix scaandir() return value
+  * nvme-cli: netapp plugin handle empty strings
+  * nvme-cli: Fix the displayed metadata length value on Big Endian systems.
+  * nvme list : fix nvme list output if identify failed on device
+  * nvme-cli: use uniform error message for open
+  * nvme-cli: fix indentation
+  * nvme-cli: make wdc plug-in functions static
+  * nvme-cli: mark functions static
+  * nvme-cli: make malloc error handling uniform
+  * Enlarge local char[] so snprintf(3) can't truncate path.
+  * fabrics: make some arguments integers
+  * fabrics: don't fail empty discovery log page
+  * nvme: commonize subsystems info in a helper
+  * fabrics: add disconnect-all command
+  * Regen documentation
+  * attach-ns : fix segfault for ctrl list wrong input
+  * nvme-discover: Retry discovery log if the generation counter changes
+  * nvme-ioctl: retrieve log pages in 4k chunks
+  * nvme-discover: Re-check generation counter after log page transfer
+  * seagate-nvme: fixup coding style
+  * nvme-cli: Add 'rae' argument to nvme_get_log()
+  * nvme-cli: kill nvme_passthru_admin()
+  * nvme-cli: print "\n" after nvme list-subsys -o json
+  * nvme-cli: tests: fix fw_log test coding style
+  * nvme-cli: tests: fix id_ctrl test coding style
+  * nvme-cli: tests: fix id_ns test coding style
+  * nvme-cli: tests: Add get_id_ctrl function
+  * Update gitignore for generated test files
+  * Add PCI device id checking for the WDC plugin commands.
+  * Fix nvme test device selection to use controller value defined in the 
config.json file. Before this fix, the value was hard coded to nvme0.
+  * nvme-cli: prevent resv action field overflow
+  * nvme-cli: report subsystem-reset not supported by controller
+  * nvme-cli: fix indentation for dir_[send/receive]
+  * nvme-cli: make read error handling uniform
+  * Use sys/ioctl.h to pull in definitions.
+  * Remove unnecessary asm/byteorder.h
+  * Remove unnecessary linux/types.h include.
+  * Include libgen.h for basename prototype.
+  * Include sys/stat.h
+  * nvme-cli: remove endian.h
+  * We don't need to include linux/types.h here.
+  * Initialize line.
+  * Use standard interfaces to get timezone offsets.
+  * nvme-cli: fix ioctl argument
+  * nvme-cli: fix a typo
+  * Enable code block syntax highlight in README.md
+  * Makefile: fix bash completion install path
+  * NVMe-CLI WDC Plugin - Simplify the device id checking routines.
+  * nvme-cli: Add wdc-plugin command vs-internal-log and update wdc-plug 
cap-diag command with transfer-size parameter.
+  * nvme-cli: Add help text for wdc-plugin command vs-internal-log. Update 
help text for wdc-plugin command cap-diag.
+  * Update documentation
+  * nvme.spec.in : fix bash completion path, require
+  * nvme-cli wdc plugin: Add get pfail dump command.
+  * nvme-cli wdc plugin: Add documentation for pfail dump.
+  * Re-gen documentation for new files
+  * wdc: Fix strncpy warning
+  * Refactor plugins in a 

commit nvme-cli for openSUSE:Factory

2018-10-22 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-10-22 11:23:55

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Mon Oct 22 11:23:55 2018 rev:28 rq:643135 version:1.6

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-10-18 
15:35:54.622327479 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-10-22 
11:23:59.27177 +0200
@@ -171,0 +172,66 @@
+  - 0006-fabrics-add-ctrl-loss-tmo-to-connect-all.patch
+  - 0007-nvme-vendor-Add-get-log-LSP-LSO-fields-from-1.3-spec.patch
+  - 0008-nvme-cli-Implement-nvme_get_log13.patch
+  - 0009-nvme-cli-Add-support-of-unsigned-long-long-to-json-r.patch
+  - 0010-nvme-cli-add-support-of-RAE.patch
+  - 0011-nvme-cli-add-minimal-ana-log-page-support.patch
+  - 0012-nvme-cli-add-ana-log-documentation.patch
+  - 0013-nvme-discover-sanitize-options.patch
+  - 0014-Fix-double-free-in-list_subsys.patch
+  - 0015-Log-error-incase-of-failure-in-get_nvme_subsystem_in.patch
+  - 0016-nvme-cli-move-print-function-to-nvme-print.patch
+  - 0017-nvme-cli-show-partial-results-if-controller-fails-du.patch
+  - 0018-nvme-list-subsys-Add-device-name-argument-and-print-.patch
+  - 0019-nvme-discover-Retry-discovery-log-if-the-generation-.patch
+  - 0020-nvme-cli-fabrics-Fix-passing-host_traddr-for-all-tra.patch
+  - 0021-fabrics-write-ctrl_loss_tmo-to-fabrics-device-on-con.patch
+  - 0022-fabrics-write-keep-alive-timeout-to-fabrics-device-o.patch
+
+---
+Fri Aug 10 11:13:43 CEST 2018 - h...@suse.de
+
+- nvme-discover: Retry discovery log if the generation counter changes
+  (bsc#1087848)
+  + 0019-nvme-discover-Retry-discovery-log-if-the-generation-.patch
+- nvme-fabrics: Fix passing "host_traddr" for all transports (bsc#1084379)
+  + 0020-nvme-cli-fabrics-Fix-passing-host_traddr-for-all-tra.patch
+- fabrics: write ctrl_loss_tmo to fabrics device on connect (bsc#1084379)
+  + 0021-fabrics-write-ctrl_loss_tmo-to-fabrics-device-on-con.patch
+- fabrics: write keep-alive-timeout to fabrics device on connect (bsc#1090568)
+  + 0022-fabrics-write-keep-alive-timeout-to-fabrics-device-o.patch
+
+---
+Tue Aug  7 13:00:23 CEST 2018 - h...@suse.de
+
+- nvme-vendor: Add get_log LSP & LSO fields from 1.3 spec
+  (bsc#1099018)
+  + 0007-nvme-vendor-Add-get-log-LSP-LSO-fields-from-1.3-spec.patch
+- nvme-cli: Implement nvme_get_log13 (bsc#1099018)
+  + 0008-nvme-cli-Implement-nvme_get_log13.patch
+- nvme-cli: Add support of unsigned long long to json (bsc#1099018)
+  + 0009-nvme-cli-Add-support-of-unsigned-long-long-to-json-r.patch
+- nvme-cli: add support of RAE (bsc#1099018)
+  + 0010-nvme-cli-add-support-of-RAE.patch
+- nvme-cli: add minimal ana-log page support (bsc#1099018)
+  + 0011-nvme-cli-add-minimal-ana-log-page-support.patch
+- nvme-cli: add ana_log documentation (bsc#1099018)
+  + 0012-nvme-cli-add-ana-log-documentation.patch
+- nvme-discover: sanitize options
+  + 0013-nvme-discover-sanitize-options.patch
+- Fix double free in list_subsys
+  + 0014-Fix-double-free-in-list_subsys.patch (bsc#1099018)
+- Log error in case of failure in get_nvme_subsystem (bsc#1099018)
+  + 0015-Log-error-incase-of-failure-in-get_nvme_subsystem_in.patch
+- nvme-cli: move print function to nvme-print.c (bsc#1099018)
+  + 0016-nvme-cli-move-print-function-to-nvme-print.patch
+- nvme-cli: show partial results if controller fails (bsc#1099018)
+  + 0017-nvme-cli-show-partial-results-if-controller-fails-du.patch
+- nvme-list-subsys: Add device name argument and print ANA state
+  (bsc#1099018)
+  + 0018-nvme-list-subsys-Add-device-name-argument-and-print-.patch
+
+---
+Thu Jun  7 11:05:39 UTC 2018 - jthumsh...@suse.com
+
+- Add ctrl-loss-tmo to connect-all command (bsc#1084379)
+   + 0006-fabrics-add-ctrl-loss-tmo-to-connect-all.patch



Other differences:
--



commit nvme-cli for openSUSE:Factory

2018-10-18 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-10-18 15:35:20

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Thu Oct 18 15:35:20 2018 rev:27 rq:642655 version:1.6

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-05-08 
13:37:42.712747742 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-10-18 
15:35:54.622327479 +0200
@@ -1,0 +2,172 @@
+Tue Oct 16 07:29:31 UTC 2018 - jthumsh...@suse.com
+
+- Update to version v1.6 (FATE#326139, FATE#326434, FATE#326558):
+  * Release 1.6
+  * lightnvm: fix type coercion
+  * fix reservation report 0's based dword count
+  * nvme.c, list_ns: use le32_to_cpu in display
+  * nvme-cli: adjust memset size for data buffer in submit_io
+  * fabrics: omit newline character when reading nvme host nqn
+  * fabrics: fail early if argconfig_parse failed
+  * nvme-cli: print firmware activation notices support bit to id_ctrl
+  * nvme-cli: add support of RAE
+  * Add a single get-property command for NVMeOF.
+  * nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance
+  * nvme-cli: add support for DLFEAT
+  * intel: fix latency stats printing
+  * Update doc
+  * nvme-cli: add changed-ns-list-log documentation
+  * nvme-cli: add changed log ns support
+  * NVMe-CLI Fix id-ns fpi field when Human Readable option selected.
+  * Fix format specifier for 32-bit
+  * Fix json output of 128-bit numbers
+  * Replace host-gen telemetry short-option 'h' with 'g'
+  * Add man pages for new device self test commands
+  * Updating version to 1.1
+  * nvme-cli: Implement printing get NOPSC feature
+  * nvme-cli: Implement printing the get Keep Alive Timer feature
+  * nvme-cli: Implement printing the get host controlled thermal management 
feature.
+  * nvme-cli: Implement printing the get timestamp feature.
+  * Adding ppc big endian support
+  * Revert "nvme-cli: Wait for device file if not present after successful 
add_ctrl"
+  * Revert "nvme-cli: Add ioctl retry support for "connect-all""
+  * nvme-cli: fix compilation error
+  * Updatign the plugin version
+  * refactored some strings
+  * Removed Duplicate commands.
+  * Initial checkin for Seagate Plugin
+  * nvme-cli: update the document for id-nvmset subcommand
+  * nvme-cli: update new fields in id-ns subcommand
+  * nvme-cli: add support for id-nvmset subcommand
+  * Wrote man page for telemetry
+  * nvme-cli: Implemented Device self test and log.
+  * Add user parameter to specify data area region from telemetry log
+  * Regenerate man pages
+  * Documentation: allow to format with asciidoctor
+  * Documentation: fix title markers
+  * fabrics: add ctrl-loss-tmo to connect-all
+  * nvme-cli: Modify Get Features-Asynchronous Event Configuration
+  * Add open-channel 2.0 identify support
+  * nvme-cli: fix show command typo
+  * nvme-cli: Fix build breaks for GCC 8.1 Signed-off-by: Alexey Timofeyev 

+  * Add nvme id-ns command test
+  * Add nvme id-ctrl command test
+  * Add nvme fw-log commmand test
+  * Add support for Micron plugin
+  * nvme-cli: fix get_nsid() return value check
+  * nvme-cli: allow block device for delete-ns
+  * nvme-cli: Add ioctl retry support for "connect-all"
+  * nvme-cli: Wait for device file if not present after successful add_ctrl
+  * nvme-cli: show partial results if controller fails during list and 
list-subsys
+  * fabrics: add option to supply keep-alive-timeout for connect-all
+  * nvme-cli: fix perror when blkdev not given when get-ns-id
+  * Fixes for log page access.
+  * nvme-cli: make it return 0 in case of non-fabric for show-regs
+  * Regenrate documentation
+  * Documentation: add manpage entry for connect's --ctrl-loss-tmo setting
+  * nvme-cli: fix leak in endurance_log command
+  * nvme-cli: fix seg_fault by cmd options in endurance_log
+  * Remove error print for telemetry log arg parse
+  * Fix intel media wear json output
+  * Use fixed-width integer types for long suffixed parameters
+  * Add toshiba plugin to makefile rules.
+  * Add toshiba plugin code and command documentation.
+  * nvme-cli: Add friendly status messages
+  * nvme-cli: correct spelling of discovery
+  * get-log: Make log identifier a required parameter
+  * nvme-cli: fabrics: Fix passing "host_traddr" for all transports
+  * Log error incase of failure in get_nvme_subsystem_info()
+  * Fix double free in list_subsys
+  * Fix parameter descriptions
+  * Add remaining fields from NVM Sets
+  * Don't print non-existent command line options
+  * Fixed a bug where cdw11 was being overwritten by cdw12
+  * Regenerate documentation
+  * Add manpage for endurance log
+  * nvme-cli: fix typo in 'disconnect' docs
+  * Fix fabrics property commands
+  * Fix 

commit nvme-cli for openSUSE:Factory

2018-05-08 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-05-08 13:37:36

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Tue May  8 13:37:36 2018 rev:26 rq:604707 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-04-16 
12:48:43.293696151 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-05-08 
13:37:42.712747742 +0200
@@ -1,0 +2,6 @@
+Wed May  2 07:49:52 UTC 2018 - jthumsh...@suse.com
+
+- Add keep-alive-tmo option to connect-all command (bsc#1090568)
+  + 0005-fabrics-add-option-to-supply-keep-alive-timeout-for.patch
+
+---

New:

  0005-fabrics-add-option-to-supply-keep-alive-timeout-for.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.VA6ZAQ/_old  2018-05-08 13:37:43.632714538 +0200
+++ /var/tmp/diff_new_pack.VA6ZAQ/_new  2018-05-08 13:37:43.632714538 +0200
@@ -33,6 +33,7 @@
 Patch2: 0002-nvme-cli-add-netapp-smdevices-man-page.patch
 Patch3: 0003-get-log-Make-log-identifier-a-required-parameter.patch
 Patch4: 0004-Documentation-add-manpage-entry-for-connect-s-ctrl-l.patch
+Patch5: 0005-fabrics-add-option-to-supply-keep-alive-timeout-for.patch
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
@@ -45,6 +46,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 echo %{version} > version

++ 0005-fabrics-add-option-to-supply-keep-alive-timeout-for.patch ++
From: Johannes Thumshirn 
Date: Wed, 25 Apr 2018 11:49:23 -0600
Subject: fabrics: add option to supply keep-alive-timeout for connect-all
References: bsc#1090568
Git-commit: 7099227b07a86f152fa62b9a96f77a2f3e22f59f
Patch-mainline: v1.6

Currently we can't supply a keep-alive-timeout when doing a nvme
connect-all, but we can supply it when doing nvme connect.

Bring connect-all in line with connect.

Signed-off-by: Johannes Thumshirn 
Signed-off-by: Keith Busch 
---
 Documentation/nvme-connect-all.txt | 5 +
 fabrics.c  | 1 +
 2 files changed, 6 insertions(+)

diff --git a/Documentation/nvme-connect-all.txt 
b/Documentation/nvme-connect-all.txt
index 03adac5..217268f 100644
--- a/Documentation/nvme-connect-all.txt
+++ b/Documentation/nvme-connect-all.txt
@@ -14,6 +14,7 @@ SYNOPSIS
[--trsvcid=  | -s ]
[--host-traddr=   | -w ]
[--hostnqn=  | -q ]
+   [--keep-alive-tmo=<#> | -k <#>]
[--raw= | -r ]
 
 DESCRIPTION
@@ -86,6 +87,10 @@ OPTIONS
Overrides the default number of elements in the I/O queues created
by the driver.
 
+-k <#>::
+--keep-alive-tmo=<#>::
+   Overrides the default keep alive timeout (in seconds).
+
 EXAMPLES
 
 * Connect to all records returned by the Discover Controller with IP4 address
diff --git a/fabrics.c b/fabrics.c
index 62bd3be..7e9d56c 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -821,6 +821,7 @@ int discover(const char *desc, int argc, char **argv, bool 
connect)
{"queue-size",  'Q', "LIST", CFG_STRING, _size,  
required_argument, "number of io queue elements to use (default 128)" },
{"nr-io-queues",'i', "LIST", CFG_STRING, 
_io_queues,required_argument, "number of io queues to use (default is 
core count)" },
{"raw", 'r', "LIST", CFG_STRING, , 
required_argument, "raw output file" },
+   {"keep-alive-tmo",  'k', "LIST", CFG_STRING, 
_alive_tmo,  required_argument, "keep alive timeout period in seconds" 
},
{NULL},
};
 



commit nvme-cli for openSUSE:Factory

2018-04-16 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-04-16 12:48:41

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Mon Apr 16 12:48:41 2018 rev:25 rq:596316 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-04-05 
15:33:50.927367984 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-04-16 
12:48:43.293696151 +0200
@@ -1,0 +2,6 @@
+Thu Apr 12 08:22:04 UTC 2018 - jthumsh...@suse.com
+
+- Add ctrl-loss-tmo option to fabrics connect manpage (bsc#1084379)
+   + 0004-Documentation-add-manpage-entry-for-connect-s-ctrl-l.patch
+
+---

New:

  0004-Documentation-add-manpage-entry-for-connect-s-ctrl-l.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.XgrOVC/_old  2018-04-16 12:48:44.041668942 +0200
+++ /var/tmp/diff_new_pack.XgrOVC/_new  2018-04-16 12:48:44.041668942 +0200
@@ -32,6 +32,7 @@
 Patch1: 0001-nvme-cli-add-NetApp-plugin.patch
 Patch2: 0002-nvme-cli-add-netapp-smdevices-man-page.patch
 Patch3: 0003-get-log-Make-log-identifier-a-required-parameter.patch
+Patch4: 0004-Documentation-add-manpage-entry-for-connect-s-ctrl-l.patch
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
@@ -43,6 +44,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 echo %{version} > version

++ 0004-Documentation-add-manpage-entry-for-connect-s-ctrl-l.patch ++
>From 524fd54b7cbfe38935d61a10b810da64f0ac759b Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Tue, 10 Apr 2018 10:39:57 +0200
Subject: [PATCH nvme-cli] Documentation: add manpage entry for connect's
 --ctrl-loss-tmo setting

When adding nvme connect's --ctrl-loss-tmo flag we forgot to update
the manpage accordingly.

Signed-off-by: Johannes Thumshirn 
Reported-by: Matt Schulte 
---
 Documentation/nvme-connect.txt | 5 +
 1 file changed, 5 insertions(+)

diff --git a/Documentation/nvme-connect.txt b/Documentation/nvme-connect.txt
index a746a3a721ed..af78b2a8238f 100644
--- a/Documentation/nvme-connect.txt
+++ b/Documentation/nvme-connect.txt
@@ -19,6 +19,7 @@ SYNOPSIS
[--queue-size=<#> | -Q <#>]
[--keep-alive-tmo=<#> | -k <#>]
[--reconnect-delay=<#>| -c <#>]
+   [--ctrl-loss-tmo=<#>  | -l <#>]
 
 DESCRIPTION
 ---
@@ -88,6 +89,10 @@ OPTIONS
Overrides the default delay (in seconds) before reconnect is attempted
after a connect loss.
 
+-l <#>::
+--ctrl-loss-tmo=<#>::
+   Overrides the default controller loss timeout period (in seconds).
+
 EXAMPLES
 
 * Connect to a subsystem named 
nqn.2014-08.com.example:nvme:nvm-subsystem-sn-d78432
-- 
2.16.2




commit nvme-cli for openSUSE:Factory

2018-04-05 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-04-05 15:33:47

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Thu Apr  5 15:33:47 2018 rev:24 rq:593537 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-02-14 
10:51:44.169437338 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-04-05 
15:33:50.927367984 +0200
@@ -1,0 +2,6 @@
+Wed Apr  4 09:56:54 UTC 2018 - jthumsh...@suse.com
+
+- Make log identifier a required parameter (bsc#1086240)
+  + 0003-get-log-Make-log-identifier-a-required-parameter.patch
+
+---

New:

  0003-get-log-Make-log-identifier-a-required-parameter.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.6YMl0E/_old  2018-04-05 15:33:52.175322881 +0200
+++ /var/tmp/diff_new_pack.6YMl0E/_new  2018-04-05 15:33:52.175322881 +0200
@@ -20,7 +20,7 @@
 Version:1.5
 Release:0
 Summary:NVM Express user space tools
-License:GPL-2.0
+License:GPL-2.0-only
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
 Source: %{name}-v%{version}.tar.gz
@@ -31,6 +31,7 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch1: 0001-nvme-cli-add-NetApp-plugin.patch
 Patch2: 0002-nvme-cli-add-netapp-smdevices-man-page.patch
+Patch3: 0003-get-log-Make-log-identifier-a-required-parameter.patch
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
@@ -41,6 +42,7 @@
 %setup -q -n %{name}-v%{version}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 echo %{version} > version

++ 0003-get-log-Make-log-identifier-a-required-parameter.patch ++
From: Keith Busch 
Date: Mon, 19 Mar 2018 16:55:34 -0600
Subject: get-log: Make log identifier a required parameter
Git-commit: 44044e6c3c6fc1d4813163d5054c0750ef88ee06
References: bsc#1086240
Patch-mainline: v1.6

If you're using the generic get-log, make sure the user specifies the
log parameter. It would be a user error if they don't as they should
never be counting on a default parameter.

Link: https://github.com/linux-nvme/nvme-cli/pull/320
Signed-off-by: Keith Busch 
---
 nvme.c |   16 ++--
 1 file changed, 14 insertions(+), 2 deletions(-)

--- a/nvme.c
+++ b/nvme.c
@@ -409,7 +409,7 @@ static int get_log(int argc, char **argv
 
struct config cfg = {
.namespace_id = NVME_NSID_ALL,
-   .log_id   = 0,
+   .log_id   = 0x,
.log_len  = 0,
};
 
@@ -431,9 +431,16 @@ static int get_log(int argc, char **argv
cfg.log_id = (cfg.aen >> 16) & 0xff;
}
 
+   if (cfg.log_id > 0xff) {
+   fprintf(stderr, "Invalid log identifier: %d. Valid range: 
0-255\n", cfg.log_id);
+   err = EINVAL;
+   goto close_fd;
+   }
+
if (!cfg.log_len) {
fprintf(stderr, "non-zero log-len is required param\n");
-   return EINVAL;
+   err = EINVAL;
+   goto close_fd;
} else {
unsigned char *log;
 
@@ -457,9 +464,14 @@ static int get_log(int argc, char **argv
nvme_status_to_string(err), 
err);
else
perror("log page");
+   close(fd);
free(log);
return err;
}
+
+close_fd:
+   close(fd);
+   return err;
 }
 
 static const char * sanitize_mon_status_to_string(__u16 status)



commit nvme-cli for openSUSE:Factory

2018-02-14 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-02-14 10:51:36

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Feb 14 10:51:36 2018 rev:23 rq:576274 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2018-01-10 
23:38:11.375517319 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-02-14 
10:51:44.169437338 +0100
@@ -1,0 +2,7 @@
+Tue Feb 13 13:18:29 UTC 2018 - jthumsh...@suse.com
+
+- Add NetApp vendor plugin (bsc#1080672) 
+  + 0001-nvme-cli-add-NetApp-plugin.patch
+  + 0002-nvme-cli-add-netapp-smdevices-man-page.patch
+
+---

New:

  0001-nvme-cli-add-NetApp-plugin.patch
  0002-nvme-cli-add-netapp-smdevices-man-page.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.paGiHf/_old  2018-02-14 10:51:44.753416321 +0100
+++ /var/tmp/diff_new_pack.paGiHf/_new  2018-02-14 10:51:44.757416177 +0100
@@ -29,6 +29,8 @@
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Patch1: 0001-nvme-cli-add-NetApp-plugin.patch
+Patch2: 0002-nvme-cli-add-netapp-smdevices-man-page.patch
 
 %description
 NVM Express (NVMe) is a direct attached storage interface. The
@@ -37,6 +39,8 @@
 
 %prep
 %setup -q -n %{name}-v%{version}
+%patch1 -p1
+%patch2 -p1
 
 %build
 echo %{version} > version

++ 0001-nvme-cli-add-NetApp-plugin.patch ++
From: "Schremmer, Steven" 
Date: Mon, 12 Feb 2018 19:27:32 +
Subject: [PATCH nvme-cli 1/2] nvme-cli: add NetApp plugin
Git-commit: 396677894203bedbe9d037b20d9197361899fa03 
References: bsc#1080672

Add smdevices command for NetApp E-Series devices.

Signed-off-by: Steve Schremmer 
---
 Makefile  |3 
 netapp-nvme.c |  293 ++
 netapp-nvme.h |   17 +++
 3 files changed, 312 insertions(+), 1 deletion(-)
 create mode 100644 netapp-nvme.c
 create mode 100644 netapp-nvme.h

--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,8 @@ NVME_DPKG_VERSION=1~`lsb_release -sc`
 
 OBJS := argconfig.o suffix.o parser.o nvme-print.o nvme-ioctl.o \
nvme-lightnvm.o fabrics.o json.o plugin.o intel-nvme.o \
-   lnvm-nvme.o memblaze-nvme.o wdc-nvme.o nvme-models.o huawei-nvme.o
+   lnvm-nvme.o memblaze-nvme.o wdc-nvme.o nvme-models.o huawei-nvme.o \
+   netapp-nvme.o
 
 nvme: nvme.c nvme.h $(OBJS) NVME-VERSION-FILE
$(CC) $(CPPFLAGS) $(CFLAGS) nvme.c -o $(NVME) $(OBJS) $(LDFLAGS)
--- /dev/null
+++ b/netapp-nvme.c
@@ -0,0 +1,293 @@
+/*
+* Copyright (c) 2018 NetApp, Inc.
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+*/
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include "nvme.h"
+#include "nvme-ioctl.h"
+#include "json.h"
+
+#include "suffix.h"
+
+#define CREATE_CMD
+#include "netapp-nvme.h"
+
+enum {
+   NNORMAL,
+   NJSON,
+   NCOLUMN,
+};
+
+static const char *dev_path = "/dev/";
+
+struct smdevice_info {
+   int nsid;
+   struct nvme_id_ctrl ctrl;
+   struct nvme_id_ns   ns;
+   chardev[265];
+};
+
+#define ARRAY_LABEL_LEN60
+#define VOLUME_LABEL_LEN   60
+
+/*
+ * Format of the string isn't tightly controlled yet. For now, squash UCS-2 
into
+ * ASCII. dst buffer must be at least count + 1 bytes long
+ */
+static void netapp_convert_string(char *dst, char *src, unsigned int count)
+{
+   int i;
+
+   if (!dst || !src || !count)
+   return;
+
+   memset(dst, 0, count + 1);
+   for (i = 0; i < count; i++)
+   dst[i] = src[i * 2 + 1];
+}
+
+static void netapp_nguid_to_str(char *str, __u8 *nguid)
+{
+   int i;
+
+   memset(str, 0, 33);
+   for (i = 0; i < 16; i++)
+   str += sprintf(str, "%02x", nguid[i]);
+}
+
+static void netapp_smdevice_json(struct json_array *devices, char *devname,
+   char *arrayname, char *volname, int nsid, char *nguid,
+   char *ctrl, char *astate, 

commit nvme-cli for openSUSE:Factory

2018-01-10 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2018-01-10 23:38:04

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Jan 10 23:38:04 2018 rev:22 rq:563246 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-12-15 
14:06:53.724242731 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2018-01-10 
23:38:11.375517319 +0100
@@ -1,0 +2,60 @@
+Wed Jan 10 10:17:08 UTC 2018 - jthumsh...@suse.com
+
+- Update to version v1.5 (FATE#322735):
+  * Remove upstreamed patches:
+- 0001-nvme-Introduce-new-list-subsys-command.patch
+- 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
+  * fabrics: also set queue_size and nr_io_queues on connect-all connects
+  * nvme-cli: add duplicate_connect parameter support
+  * nvme-cli : wdc-plugin Add support for WDC SN100 and SN200 devices.
+  * Add AEN decoder helper to get-log
+  * Regen documentation
+  * Add Nix(OS) install instructions to the README
+  * Fix the Markdown code for the Alpine install instructions
+  * nvme-cli: make address print format more human-readable
+  * intel-nvme: Fix compiler errors and warnings
+  * Include sizing data in json output that's already included in the non-json 
results.
+  * Cleanup variable definitions
+  * Add command effects log page
+  * Increase default format timeout
+  * Revert "nvme-cli: add duplicate_connect parameter support"
+  * nvme-cli: add duplicate_connect parameter support
+  * nvme-cli: fix wrong bitmask in number of rpmb units.
+  * nvme-cli: make command description const
+  * nvme/id-ns: do not try to get namespace id from non-block device.
+  * Fix typo in previous commit
+  * Fix long suffix parse on 32-bit machines
+  * Nitpicked a printing alignment issue with the id-ns vendor specific field
+  * Avoid unnecessary abbreviation.
+  * nvme/flush: explicitely close file descriptor
+  * Fix memory leak
+  * Add 'DEAC' support to write-zeroes command
+  * Rebuild documentation
+  * nvme-cli: resync nvme.h with the kernel's
+  * NVMe-CLI : WDC-Plugin Updated Smart Log Command
+  * NVMe-CLI : WDC-Plugin Documentation for Updated Smart Log Command
+  * Regenerate documentation
+  * nvme-cli: update show_registers_cc() to use nvme.h
+  * nvme-cli: replace values of all namespaces with NVME_NSID_ALL
+  * nvme-cli: add prints for new HMB identify fields of TP 4002
+  * Update get-feature help text
+  * Improve code alignment on intel plugin
+  * Update intel internal log man page.
+  * nvme-cli/intel: Return if arg parsing returns error
+  * nvme: add options for write command directives
+  * Update documentation
+  * Updated the human readable printing for the SGLS field in the id-ctrl 
command to be compliant with NVMe 1.3
+  * nvme: Introduce new 'list-subsys' command
+  * nvme-cli: add support to get properties for NVMe over Fabric
+  * nvme-cli: support to set the property for NVMe over Fabric
+  * Reorder command list
+  * Documentation fixes
+  * nvme-cli: add support alias command with Firmware Activate
+  * nvme-cli: update Firmware Commit with boot partition feature
+  * nvme-cli: add command specific status of Firmware Commit
+  * Update documentation to use aliases
+  * nvme-cli: add prints of boot partition feature to show-regs
+  * nvme-cli: Fix small mem leak.
+  * Release v1.5
+
+---

Old:

  0001-nvme-Introduce-new-list-subsys-command.patch
  0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
  nvme-cli-v1.4.tar.gz

New:

  nvme-cli-v1.5.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.3sulQe/_old  2018-01-10 23:38:11.895492924 +0100
+++ /var/tmp/diff_new_pack.3sulQe/_new  2018-01-10 23:38:11.895492924 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nvme-cli
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:1.4
+Version:1.5
 Release:0
 Summary:NVM Express user space tools
 License:GPL-2.0
@@ -29,8 +29,6 @@
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-Patch1: 0001-nvme-Introduce-new-list-subsys-command.patch
-Patch9: 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
 
 %description
 NVM Express (NVMe) is a direct 

commit nvme-cli for openSUSE:Factory

2017-12-15 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-12-15 14:05:50

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Fri Dec 15 14:05:50 2017 rev:21 rq:556892 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-10-25 
17:47:28.259556891 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-12-15 
14:06:53.724242731 +0100
@@ -1,0 +2,6 @@
+Thu Dec 14 09:01:52 UTC 2017 - jthumsh...@suse.com
+
+- Add list-subs subcommand (bsc#1072813)
+  + 0001-nvme-Introduce-new-list-subsys-command.patch
+
+---

New:

  0001-nvme-Introduce-new-list-subsys-command.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.sxnPqB/_old  2017-12-15 14:06:55.200171482 +0100
+++ /var/tmp/diff_new_pack.sxnPqB/_new  2017-12-15 14:06:55.200171482 +0100
@@ -29,6 +29,7 @@
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Patch1: 0001-nvme-Introduce-new-list-subsys-command.patch
 Patch9: 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
 
 %description
@@ -39,6 +40,7 @@
 %prep
 %setup -q -n %{name}-v%{version}
 %patch9 -p1
+%patch1 -p1
 
 %build
 echo %{version} > version

++ 0001-nvme-Introduce-new-list-subsys-command.patch ++
 601 lines (skipped)




commit nvme-cli for openSUSE:Factory

2017-10-25 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-10-25 17:47:27

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Oct 25 17:47:27 2017 rev:20 rq:536377 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-10-18 
16:16:49.803768415 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-10-25 
17:47:28.259556891 +0200
@@ -1,0 +2,5 @@
+Tue Oct 24 12:40:48 UTC 2017 - jeng...@inai.de
+
+- Update descriptions.
+
+---



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.Zml83G/_old  2017-10-25 17:47:28.90352 +0200
+++ /var/tmp/diff_new_pack.Zml83G/_new  2017-10-25 17:47:28.911526291 +0200
@@ -19,7 +19,7 @@
 Name:   nvme-cli
 Version:1.4
 Release:0
-Summary:Core nvme tools
+Summary:NVM Express user space tools
 License:GPL-2.0
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
@@ -32,8 +32,9 @@
 Patch9: 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
 
 %description
-NVMe is a fast, scalable, direct attached storage interface. The nvme
-cli rpm installs core management tools with minimal dependencies.
+NVM Express (NVMe) is a direct attached storage interface. The
+nvme-cli package contains core management tools with minimal
+dependencies.
 
 %prep
 %setup -q -n %{name}-v%{version}




commit nvme-cli for openSUSE:Factory

2017-10-18 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-10-18 16:16:48

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Oct 18 16:16:48 2017 rev:19 rq:534901 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-10-18 
10:54:04.758747419 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-10-18 
16:16:49.803768415 +0200
@@ -1,0 +2,91 @@
+Wed Oct 18 07:11:40 UTC 2017 - jthumsh...@suse.com
+
+- Update to version v1.4 (FATE#322735):
+  * Fixup Security send/recv to read data from disk
+  * Unbreak RPM build after bash completion files were moved in 7e4c7596
+  * fabrics: Fix disconnect_by_device from disconnecting instance 0 on error
+  * lightnvm: allow to init target on factory mode
+  * Fixed problem with security-recv binary output not working correctly
+  * nvme-cli: return 0 if disconnect operation with cfg.nqn successfully
+  * Fix compile for 32-bit
+  * nvme-cli: Fix build on aarch64-linux-android-4.9
+  * nvme-cli: Huawei plug-in.
+  * nvme-print: Fix line spacing on -H option
+  * id-ctrl: remove new lines from json output
+  * nvme-list: print empty lists when no devices are present
+  * fabrics: add option to override drivers queue depth
+  * nvme-cli: nvme-intel implement json output for smart-log
+  * nvme-cli: Add parsing support for noiob
+  * Fix potential device string truncation
+  * fabrics: add option to override drivers queue depth also for connect-all 
command
+  * Regenerate man-pages
+  * Release v1.3
+  * nvme-print: Free only top-level json objects
+  * fix use-after-free in pci.ids parsing
+  * nvme-cli: add fields into identify controller data structure
+  * nvme-cli: show more fields for id-ctrl
+  * nvme-cli: id-ctrl: display additional fields
+  * Show help when no or an invalid device is given
+  * nvme-cli: add id-ctrl for nvme-huawei plug-in.
+  * Fix spelling errors
+  * fabrics: add hostid option to connect command
+  * nvme-cli: add ns-descs subcommand
+  * nvme-cli: Get Feature support for Extended Host Id
+  * nvme-cli: Fix typo in Intel plugin and improve generic help text
+  * Implement Intel Vendor specific logs
+  * nvme-cli: add thermal management fields for smart-log
+  * nvme-cli: add temperature sensor fields in json_smart_log
+  * nvme-cli: add output-format discription for smart-log
+  * Formatting update
+  * Regenerate documentation
+  * nvme-cli: add error message for nvme list.
+  * Fix typo of flbas in nvme_create_max_ns_test
+  * Show help for get-ns-id
+  * Show help for nvme reset and subsystem-reset
+  * nvme-cli: Extended Data Structure in resv-report
+  * Update docs
+  * resync nvme.h with the kernel nvme.h
+  * nvme-cli : add support for sanitize command.
+  * nvme-cli : add sanitize command documentation.
+  * nvme-cli : add support for retrieving sanitize log.
+  * nvme-cli : add sanitize-log command documentation.
+  * fix build without libuuid
+  * nvme-cli : wdc-plug-in : return on invalid input device.
+  * nvme-cli : only print help text and return for nvme list -h option.
+  * nvme-cli/list-ns: fix identifying active or allocated namespaces list
+  * Fixed get_internal_log to parse the entire nlog and allow selection of 
specific regions to be parsed.
+  * NVMe-CLI Fix Sanitize Command Parameter Types
+  * Fix app tag and mask setting
+  * Fix app tag field sizes
+  * nvme-cli/list: fix when nvme device can not be open
+  * nvme-cli/list: change fd returned by open operation from unsigned to 
signed.
+  * Makefile: allow linker override for cross uuid test
+  * nvme-cli: fix connecting failure due to invalid uuid format of hostid
+  * nvme-cli/fabrics: Add ctrl-loss-tmo param to connect cmd
+  * Fixing macro definitions to avoid issues when these are used in expressions
+  * nvme-cli: add nvme directive command support
+  * nvme-cli: add documentation for directive commands
+  * fix for issue 219, show-regs reports AQA.ACQS and AQA.ASQS as bytes
+  * nvme-cli: Fix nvme ns desc
+  * new bit fields (6, 7, and 8) for OACS from NVMe rev 1.3
+  * added new bit field (6) to ONCS from NVMe rev 1.3
+  * nvme-cli: Describe action 3 of nvme activate
+  * nvme-cli: generate spec-compliant UUID NQNs
+  * NVMe-CLI Fixed Status Code check for reset type on fw-activate.
+  * Added handling for temperature threshold values below 0C(273K) and removed 
buffer check for human readable output as Temperature threshold feature does 
not use Memory Buffer for Attributes
+  * Update nvme.c
+  * nvme-cli : Add Namespace Rescan Command
+  * nvme-cli : Add man documentation files for ns-rescan command.
+  * Version 1.4 Release
+  * Drop upstream patches:
+- 

commit nvme-cli for openSUSE:Factory

2017-10-18 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-10-18 10:54:00

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Oct 18 10:54:00 2017 rev:18 rq:534387 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-08-31 
21:04:14.649824338 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-10-18 
10:54:04.758747419 +0200
@@ -1,0 +2,12 @@
+Tue Oct 17 08:55:35 UTC 2017 - jthumsh...@suse.com
+
+- allow override queue depth and nr io queues on connect-all (bsc#1063462)
+  + 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
+
+---
+Thu Sep  7 07:25:27 UTC 2017 - jthumsh...@suse.com
+
+- Generate Spec compliant UUID NQNs (bsc#1057498)
+  + 0008-nvme-cli-generate-spec-compliant-uuid-nqns.patch
+
+---

New:

  0008-nvme-cli-generate-spec-compliant-uuid-nqns.patch
  0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.QvST5u/_old  2017-10-18 10:54:05.486713266 +0200
+++ /var/tmp/diff_new_pack.QvST5u/_new  2017-10-18 10:54:05.490713079 +0200
@@ -37,6 +37,8 @@
 Patch5: 0005-nvme-cli-add-ns-descs-subcommand.patch
 Patch6: 0006-fabrics-add-hostid-option-to-connect-command.patch
 Patch7: 
0007-nvme-cli-fix-connecting-failure-due-to-invalid-uuid-format.patch
+Patch8: 0008-nvme-cli-generate-spec-compliant-uuid-nqns.patch
+Patch9: 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -52,6 +54,8 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
+%patch9 -p1
 
 %build
 echo %{version} > version

++ 0008-nvme-cli-generate-spec-compliant-uuid-nqns.patch ++
>From 7352a2c76a4061196b5be1d1fac516135fd1f1f9 Mon Sep 17 00:00:00 2001
From: Daniel Verkamp 
Date: Wed, 30 Aug 2017 15:25:16 -0700
Subject: [PATCH] nvme-cli: generate spec-compliant UUID NQNs

The gen-hostnqn command previously generated UUID NQNs in a format that
does not match the NVMe specification.

Signed-off-by: Daniel Verkamp 
Reviewed-by: Christoph Hellwig 
Signed-off-by: Keith Busch 
---
 Documentation/nvme-gen-hostnqn.txt | 2 +-
 nvme.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/nvme-gen-hostnqn.txt 
b/Documentation/nvme-gen-hostnqn.txt
index 6d5346f..9efefb5 100644
--- a/Documentation/nvme-gen-hostnqn.txt
+++ b/Documentation/nvme-gen-hostnqn.txt
@@ -13,7 +13,7 @@ SYNOPSIS
 DESCRIPTION
 ---
 Generate a random host NQN in the form:
-nqn.2014-08.org.nvmexpress:NVMf:uuid:1b4e28ba-2fa1-11d2-883f-0016d3cca427
+nqn.2014-08.org.nvmexpress:uuid:1b4e28ba-2fa1-11d2-883f-0016d3cca427
 and prints it to stdout.
 
 OPTIONS
diff --git a/nvme.c b/nvme.c
index 676e8bf..f1d6d65 100644
--- a/nvme.c
+++ b/nvme.c
@@ -3217,7 +3217,7 @@ static int gen_hostnqn_cmd(int argc, char **argv, struct 
command *command, struc
 
uuid_generate_random(uuid);
uuid_unparse_lower(uuid, uuid_str);
-   printf("nqn.2014-08.org.nvmexpress:NVMf:uuid:%s\n", uuid_str);
+   printf("nqn.2014-08.org.nvmexpress:uuid:%s\n", uuid_str);
return 0;
 }
 #else
++ 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch ++
>From cb15bb65ac7a838bbc0359d41ee0fa3f96c2af1f Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Mon, 16 Oct 2017 13:01:05 +0200
Subject: [PATCH nvme-cli] fabrics: also set queue_size and nr_io_queues on 
connect-all connects
References: bsc#1063462
Patch-mainline: Submitted, 
http://lists.infradead.org/pipermail/linux-nvme/2017-October/013303.html

Although nvme connect-all -Q does set the queue_size parameter for the initial
discovery connection, it does not set it for the subsequent connections to the
discovered targets.

An
yields the following:

write(3, "nqn=nqn.2014-08.org.nvmexpress.d"..., 180) = 180
 | 0  6e 71 6e 3d 6e 71 6e 2e  32 30 31 34 2d 30 38 2e  nqn=nqn.2014-08. |
 | 00010  6f 72 67 2e 6e 76 6d 65  78 70 72 65 73 73 2e 64  org.nvmexpress.d |
 | 00020  69 73 63 6f 76 65 72 79  2c 74 72 61 6e 73 70 6f  iscovery,transpo |
 | 00030  72 74 3d 72 64 6d 61 2c  74 72 61 64 64 72 3d 31  rt=rdma,traddr=1 |
 | 00040  2e 31 2e 31 2e 33 2c 74  72 73 76 63 69 64 3d 34  .1.1.3,trsvcid=4 |
 | 00050  34 32 30 2c 68 6f 73 74  6e 71 6e 3d 6e 

commit nvme-cli for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-08-31 21:03:50

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Thu Aug 31 21:03:50 2017 rev:17 rq:519919 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-07-02 
13:38:21.301565607 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-08-31 
21:04:14.649824338 +0200
@@ -1,0 +2,6 @@
+Thu Aug 31 10:21:34 UTC 2017 - jthumsh...@suse.com
+
+- Fix hostid parsing (bsc#1049272)
+  + 0007-nvme-cli-fix-connecting-failure-due-to-invalid-uuid-format.patch
+
+---

New:

  0007-nvme-cli-fix-connecting-failure-due-to-invalid-uuid-format.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.TUtswx/_old  2017-08-31 21:04:16.429574280 +0200
+++ /var/tmp/diff_new_pack.TUtswx/_new  2017-08-31 21:04:16.473568099 +0200
@@ -36,6 +36,7 @@
 Patch4: 0004-nvme-cli-id-ctrl-display-additional-fields.patch
 Patch5: 0005-nvme-cli-add-ns-descs-subcommand.patch
 Patch6: 0006-fabrics-add-hostid-option-to-connect-command.patch
+Patch7: 
0007-nvme-cli-fix-connecting-failure-due-to-invalid-uuid-format.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -50,6 +51,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 echo %{version} > version

++ 0007-nvme-cli-fix-connecting-failure-due-to-invalid-uuid-format.patch 
++
>From 0832d06cd62d3541489a3b74e6280b6b68522880 Mon Sep 17 00:00:00 2001
From: Guan Junxiong 
Date: Thu, 3 Aug 2017 21:38:16 +0800
Subject: [PATCH] nvme-cli: fix connecting failure due to invalid uuid format
 of hostid

When we connect or discover a target with --hostid option via the
/etc/nvme/hostid file, we fails this operation because the hostid
is only 35 not 36 bytes which doesn't pass the uuid checking in the
kernel.The last character is overridden with null bytes because fgets
reads at most one less than sizeof of buffer characters.

Signed-off-by: Guan Junxiong 
Reviewed-by: Christoph Hellwig 
Signed-off-by: Keith Busch 
---
 fabrics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fabrics.c b/fabrics.c
index da4e04e..9ed1127 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -463,7 +463,7 @@ static int nvmf_hostnqn_file(void)
 static int nvmf_hostid_file(void)
 {
FILE *f;
-   char hostid[NVMF_HOSTID_SIZE];
+   char hostid[NVMF_HOSTID_SIZE + 1];
int ret = false;
 
f = fopen(PATH_NVMF_HOSTID, "r");



commit nvme-cli for openSUSE:Factory

2017-07-02 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-07-02 13:38:19

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Sun Jul  2 13:38:19 2017 rev:16 rq:507379 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-06-26 
15:56:59.611639203 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-07-02 
13:38:21.301565607 +0200
@@ -1,0 +2,6 @@
+Fri Jun 30 13:23:48 UTC 2017 - jthumsh...@suse.com
+
+- Add hostid option to connect command (bsc#1045293)
+  + 0006-fabrics-add-hostid-option-to-connect-command.patch
+
+---

New:

  0006-fabrics-add-hostid-option-to-connect-command.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.pWFUhD/_old  2017-07-02 13:38:23.569245827 +0200
+++ /var/tmp/diff_new_pack.pWFUhD/_new  2017-07-02 13:38:23.573245263 +0200
@@ -35,6 +35,7 @@
 Patch3: 0003-nvme-cli-show-more-fields-for-id-ctrl.patch
 Patch4: 0004-nvme-cli-id-ctrl-display-additional-fields.patch
 Patch5: 0005-nvme-cli-add-ns-descs-subcommand.patch
+Patch6: 0006-fabrics-add-hostid-option-to-connect-command.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -48,6 +49,7 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 echo %{version} > version
@@ -62,6 +64,9 @@
 if [ ! -e %{_sysconfdir}/nvme/hostnqn ]; then
%{_sbindir}/nvme gen-hostnqn > %{_sysconfdir}/nvme/hostnqn
 fi
+if [ ! -e %{_sysconfdir}/nvme/hostid ]; then
+   %{_bindir}/uuidgen > %{_sysconfdir}/nvme/hostid
+fi
 
 %files
 %defattr(-,root,root)
@@ -72,5 +77,6 @@
 %{_sysconfdir}/bash_completion.d/nvme
 %dir %{_sysconfdir}/nvme/
 %ghost %{_sysconfdir}/nvme/hostnqn
+%ghost %{_sysconfdir}/nvme/hostid 
 
 %changelog

++ 0006-fabrics-add-hostid-option-to-connect-command.patch ++
>From 9fcf19a9ecbfb46d3beee42d31205fefa9ab3ca2 Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Tue, 20 Jun 2017 14:42:26 +0200
Subject: [PATCH nvme-cli] fabrics: add hostid option to connect command

Add an option to pass in the hostid either via command line or a new config
file /etc/nvme/hostid.

Signed-off-by: Johannes Thumshirn 
Reviewed-by: Christoph Hellwig 
Reviewed-by: Sagi Grimberg 
Signed-off-by: Keith Busch 
---
 fabrics.c| 42 ++
 linux/nvme.h |  1 +
 nvme.spec.in |  4 
 3 files changed, 47 insertions(+)

diff --git a/fabrics.c b/fabrics.c
index bbcca470c72a..87cdba2851d1 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -51,6 +51,7 @@ static struct config {
char *trsvcid;
char *host_traddr;
char *hostnqn;
+   char *hostid;
char *nr_io_queues;
char *queue_size;
char *keep_alive_tmo;
@@ -63,6 +64,7 @@ static struct config {
 #define PATH_NVME_FABRICS  "/dev/nvme-fabrics"
 #define PATH_NVMF_DISC "/etc/nvme/discovery.conf"
 #define PATH_NVMF_HOSTNQN  "/etc/nvme/hostnqn"
+#define PATH_NVMF_HOSTID   "/etc/nvme/hostid"
 #define SYS_NVME   "/sys/class/nvme"
 #define MAX_DISC_ARGS  10
 
@@ -456,6 +458,29 @@ out:
return ret;
 }
 
+static int nvmf_hostid_file(void)
+{
+   FILE *f;
+   char hostid[NVMF_HOSTID_SIZE];
+   int ret = false;
+
+   f = fopen(PATH_NVMF_HOSTID, "r");
+   if (f == NULL)
+   return false;
+
+   if (fgets(hostid, sizeof(hostid), f) == NULL)
+   goto out;
+
+   cfg.hostid = strdup(hostid);
+   if (!cfg.hostid)
+   goto out;
+
+   ret = true;
+out:
+   fclose(f);
+   return ret;
+}
+
 static int build_options(char *argstr, int max_len)
 {
int len;
@@ -516,6 +541,14 @@ static int build_options(char *argstr, int max_len)
max_len -= len;
}
 
+   if (cfg.hostid || nvmf_hostid_file()) {
+   len = snprintf(argstr, max_len, ",hostid=%s", cfg.hostid);
+   if (len < 0)
+   return -EINVAL;
+   argstr += len;
+   max_len -= len;
+   }
+
if (cfg.nr_io_queues) {
len = snprintf(argstr, max_len, ",nr_io_queues=%s",
cfg.nr_io_queues);
@@ -582,6 +615,13 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
p += len;
}
 
+   if (cfg.hostid) {
+   len = sprintf(p, ",hostid=%s", cfg.hostid);
+   if (len < 0)
+  

commit nvme-cli for openSUSE:Factory

2017-06-26 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-06-26 15:56:56

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Mon Jun 26 15:56:56 2017 rev:15 rq:506236 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-06-20 
09:39:38.450450936 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-06-26 
15:56:59.611639203 +0200
@@ -1,0 +2,11 @@
+Mon Jun 26 08:31:50 UTC 2017 - jthumsh...@suse.com
+
+- Create nvme files and directories in /etc/nvme (bsc#1045931 )
+
+---
+Mon Jun 26 08:25:16 UTC 2017 - jthumsh...@suse.com
+
+- Provide nvme ns-descs subcommand (bsc#1038235) 
+  + 0005-nvme-cli-add-ns-descs-subcommand.patch
+
+---

New:

  0005-nvme-cli-add-ns-descs-subcommand.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.qVYF8x/_old  2017-06-26 15:57:00.215554029 +0200
+++ /var/tmp/diff_new_pack.qVYF8x/_new  2017-06-26 15:57:00.219553465 +0200
@@ -25,6 +25,7 @@
 Url:https://github.com/linux-nvme/nvme-cli
 Source: %{name}-v%{version}.tar.gz
 BuildRequires:  asciidoc
+BuildRequires:  libuuid-devel
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -33,6 +34,7 @@
 Patch2: add-missing-nvme_id_crtl-fileds.patch
 Patch3: 0003-nvme-cli-show-more-fields-for-id-ctrl.patch
 Patch4: 0004-nvme-cli-id-ctrl-display-additional-fields.patch
+Patch5: 0005-nvme-cli-add-ns-descs-subcommand.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -45,6 +47,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 echo %{version} > version
@@ -52,8 +55,14 @@
 
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}
+install -m 644 -D /dev/null %{buildroot}%{_sysconfdir}/nvme/hostnqn
 install -m 644 -D completions/bash-nvme-completion.sh 
%{buildroot}%{_sysconfdir}/bash_completion.d/nvme
 
+%post
+if [ ! -e %{_sysconfdir}/nvme/hostnqn ]; then
+   %{_sbindir}/nvme gen-hostnqn > %{_sysconfdir}/nvme/hostnqn
+fi
+
 %files
 %defattr(-,root,root)
 %doc README.md LICENSE
@@ -61,5 +70,7 @@
 %{_mandir}/man1/nvme*.1*
 %dir %{_sysconfdir}/bash_completion.d/
 %{_sysconfdir}/bash_completion.d/nvme
+%dir %{_sysconfdir}/nvme/
+%ghost %{_sysconfdir}/nvme/hostnqn
 
 %changelog

++ 0005-nvme-cli-add-ns-descs-subcommand.patch ++
>From 84937e83e86e11328c8931abc60f7655fae44823 Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Fri, 23 Jun 2017 09:36:35 +0200
Subject: nvme-cli: add ns-descs subcommand
Git-commit: 84937e83e86e11328c8931abc60f7655fae44823
Patch-mainline: v1.4
References: bsc#1038235

NVMe 1.3 defines the "Namespace Identification Descriptor" command in
NVMe Identify NS. This command returns a list of so called Namespace
Identificastion Descriptors which currently can either be a EUI-64,
a NGUID or a UUID.

Signed-off-by: Johannes Thumshirn 
Signed-off-by: Keith Busch 
---
 linux/nvme.h   |  14 +++
 nvme-builtin.h |   1 +
 nvme-ioctl.c   |   6 +++
 nvme-ioctl.h   |   1 +
 nvme-print.c   | 122 +
 nvme-print.h   |   2 +
 nvme.c |  63 +
 7 files changed, 209 insertions(+)

diff --git a/linux/nvme.h b/linux/nvme.h
index 08bf0b1..d1a322b 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -863,6 +863,20 @@ struct nvme_command {
};
 };
 
+#define NVME_IDENTIFY_CMD_LEN 4096
+#define NVME_ID_CNS_NS_DESC_LIST 0x3
+enum {
+   NVME_NIDT_EUI64 = 0x1,
+   NVME_NIDT_NGUID = 0x2,
+   NVME_NIDT_UUID  = 0x3,
+};
+
+struct nvme_ns_id_desc {
+   __u8 nidt;
+   __u8 nidl;
+   __u16 reserved;
+};
+
 static inline bool nvme_is_write(struct nvme_command *cmd)
 {
/*
diff --git a/nvme-builtin.h b/nvme-builtin.h
index 087fc19..91f361d 100644
--- a/nvme-builtin.h
+++ b/nvme-builtin.h
@@ -11,6 +11,7 @@ COMMAND_LIST(
ENTRY("id-ctrl", "Send NVMe Identify Controller", id_ctrl)
ENTRY("id-ns", "Send NVMe Identify Namespace, display structure", id_ns)
ENTRY("list-ns", "Send NVMe Identify List, display structure", list_ns)
+   ENTRY("ns-descs", "Send NVMe Namespace Descriptor List, display 
structure", ns_descs)
ENTRY("create-ns", "Creates a namespace with the provided parameters", 
create_ns)

commit nvme-cli for openSUSE:Factory

2017-06-20 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-06-20 09:39:37

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Tue Jun 20 09:39:37 2017 rev:14 rq:504130 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-06-15 
11:25:45.203409613 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-06-20 
09:39:38.450450936 +0200
@@ -1,0 +2,5 @@
+Fri Jun 16 10:07:38 UTC 2017 - jthumsh...@suse.com
+
+-  Also re-build documentation on each build (bsc#1037297)
+
+---



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.kwsIyy/_old  2017-06-20 09:39:38.970377632 +0200
+++ /var/tmp/diff_new_pack.kwsIyy/_new  2017-06-20 09:39:38.974377067 +0200
@@ -24,6 +24,8 @@
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
 Source: %{name}-v%{version}.tar.gz
+BuildRequires:  asciidoc
+BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch0: 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
@@ -46,7 +48,7 @@
 
 %build
 echo %{version} > version
-make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags}
+make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags} all
 
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}




commit nvme-cli for openSUSE:Factory

2017-06-15 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-06-15 11:25:06

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Thu Jun 15 11:25:06 2017 rev:13 rq:503609 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-05-16 
14:46:18.945345275 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-06-15 
11:25:45.203409613 +0200
@@ -1,0 +2,8 @@
+Wed Jun 14 07:01:27 UTC 2017 - jthumsh...@suse.com
+
+- Add NVMe over Fabrics specific id-ctrl fields (bsc#1037293)
+  + add-missing-nvme_id_crtl-fileds.patch
+  + 0003-nvme-cli-show-more-fields-for-id-ctrl.patch
+  + 0004-nvme-cli-id-ctrl-display-additional-fields.patch
+
+---

New:

  0003-nvme-cli-show-more-fields-for-id-ctrl.patch
  0004-nvme-cli-id-ctrl-display-additional-fields.patch
  add-missing-nvme_id_crtl-fileds.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.Xu7GQJ/_old  2017-06-15 11:25:45.851318153 +0200
+++ /var/tmp/diff_new_pack.Xu7GQJ/_new  2017-06-15 11:25:45.855317588 +0200
@@ -28,6 +28,9 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch0: 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
 Patch1: 0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch
+Patch2: add-missing-nvme_id_crtl-fileds.patch
+Patch3: 0003-nvme-cli-show-more-fields-for-id-ctrl.patch
+Patch4: 0004-nvme-cli-id-ctrl-display-additional-fields.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -37,6 +40,9 @@
 %setup -q -n %{name}-v%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 echo %{version} > version

++ 0003-nvme-cli-show-more-fields-for-id-ctrl.patch ++
>From 176ce81b8d3784a72a2d95888ce4a6f3e205e6e6 Mon Sep 17 00:00:00 2001
From: Guan Junxiong 
Date: Fri, 2 Jun 2017 15:18:19 +0800
Subject: nvme-cli: show more fields for id-ctrl
Git-commit: 176ce81b8d3784a72a2d95888ce4a6f3e205e6e6
Patch-mainline: v1.4

NVMe 1.3 inctrodues new fields such as EDSTT, DSTO, FWUG, HCTMA, MNTMT,
MXTMT, SANICAP into the idenfity controller data structure. The id-ctrl
command should print them or write them into json format. Note that
although KAS field is included in the previous NVMe 1.2.1 spec, this
patch also supports this field.

Reviewed-by: Sagi Grimberg 
Signed-off-by: Keith Busch 
---
 nvme-print.c | 52 
 1 file changed, 52 insertions(+)

diff --git a/nvme-print.c b/nvme-print.c
index 60fe119..ffa63ad 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -198,6 +198,38 @@ static void show_nvme_id_ctrl_rpmbs(__le32 ctrl_rpmbs)
printf("\n");
 }
 
+static void show_nvme_id_ctrl_hctma(__le16 ctrl_hctma)
+{
+   __u16 hctma = le16_to_cpu(ctrl_hctma);
+   __u16 rsvd = (hctma & 0xFFFE) >> 1;
+   __u16 hctm = hctma & 0x1;
+
+   if (rsvd)
+   printf(" [15:1] : %#x\tReserved\n", rsvd);
+   printf("  [0:0] : %#x\tHost Controlled Thermal Management 
%sSupported\n",
+   hctm, hctm ? "" : "Not ");
+   printf("\n");
+}
+
+static void show_nvme_id_ctrl_sanicap(__le32 ctrl_sanicap)
+{
+   __u32 sanicap = le32_to_cpu(ctrl_sanicap);
+   __u32 rsvd = (sanicap & 0xFFF8) >> 3;
+   __u32 owr = (sanicap & 0x4) >> 2;
+   __u32 ber = (sanicap & 0x2) >> 1;
+   __u32 cer = sanicap & 0x1;
+
+   if (rsvd)
+   printf(" [31:3] : %#x\tReserved\n", rsvd);
+   printf("  [2:2] : %#x\tOverwrite Sanitize Operation %sSupported\n",
+   owr, owr ? "" : "Not ");
+   printf("  [1:1] : %#x\tBlock Erase Sanitize Operation %sSupported\n",
+   ber, ber ? "" : "Not ");
+   printf("  [0:0] : %#x\tCrypto Erase Sanitize Operation %sSupported\n",
+   cer, cer ? "" : "Not ");
+   printf("\n");
+}
+
 static void show_nvme_id_ctrl_sqes(__u8 sqes)
 {
__u8 msqes = (sqes & 0xF0) >> 4;
@@ -643,6 +675,18 @@ void __show_nvme_id_ctrl(struct nvme_id_ctrl *ctrl, 
unsigned int mode, void (*ve
printf("rpmbs   : %#x\n", le32_to_cpu(ctrl->rpmbs));
if (human)
show_nvme_id_ctrl_rpmbs(ctrl->rpmbs);
+   printf("edstt   : %d\n", le16_to_cpu(ctrl->edstt));
+   printf("dsto: %d\n", ctrl->dsto);
+   printf("fwug: %d\n", ctrl->fwug);
+   printf("kas : %d\n", le16_to_cpu(ctrl->kas));
+   printf("hctma   : %#x\n", le16_to_cpu(ctrl->hctma));
+  

commit nvme-cli for openSUSE:Factory

2017-05-16 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-05-16 14:45:13

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Tue May 16 14:45:13 2017 rev:12 rq:494788 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-04-26 
21:43:59.885342638 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-05-16 
14:46:18.945345275 +0200
@@ -1,0 +2,7 @@
+Fri May 12 07:10:37 UTC 2017 - jthumsh...@suse.com
+
+- Add possibility to change queue depth at connect time (bsc#1037297)
+  + 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
+  + 0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch
+
+---

New:

  0001-fabrics-add-option-to-override-drivers-queue-depth.patch
  0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.hz6Ma3/_old  2017-05-16 14:46:19.813223345 +0200
+++ /var/tmp/diff_new_pack.hz6Ma3/_new  2017-05-16 14:46:19.817222782 +0200
@@ -26,6 +26,8 @@
 Source: %{name}-v%{version}.tar.gz
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Patch0: 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
+Patch1: 0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -33,6 +35,8 @@
 
 %prep
 %setup -q -n %{name}-v%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 echo %{version} > version

++ 0001-fabrics-add-option-to-override-drivers-queue-depth.patch ++
>From c5e4e6fce969ecd5e02ad6668bcbd1f950aebae6 Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Wed, 10 May 2017 11:04:12 +0200
Subject: fabrics: add option to override drivers queue depth
Git-commit: c5e4e6fce969ecd5e02ad6668bcbd1f950aebae6
Patch-mainline: Staged for v1.3
References: bsc#1037297

Currently it is not possible to override the fabrics drivers default queue
depth with the nvme userspace utility, but only when manually writing the
parameters to the /dev/nvme-fabrics character device.

Add an option to override the drivers default queue depth for NVMe over
fabrics.

Signed-off-by: Johannes Thumshirn 
Signed-off-by: Keith Busch 
---
 Documentation/nvme-connect.txt |  6 ++
 fabrics.c  | 11 +++
 2 files changed, 17 insertions(+)

diff --git a/Documentation/nvme-connect.txt b/Documentation/nvme-connect.txt
index 38fae39..a746a3a 100644
--- a/Documentation/nvme-connect.txt
+++ b/Documentation/nvme-connect.txt
@@ -16,6 +16,7 @@ SYNOPSIS
[--host-traddr=   | -w ]
[--hostnqn=  | -q ]
[--nr-io-queues=<#>   | -i <#>]
+   [--queue-size=<#> | -Q <#>]
[--keep-alive-tmo=<#> | -k <#>]
[--reconnect-delay=<#>| -c <#>]
 
@@ -73,6 +74,11 @@ OPTIONS
 --nr-io-queues=<#>::
Overrides the default number of I/O queues create by the driver.
 
+-Q <#>::
+--queue-size=<#>::
+   Overrides the default number of elements in the I/O queues created
+   by the driver.
+
 -k <#>::
 --keep-alive-tmo=<#>::
Overrides the default keep alive timeout (in seconds).
diff --git a/fabrics.c b/fabrics.c
index 6648bae..a826ecc 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -52,6 +52,7 @@ static struct config {
char *host_traddr;
char *hostnqn;
char *nr_io_queues;
+   char *queue_size;
char *keep_alive_tmo;
char *reconnect_delay;
char *raw;
@@ -524,6 +525,15 @@ static int build_options(char *argstr, int max_len)
max_len -= len;
}
 
+   if (cfg.queue_size) {
+   len = snprintf(argstr, max_len, ",queue_size=%s",
+   cfg.queue_size);
+   if (len < 0)
+   return -EINVAL;
+   argstr += len;
+   max_len -= len;
+   }
+
if (cfg.keep_alive_tmo) {
len = snprintf(argstr, max_len, ",keep_alive_tmo=%s", 
cfg.keep_alive_tmo);
if (len < 0)
@@ -805,6 +815,7 @@ int connect(const char *desc, int argc, char **argv)
{"host-traddr", 'w', "LIST", CFG_STRING, _traddr,  
   required_argument, "host traddr (e.g. FC WWN's)" },
{"hostnqn", 'q', "LIST", CFG_STRING, ,  
   required_argument, "user-defined hostnqn" },
{"nr-io-queues",   

commit nvme-cli for openSUSE:Factory

2017-04-26 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-04-26 21:43:27

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Wed Apr 26 21:43:27 2017 rev:11 rq:490164 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2017-03-12 
20:03:08.413056608 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-04-26 
21:43:29.917573239 +0200
@@ -1,0 +2,43 @@
+Mon Apr 24 07:33:25 UTC 2017 - jthumsh...@suse.com
+
+- Update to version v1.2 (FATE#322735 ,bsc#1033410):
+  * Include endian.h for byte/host order functions
+  * nvme-cli: Add nvme hostnqn generation option
+  * nvme.spec/debian: Auto generate host nqn as part of install
+  * Documentation: Add entry for gen-hostnqn
+  * Regenerate Documentation
+  * Fix read/write man pages
+  * get-features: Don't try to read the data buffer for sel == 3
+  * Documentation: fix location of device reset
+  * Regen documentation
+  * Remove debian/ directory
+  * Remove pyc files generated by 'make test'
+  * Moving the bash completion files to the standard
+  * lightnvm: default to -1 on lun begin and end
+  * nvme-cli: fabrics: Fix to pass "host_traddr" to the kernel driver.
+  * nvme-cli: id-ctrl: Fix memory leak for JSON.
+  * nvme-cli: id-ns: Fix memory leak for JSON.
+  * nvme-cli: error-log: Fix memory leak for JSON.
+  * nvme-cli: resv-report: Fix memory leak.
+  * nvme-cli: smart-log: Fix memory leak for JSON.
+  * nvme-cli: fw-log: Fix memory leak for JSON.
+  * nvme-cli: json_add_smart_log(): Fix memory leak for JSON.
+  * nvme-cli: smart-log: Allow negative values for temp sensors.
+  * Don't print unimplemented sensor
+  * Build without uuid
+  * get-ns-id: Exit when no device provided.
+  * nvme-cli: id-ctrl: Add vendor fields in JSON id-ctrl.
+  * nvme-cli: nvme.c: Allow plug-ins to access to output formats and helper.
+  * nvme-cli: Western Digital/HGST plug-in.
+  * nvme-cli: Western Digital/HGST plug-in documentation.
+  * : Correct NVMF enum values to match NVMe-oF rev 1.0
+  * fabrics: Handle space-padded TRSVCID and TRADDR fields
+  * nvme-cli: bug-fix: use right file name for perror.
+  * move show_intel_smart_log to intel-nvme.c
+  * remove json_add_smart_log
+  * remove nvme_intel_smart_log
+  * move struct nvme_additional_smart_log to intel-nvme.c
+  * nvme-cli/format: use existing LBAF if none requested
+  * nvme-cli: Release v1.2
+
+---

Old:

  nvme-cli-v1.1.tar.gz

New:

  _servicedata
  nvme-cli-v1.2.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.sWGBaX/_old  2017-04-26 21:43:30.477494194 +0200
+++ /var/tmp/diff_new_pack.sWGBaX/_new  2017-04-26 21:43:30.481493629 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:1.1
+Version:1.2
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0
@@ -26,7 +26,6 @@
 Source: %{name}-v%{version}.tar.gz
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-ExcludeArch:s390x
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme

++ _service ++
--- /var/tmp/diff_new_pack.sWGBaX/_old  2017-04-26 21:43:30.533486289 +0200
+++ /var/tmp/diff_new_pack.sWGBaX/_new  2017-04-26 21:43:30.533486289 +0200
@@ -3,9 +3,10 @@
 git
 https://github.com/linux-nvme/nvme-cli.git
 nvme-cli
-v1.1
-v1.1
+v1.2
+v1.2
 .git
+enable
   
   
 *.tar

++ _servicedata ++


https://github.com/linux-nvme/nvme-cli.git
  891899661cae31be232a8046bded2c1e928be8d7++
 nvme-cli-v1.1.tar.gz -> nvme-cli-v1.2.tar.gz ++
 11709 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2017-03-12 Thread root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2017-03-12 20:03:07

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Sun Mar 12 20:03:07 2017 rev:10 rq:477563 version:1.1

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-09-17 
14:40:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2017-03-12 
20:03:08.413056608 +0100
@@ -1,0 +2,9 @@
+Thu Mar  2 07:43:02 UTC 2017 - jthumsh...@suse.com
+
+-  Update to upstream release v1.1 (FATE#322735)
+   * This fixes multiple compiler warnings for 32-bit and other environments
+ from v1.0, adds more documentation to fabrics, removes the libudev
+ dependency entirely from this project, adds a framework for unit testing
+ devices, and fixes usage for user defined install paths
+
+---

Old:

  v0.9.tar.gz

New:

  nvme-cli-v1.1.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.g1uBCg/_old  2017-03-12 20:03:09.004972852 +0100
+++ /var/tmp/diff_new_pack.g1uBCg/_new  2017-03-12 20:03:09.008972286 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nvme-cli
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
 
 
 Name:   nvme-cli
-Version:0.9
+Version:1.1
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
-Source: 
https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
+Source: %{name}-v%{version}.tar.gz
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390x
@@ -33,7 +33,7 @@
 cli rpm installs core management tools with minimal dependencies.
 
 %prep
-%setup -q 
+%setup -q -n %{name}-v%{version}
 
 %build
 echo %{version} > version

++ _service ++
--- /var/tmp/diff_new_pack.g1uBCg/_old  2017-03-12 20:03:09.032968890 +0100
+++ /var/tmp/diff_new_pack.g1uBCg/_new  2017-03-12 20:03:09.036968324 +0100
@@ -2,15 +2,16 @@
   
 git
 https://github.com/linux-nvme/nvme-cli.git
-
-
-v0.8
-v0.8
+nvme-cli
+v1.1
+v1.1
+.git
   
-  
+  
+nvme-cli
+  
 




commit nvme-cli for openSUSE:Factory

2016-09-17 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-09-17 14:40:22

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-09-07 
11:44:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-09-17 
14:40:24.0 +0200
@@ -1,0 +2,9 @@
+Thu Sep 15 09:05:22 UTC 2016 - jthumsh...@suse.com
+
+- Update to upstream release v0.9
+  - Remove merged remove-version-from-list.patch
+  * New extensions, fabrics support, a bug fixes. The 'list' command
+is liberated from its udev dependency, and no longer requires
+CONFIG_IO_STRICT_DEVMEM be disabled.
+
+---

Old:

  remove-version-from-list.patch
  v0.8.tar.gz

New:

  v0.9.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.Ks5fi3/_old  2016-09-17 14:40:25.0 +0200
+++ /var/tmp/diff_new_pack.Ks5fi3/_new  2016-09-17 14:40:25.0 +0200
@@ -17,14 +17,13 @@
 
 
 Name:   nvme-cli
-Version:0.8
+Version:0.9
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
 Source: 
https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
-Patch0: remove-version-from-list.patch
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390x
@@ -35,7 +34,6 @@
 
 %prep
 %setup -q 
-%patch0 -p1
 
 %build
 echo %{version} > version

++ v0.8.tar.gz -> v0.9.tar.gz ++
 1955 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2016-09-07 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-09-07 11:44:40

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-08-25 
09:56:31.0 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-09-07 
11:44:42.0 +0200
@@ -1,0 +2,6 @@
+Wed Aug 31 11:31:15 UTC 2016 - jthumsh...@suse.com
+
+- Don't map controller registers in 'list' command (boo#986891)
+  + remove-version-from-list.patch
+
+---

New:

  remove-version-from-list.patch



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.K9gppu/_old  2016-09-07 11:44:43.0 +0200
+++ /var/tmp/diff_new_pack.K9gppu/_new  2016-09-07 11:44:43.0 +0200
@@ -24,6 +24,7 @@
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
 Source: 
https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
+Patch0: remove-version-from-list.patch
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390x
@@ -34,6 +35,7 @@
 
 %prep
 %setup -q 
+%patch0 -p1
 
 %build
 echo %{version} > version

++ remove-version-from-list.patch ++
>From 6ab2e9ef204053d82c1eb40e514119286749cefe Mon Sep 17 00:00:00 2001
From: Keith Busch 
Date: Tue, 30 Aug 2016 08:49:19 -0600
Subject: [PATCH] Remove version from list
Git-commit: 6ab2e9ef204053d82c1eb40e514119286749cefe
References: boo#986891

We can't reliably map controller registers due to kernel memory
protections added in kernel commit 90a545e98, so we are removing its
dependency for the 'list' command to run.

Signed-off-by: Keith Busch 
Acked-by: Johannes Thumshirn 
---
 nvme.c |   30 ++
 1 file changed, 6 insertions(+), 24 deletions(-)

--- a/nvme.c
+++ b/nvme.c
@@ -710,23 +710,9 @@ struct list_item {
int nsid;
struct nvme_id_ns   ns;
unsignedblock;
-   __le32  ver;
 };
 
 #ifdef LIBUDEV_EXISTS
-/* For pre NVMe 1.2 devices we must get the version from the BAR, not the
- * ctrl_id.*/
-static void get_version(struct list_item* list_item)
-{
-   struct nvme_bar *bar;
-
-   list_item->ver = list_item->ctrl.ver;
-   if (list_item->ctrl.ver)
-   return;
-   get_registers();
-   list_item->ver = bar->vs;
-}
-
 static void print_list_item(struct list_item list_item)
 {
 
@@ -748,25 +734,22 @@ static void print_list_item(struct list_
char format[128];
sprintf(format,"%3.0f %2sB + %2d B", (double)lba, l_suffix,
list_item.ns.lbaf[(list_item.ns.flbas & 0x0f)].ms);
-   char version[128];
-   sprintf(version,"%d.%d", (list_item.ver >> 16),
-   (list_item.ver >> 8) & 0xff);
 
-   printf("%-16s %-*.*s %-*.*s %-8s %-9d %-26s %-16s %-.*s\n", 
list_item.node,
+   printf("%-16s %-*.*s %-*.*s %-9d %-26s %-16s %-.*s\n", list_item.node,
 (int)sizeof(list_item.ctrl.sn), (int)sizeof(list_item.ctrl.sn), 
list_item.ctrl.sn,
 (int)sizeof(list_item.ctrl.mn), (int)sizeof(list_item.ctrl.mn), 
list_item.ctrl.mn,
-version, list_item.nsid, usage, format, 
(int)sizeof(list_item.ctrl.fr), list_item.ctrl.fr);
+list_item.nsid, usage, format, (int)sizeof(list_item.ctrl.fr), 
list_item.ctrl.fr);
 }
 
 static void print_list_items(struct list_item *list_items, unsigned len)
 {
unsigned i;
 
-   printf("%-16s %-20s %-40s %-8s %-9s %-26s %-16s %-8s\n",
-   "Node", "SN", "Model", "Version", "Namespace", "Usage", "Format", 
"FW Rev");
-   printf("%-16s %-20s %-40s %-8s %-9s %-26s %-16s %-8s\n",
+   printf("%-16s %-20s %-40s %-9s %-26s %-16s %-8s\n",
+   "Node", "SN", "Model", "Namespace", "Usage", "Format", "FW Rev");
+   printf("%-16s %-20s %-40s %-9s %-26s %-16s %-8s\n",
 "", "", 
"",
-"", "-", "--", 
"", "");
+"-", "--", "", 
"");
for (i = 0 ; i < len ; i++)
print_list_item(list_items[i]);
 
@@ -833,7 +816,6 @@ static int list(int argc, char **argv, s
return err;
strcpy(list_items[count].node, node);

commit nvme-cli for openSUSE:Factory

2016-08-25 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-08-25 09:56:29

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-06-07 
23:46:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-08-25 
09:56:31.0 +0200
@@ -1,0 +2,16 @@
+Tue Aug  9 12:19:35 UTC 2016 - jthumsh...@suse.com
+
+- Update to upstream release v0.8
+  - Remove merged patch 0001-bash-completion-Remove-shebang-line.patch  
+  * Code re-organized to support new extensions. While these are called
+"plugins", they currently have to be built into the executable. Support
+for dynamically loadable plugins is under consideration.
+  * LightNVM is added as a built-in plugin.
+  * Intel vendor specific commands and structure decodings are supported
+in a new intel plugin.
+  * Support for NVMe-over-Fabrics
+  * New output format "json" for a subset of commands that decode returned
+structures.
+  * Lots of various documentation and minor code fixes.
+
+---

Old:

  0001-bash-completion-Remove-shebang-line.patch
  v0.7.tar.gz

New:

  v0.8.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.T9piOQ/_old  2016-08-25 09:56:33.0 +0200
+++ /var/tmp/diff_new_pack.T9piOQ/_new  2016-08-25 09:56:33.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:0.7
+Version:0.8
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0
@@ -27,7 +27,6 @@
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390x
-Patch0: 0001-bash-completion-Remove-shebang-line.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -35,7 +34,6 @@
 
 %prep
 %setup -q 
-%patch0 -p1
 
 %build
 echo %{version} > version

++ _service ++
--- /var/tmp/diff_new_pack.T9piOQ/_old  2016-08-25 09:56:33.0 +0200
+++ /var/tmp/diff_new_pack.T9piOQ/_new  2016-08-25 09:56:33.0 +0200
@@ -4,8 +4,8 @@
 https://github.com/linux-nvme/nvme-cli.git
 
 
-v0.7
-v0.7
+v0.8
+v0.8
   
   

commit nvme-cli for openSUSE:Factory

2016-06-07 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-06-07 23:46:57

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-04-28 
16:56:55.0 +0200
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-06-07 
23:46:58.0 +0200
@@ -1,0 +2,13 @@
+Wed Jun  1 10:21:39 UTC 2016 - jthumsh...@suse.com
+
+- Update to upstream release v0.7
+  + 0001-bash-completion-Remove-shebang-line.patch
+  Keith writes:
+Just a few minor updates and documentation fixes. There is also a new
+option for passthrough commands that can be used to help detect data
+over/under run.
+
+Tagging a stable release so we can consider features that bring in other
+transports and third party extensions.
+
+---

Old:

  v0.5.tar.gz

New:

  0001-bash-completion-Remove-shebang-line.patch
  _service
  v0.7.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.zGC3Gk/_old  2016-06-07 23:46:59.0 +0200
+++ /var/tmp/diff_new_pack.zGC3Gk/_new  2016-06-07 23:46:59.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:0.5
+Version:0.7
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0
@@ -27,6 +27,7 @@
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390x
+Patch0: 0001-bash-completion-Remove-shebang-line.patch
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme
@@ -34,6 +35,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 echo %{version} > version

++ 0001-bash-completion-Remove-shebang-line.patch ++
>From 4bd132a2581ab3146b14b736a52359d2e72cca3f Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Wed, 1 Jun 2016 12:12:59 +0200
Subject: [PATCH] bash completion: Remove shebang line

Remove shebang line from bash completion file as rpmlint on openSUSE/SLE
complains about a script ment to be sourced not executed containing a shebang
line.

[   38s] nvme-cli.x86_64: W: sourced-script-with-shebang 
/etc/bash_completion.d/nvme /usr/bin/env
[   38s] This text file contains a shebang, but is meant to be sourced, not 
executed.

Signed-off-by: Johannes Thumshirn 
---
 completions/bash-nvme-completion.sh | 2 --
 1 file changed, 2 deletions(-)

diff --git a/completions/bash-nvme-completion.sh 
b/completions/bash-nvme-completion.sh
index 1a8613e..6770f34 100644
--- a/completions/bash-nvme-completion.sh
+++ b/completions/bash-nvme-completion.sh
@@ -1,5 +1,3 @@
-#!/usr/bin/env bash
-
 # bash tab completion for the nvme command line utility
 # (unfortunately, bash won't let me add descriptions to cmds)
 # Kelly Kaoudis kelly.n.kaoudis at intel.com, Aug. 2015
-- 
2.8.2

++ _service ++

  
git
https://github.com/linux-nvme/nvme-cli.git


v0.7
v0.7
  
  

++ v0.5.tar.gz -> v0.7.tar.gz ++
 2980 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2016-04-28 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-04-28 16:53:59

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-03-18 
21:43:05.0 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-04-28 
16:56:55.0 +0200
@@ -1,0 +2,5 @@
+Wed Apr 13 12:57:48 UTC 2016 - jthumsh...@suse.com
+
+- Exclude build on s390x (FATE#319560)
+
+---



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.dLyj5x/_old  2016-04-28 16:56:56.0 +0200
+++ /var/tmp/diff_new_pack.dLyj5x/_new  2016-04-28 16:56:56.0 +0200
@@ -26,6 +26,7 @@
 Source: 
https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
 BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+ExcludeArch:s390x
 
 %description
 NVMe is a fast, scalable, direct attached storage interface. The nvme




commit nvme-cli for openSUSE:Factory

2016-03-18 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-03-18 21:42:58

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-03-02 
14:21:45.0 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-03-18 
21:43:05.0 +0100
@@ -1,0 +2,7 @@
+Fri Mar 18 09:31:01 UTC 2016 - jthumsh...@suse.com
+
+- Update to upstream release v0.5
+The v0.4 breakage should all be resolved now. Tagging release
+v0.5, and back to stability.
+
+---

Old:

  v0.4.tar.gz

New:

  v0.5.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.NiUJkD/_old  2016-03-18 21:43:06.0 +0100
+++ /var/tmp/diff_new_pack.NiUJkD/_new  2016-03-18 21:43:06.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:0.4
+Version:0.5
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0

++ v0.4.tar.gz -> v0.5.tar.gz ++
 7993 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2016-03-02 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-03-02 14:21:40

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-02-22 
08:58:01.0 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-03-02 
14:21:45.0 +0100
@@ -1,0 +2,5 @@
+Wed Mar  2 09:08:35 UTC 2016 - jthumsh...@suse.com
+
+- Update to upstream release v0.4
+
+---

Old:

  v0.3.tar.gz

New:

  v0.4.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.yoQfWF/_old  2016-03-02 14:21:46.0 +0100
+++ /var/tmp/diff_new_pack.yoQfWF/_new  2016-03-02 14:21:46.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   nvme-cli
-Version:0.3
+Version:0.4
 Release:0
 Summary:Core nvme tools
 License:GPL-2.0

++ v0.3.tar.gz -> v0.4.tar.gz ++
 7398 lines of diff (skipped)




commit nvme-cli for openSUSE:Factory

2016-02-21 Thread h_root
Hello community,

here is the log from the commit of package nvme-cli for openSUSE:Factory 
checked in at 2016-02-22 08:57:54

Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old)
 and  /work/SRC/openSUSE:Factory/.nvme-cli.new (New)


Package is "nvme-cli"

Changes:

--- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes2016-02-16 
09:18:27.0 +0100
+++ /work/SRC/openSUSE:Factory/.nvme-cli.new/nvme-cli.changes   2016-02-22 
08:58:01.0 +0100
@@ -1,0 +2,5 @@
+Mon Feb 15 14:52:51 UTC 2016 - jthumsh...@suse.com
+
+- Fix display of version number (boo#966740)
+
+---

Old:

  nvme-cli-v0.3.tar.gz

New:

  v0.3.tar.gz



Other differences:
--
++ nvme-cli.spec ++
--- /var/tmp/diff_new_pack.qS1u0J/_old  2016-02-22 08:58:02.0 +0100
+++ /var/tmp/diff_new_pack.qS1u0J/_new  2016-02-22 08:58:02.0 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package nvme
+# spec file for package nvme-cli
 #
 # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
@@ -23,8 +23,8 @@
 License:GPL-2.0
 Group:  Hardware/Other
 Url:https://github.com/linux-nvme/nvme-cli
-Source: %{name}-v%{version}.tar.gz
-BuildRequires:  libudev-devel
+Source: 
https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
+BuildRequires:  pkgconfig(libudev)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -32,21 +32,22 @@
 cli rpm installs core management tools with minimal dependencies.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 %build
-make CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix} %{?_smp_mflags}
+echo %{version} > version
+make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags}
 
 %install
 make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man 
%{?_smp_mflags}
-install -m 644 -D completions/bash-nvme-completion.sh 
$RPM_BUILD_ROOT/etc/bash_completion.d/nvme
+install -m 644 -D completions/bash-nvme-completion.sh 
%{buildroot}%{_sysconfdir}/bash_completion.d/nvme
 
 %files
 %defattr(-,root,root)
 %doc README.md LICENSE
 %{_sbindir}/nvme
 %{_mandir}/man1/nvme*.1*
-%dir /etc/bash_completion.d/
-/etc/bash_completion.d/nvme
+%dir %{_sysconfdir}/bash_completion.d/
+%{_sysconfdir}/bash_completion.d/nvme
 
 %changelog