commit ndctl for openSUSE:Factory

2020-10-24 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-10-24 15:14:56

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.3463 (New)


Package is "ndctl"

Sat Oct 24 15:14:56 2020 rev:31 rq:843144 version:70.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2020-09-05 
23:59:06.423154829 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.3463/ndctl.changes2020-10-24 
15:14:58.812066174 +0200
@@ -1,0 +2,6 @@
+Wed Oct 21 07:27:20 UTC 2020 - Michal Suchanek 
+
+- Update to upstream v70.1 (jsc#SLE-13338).
+  Adds firmware activation support.
+
+---

Old:

  ndctl-69.tar.gz

New:

  ndctl-70.1.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.CFoOlR/_old  2020-10-24 15:14:59.296066778 +0200
+++ /var/tmp/diff_new_pack.CFoOlR/_new  2020-10-24 15:14:59.300066783 +0200
@@ -20,7 +20,7 @@
 %define lname libndctl6
 %define dname libndctl-devel
 Name:   ndctl
-Version:69
+Version:70.1
 Release:0
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0-only

++ ndctl-69.tar.gz -> ndctl-70.1.tar.gz ++
 3707 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2020-09-05 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-09-05 23:58:27

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.3399 (New)


Package is "ndctl"

Sat Sep  5 23:58:27 2020 rev:30 rq:831444 version:69

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2020-08-23 
09:19:05.510615719 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.3399/ndctl.changes2020-09-05 
23:59:06.423154829 +0200
@@ -1,0 +2,6 @@
+Fri Aug 28 08:27:10 UTC 2020 - Michal Suchanek 
+
+- Suppress ENXIO when processing all namespaces (jsc#SLE-13321, bsc#1175851, 
ltc#187867).
+  + ndctl-namespace-Suppress-ENXIO-when-processing-all-n.patch
+
+---
@@ -4 +10,2 @@
-- Update to v69 (jsc#SLE-13824, jsc#SLE-12770, jsc#SLE-15065):
+- Update to v69 (jsc#SLE-13824, jsc#SLE-12770, jsc#SLE-15065, jsc#SLE-15484,
+jsc#SLE-15485, bsc#1175052, ltc#186863, bsc#1174969, 
ltc#185845):

New:

  ndctl-namespace-Suppress-ENXIO-when-processing-all-n.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.JPtvLb/_old  2020-09-05 23:59:09.039156139 +0200
+++ /var/tmp/diff_new_pack.JPtvLb/_new  2020-09-05 23:59:09.039156139 +0200
@@ -28,6 +28,7 @@
 URL:https://github.com/pmem/ndctl
 Source0:
https://github.com/pmem/ndctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch9: %{name}-namespace-skip-zero-namespaces-when-processing.patch
+Patch13:%{name}-namespace-Suppress-ENXIO-when-processing-all-n.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  keyutils-devel

++ ndctl-namespace-Suppress-ENXIO-when-processing-all-n.patch ++
>From 6a678667c6279369dda999da8535e327df036705 Mon Sep 17 00:00:00 2001
From: Michal Suchanek 
Date: Thu, 23 Jul 2020 19:16:59 +0200
Subject: [PATCH] ndctl/namespace: Suppress -ENXIO when processing all
 namespaces.

Upstream: submitted https://patchwork.kernel.org/patch/11681431/

When processing all namespaces and no namespaces exist user gets the
default -ENXIO. Set default rc to 0 when processing all namespaces.
This avoids confusing error message printed in addition to the message
saying 0 namespaces were affected.

Before:

 # ndctl check-namespace all
namespace0.0: namespace_check: namespace0.0: check aborted, namespace online
error checking namespaces: Device or resource busy
checked 0 namespaces
 # ndctl disable-namespace all
disabled 1 namespace
 # ndctl check-namespace all
namespace0.0: namespace_check: Unable to recover any BTT info blocks
error checking namespaces: No such device or address
checked 0 namespaces
 # ndctl destroy-namespace all
destroyed 1 namespace
 # ndctl check-namespace all
error checking namespaces: No such device or address
checked 0 namespaces
 # ndctl destroy-namespace all
error destroying namespaces: No such device or address
destroyed 0 namespaces

After:

 # ndctl check-namespace all
namespace0.0: namespace_check: namespace0.0: check aborted, namespace online
error checking namespaces: Device or resource busy
checked 0 namespaces
 # ndctl disable-namespace namespace0.0
disabled 1 namespace
 # ndctl check-namespace all
namespace0.0: namespace_check: Unable to recover any BTT info blocks
error checking namespaces: No such device or address
checked 0 namespaces
 # ndctl destroy-namespace all
destroyed 1 namespace
 # ndctl check-namespace all
checked 0 namespaces
 # ndctl destroy-namespace all
destroyed 0 namespaces
 # ndctl destroy-namespace all
destroyed 0 namespaces

Note: this does change the return value from -ENXIO to 0 in the cases
when no namespaces exist and processing all namespaces was requested.

Signed-off-by: Michal Suchanek 
Reviewed-by: Santosh S 
---
v2: fix the error code references in the commit message
---
 ndctl/namespace.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ndctl/namespace.c b/ndctl/namespace.c
index 3fabe4799d75..835f4076008a 100644
--- a/ndctl/namespace.c
+++ b/ndctl/namespace.c
@@ -2112,6 +2112,9 @@ static int do_xaction_namespace(const char *namespace,
if (!namespace && action != ACTION_CREATE)
return rc;
 
+   if (namespace && (strcmp(namespace, "all") == 0))
+   rc = 0;
+
if (verbose)
ndctl_set_log_priority(ctx, LOG_DEBUG);
 
-- 
2.28.0

++ ndctl-namespace-skip-zero-namespaces-when-processing.patch ++
--- /var/tmp/diff_new_pack.JPtvLb/_old  2020-09-05 23:59:09.087156162 +0200
+++ /var/tmp/diff_new_pack.JPtvLb/_new  2020-09-05 23:59:09.091156165 +0200
@@ -4,6 +4,8 @@
 Subject: [PATCH] ndctl/namespace: skip zero namespaces when processing all
  

commit ndctl for openSUSE:Factory

2020-08-23 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-08-23 09:19:02

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.3399 (New)


Package is "ndctl"

Sun Aug 23 09:19:02 2020 rev:29 rq:827551 version:69

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2020-05-20 
18:36:16.772081981 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.3399/ndctl.changes2020-08-23 
09:19:05.510615719 +0200
@@ -1,0 +2,18 @@
+Mon Aug 10 09:25:52 UTC 2020 - Michal Suchanek 
+
+- Update to v69 (jsc#SLE-13824, jsc#SLE-12770, jsc#SLE-15065):
+  * infoblock: Set the default alignment to the platform alignment
+  * libndctl/papr_scm: Add support for reporting "life_used_percentage" metric
+  * Skip region filtering if numa_node attribute is not present
+  * libndctl,papr_scm: Implement support for PAPR_PDSM_HEALTH
+  * miscellaneous bugfixes
+
+- Removed ndctl-Documentation-use-includes-in-more-ndctl-command-pag.patch
+
+---
+Tue Jul 14 08:24:42 UTC 2020 - Michal Suchanek 
+
+- Clarify documentation about filtering options (bsc#1173861)
+  + ndctl-Documentation-use-includes-in-more-ndctl-command-pag.patch
+
+---

Old:

  ndctl-68.tar.gz

New:

  ndctl-69.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.1F24kP/_old  2020-08-23 09:19:06.170616085 +0200
+++ /var/tmp/diff_new_pack.1F24kP/_new  2020-08-23 09:19:06.174616086 +0200
@@ -20,14 +20,13 @@
 %define lname libndctl6
 %define dname libndctl-devel
 Name:   ndctl
-Version:68
+Version:69
 Release:0
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0-only
 Group:  Hardware/Other
 URL:https://github.com/pmem/ndctl
-# Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
-Source0:%{name}-%{version}.tar.gz
+Source0:
https://github.com/pmem/ndctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch9: %{name}-namespace-skip-zero-namespaces-when-processing.patch
 BuildRequires:  autoconf
 BuildRequires:  automake

++ ndctl-68.tar.gz -> ndctl-69.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-68/.gitignore new/ndctl-69/.gitignore
--- old/ndctl-68/.gitignore 1970-01-01 01:00:00.0 +0100
+++ new/ndctl-69/.gitignore 2020-07-23 07:15:11.0 +0200
@@ -0,0 +1,61 @@
+*.o
+*.xml
+.deps/
+.libs/
+Makefile
+!contrib/Makefile
+Makefile.in
+/aclocal.m4
+/autom4te.cache
+/build-aux
+/config.*
+/configure
+/libtool
+/stamp-h1
+*.1
+Documentation/daxctl/asciidoc.conf
+Documentation/ndctl/asciidoc.conf
+Documentation/daxctl/asciidoctor-extensions.rb
+Documentation/ndctl/asciidoctor-extensions.rb
+.dirstamp
+daxctl/config.h
+daxctl/daxctl
+daxctl/lib/libdaxctl.la
+daxctl/lib/libdaxctl.lo
+daxctl/lib/libdaxctl.pc
+*.a
+ndctl/config.h
+ndctl/lib/libndctl.pc
+ndctl/ndctl
+rhel/
+sles/ndctl.spec
+util/log.lo
+util/sysfs.lo
+version.m4
+*.swp
+cscope.files
+cscope*.out
+tags
+test/*.log
+test/*.trs
+test/blk-ns
+test/dax-dev
+test/dax-errors
+test/dax-pmd
+test/daxdev-errors
+test/device-dax
+test/dpa-alloc
+test/dsm-fail
+test/hugetlb
+test/image
+test/libndctl
+test/mmap
+test/multi-pmem
+test/parent-uuid
+test/pmem-ns
+test/smart-listen
+test/smart-notify
+test/fio.job
+test/local-write-0-verify.state
+test/ack-shutdown-count-set
+test/list-smart-dimm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-68/Documentation/daxctl/movable-options.txt 
new/ndctl-69/Documentation/daxctl/movable-options.txt
--- old/ndctl-68/Documentation/daxctl/movable-options.txt   2020-03-24 
05:54:05.0 +0100
+++ new/ndctl-69/Documentation/daxctl/movable-options.txt   2020-07-23 
07:15:11.0 +0200
@@ -2,7 +2,7 @@
 
 --no-movable::
'--movable' is the default. This can be overridden to online new
-   memory such that is is not 'movable'. This allows any allocation
+   memory such that it is not 'movable'. This allows any allocation
to potentially be served from this memory. This may preclude subsequent
removal. With the '--movable' behavior (which is default), kernel
allocations will not consider this memory, and it will be reserved
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-68/Documentation/ndctl/labels-options.txt 
new/ndctl-69/Documentation/ndctl/labels-options.txt
--- 

commit ndctl for openSUSE:Factory

2020-05-20 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-05-20 18:36:09

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.2738 (New)


Package is "ndctl"

Wed May 20 18:36:09 2020 rev:28 rq:806815 version:68

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2020-04-09 
23:14:17.294204039 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.2738/ndctl.changes2020-05-20 
18:36:16.772081981 +0200
@@ -1,0 +2,30 @@
+Fri May 15 12:21:34 UTC 2020 - Paolo Stivanin 
+
+- Update to v68:
+  * zero-labels: display an error if regions are active
+  * destroy-namespace: fix seed namespace accounting
+  * list: drop named list objects from verbose listing
+  * *-namespace: emit better errors on failure
+  * read-infoblock: new command to read an infoblock
+  * write-infoblock: new command to create and write an infoblock
+  * create-namespace: add --continue option
+  * daxctl-reconfigure-device: add --no-movable option
+  * daxctl-reconfigure-device: display movable state in listings
+  * daxctl-reconfigure-device: detect races in memory onlining
+  * security: support for 'security frozen' attribute
+  * daxctl-reconfigure-device: new command for device mode management
+  * daxctl-{on,off}line-memory: new commands for devices in system-ram mode
+  * monitor: logging improvements, allow sending to background
+  * inject-error: refuse to operate on activew BTT namespaces
+  * *-labels: improvements to minimize data transfer
+  * create-namespace: usability improvements around region search
+- Removed 
ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
+- Removed ndctl-dimm-Fix-init-labels-success-reporting.patch
+- Removed ndctl-list-Introduce-region-capability-objects.patch
+- Removed ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch
+- Removed ndctl-namespace-Handle-create-namespace-in-label-less-mode.patch
+- Removed ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
+- Removed ndctl-test-Relax-dax_pmem_compat-requirement.patch
+- Removed 
ndctl_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch
+
+---

Old:

  ndctl-64.1.tar.gz
  ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
  ndctl-dimm-Fix-init-labels-success-reporting.patch
  ndctl-list-Introduce-region-capability-objects.patch
  ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch
  ndctl-namespace-Handle-create-namespace-in-label-less-mode.patch
  ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
  ndctl-test-Relax-dax_pmem_compat-requirement.patch
  ndctl_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch

New:

  ndctl-68.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.GESMcg/_old  2020-05-20 18:36:17.292083071 +0200
+++ /var/tmp/diff_new_pack.GESMcg/_new  2020-05-20 18:36:17.296083079 +0200
@@ -20,7 +20,7 @@
 %define lname libndctl6
 %define dname libndctl-devel
 Name:   ndctl
-Version:64.1
+Version:68
 Release:0
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0-only
@@ -28,14 +28,6 @@
 URL:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
-Patch1: 
%{name}_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch
-Patch2: %{name}-list-Introduce-region-capability-objects.patch
-Patch3: 
%{name}-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
-Patch4: %{name}-ndctl-lib-Fix-duplicate-bus-detection.patch
-Patch5: 
%{name}-namespace-Handle-create-namespace-in-label-less-mode.patch
-Patch6: %{name}-dimm-Fix-init-labels-success-reporting.patch
-Patch7: %{name}-namespace-Fix-enable-namespace-error-for-seed-.patch
-Patch8: %{name}-test-Relax-dax_pmem_compat-requirement.patch
 Patch9: %{name}-namespace-skip-zero-namespaces-when-processing.patch
 BuildRequires:  autoconf
 BuildRequires:  automake

++ _service ++
--- /var/tmp/diff_new_pack.GESMcg/_old  2020-05-20 18:36:17.320083130 +0200
+++ /var/tmp/diff_new_pack.GESMcg/_new  2020-05-20 18:36:17.320083130 +0200
@@ -3,8 +3,8 @@
 git
 https://github.com/pmem/ndctl.git
 ndctl
-64.1
-v64.1
+68
+v68
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.GESMcg/_old  2020-05-20 18:36:17.336083163 +0200
+++ /var/tmp/diff_new_pack.GESMcg/_new  2020-05-20 18:36:17.336083163 +0200
@@ -1,4 +1,4 @@
 
 
 

commit ndctl for openSUSE:Factory

2020-04-09 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-04-09 23:14:14

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.3248 (New)


Package is "ndctl"

Thu Apr  9 23:14:14 2020 rev:27 rq:791787 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2020-03-06 
21:24:24.529453118 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.3248/ndctl.changes2020-04-09 
23:14:17.294204039 +0200
@@ -1,0 +2,9 @@
+Fri Apr  3 17:48:20 UTC 2020 - Michal Suchanek 
+
+- ndctl/namespace: Skip zero namespaces when processing all namespaces
+  (bsc#1167861, bsc#1165509, ltc#182068).
+  + ndctl-namespace-skip-zero-namespaces-when-processing.patch
+- Refresh patch to upstream version:
+   ndctl-test-Relax-dax_pmem_compat-requirement.patch
+
+---

New:

  ndctl-namespace-skip-zero-namespaces-when-processing.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.3VTDXy/_old  2020-04-09 23:14:17.810204337 +0200
+++ /var/tmp/diff_new_pack.3VTDXy/_new  2020-04-09 23:14:17.814204339 +0200
@@ -36,6 +36,7 @@
 Patch6: %{name}-dimm-Fix-init-labels-success-reporting.patch
 Patch7: %{name}-namespace-Fix-enable-namespace-error-for-seed-.patch
 Patch8: %{name}-test-Relax-dax_pmem_compat-requirement.patch
+Patch9: %{name}-namespace-skip-zero-namespaces-when-processing.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  keyutils-devel

++ ndctl-namespace-skip-zero-namespaces-when-processing.patch ++
>From ff4e8668a5edd2eaa38f08deb9b357778019e2ea Mon Sep 17 00:00:00 2001
From: Michal Suchanek 
Date: Fri, 3 Apr 2020 19:38:33 +0200
Subject: [PATCH] ndctl/namespace: skip zero namespaces when processing all
 namespaces.

The kernel always creates zero length namespace with uuid 0 in each
region.

When processing all namespaces the user gets confusing errors from ndctl
trying to process this namespace. Skip it.

The user can still specify the namespace by name directly in case
processing it is desirable.

Fixes: #41

Signed-off-by: Michal Suchanek 
---
 ndctl/namespace.c | 16 +---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/ndctl/namespace.c b/ndctl/namespace.c
index 0550580707e8..6f4a4b5b8883 100644
--- a/ndctl/namespace.c
+++ b/ndctl/namespace.c
@@ -2128,9 +2128,19 @@ static int do_xaction_namespace(const char *namespace,
ndctl_namespace_foreach_safe(region, ndns, _n) {
ndns_name = ndctl_namespace_get_devname(ndns);
 
-   if (strcmp(namespace, "all") != 0
-   && strcmp(namespace, ndns_name) 
!= 0)
-   continue;
+   if (strcmp(namespace, "all") == 0) {
+   static const uuid_t zero_uuid;
+   uuid_t uuid;
+
+   ndctl_namespace_get_uuid(ndns, uuid);
+   if (!ndctl_namespace_get_size(ndns) &&
+   !memcmp(uuid, zero_uuid, 
sizeof(uuid_t)))
+   continue;
+   } else {
+   if (strcmp(namespace, ndns_name) != 0)
+   continue;
+   }
+
switch (action) {
case ACTION_DISABLE:
rc = ndctl_namespace_disable_safe(ndns);
-- 
2.23.0

++ ndctl-test-Relax-dax_pmem_compat-requirement.patch ++
--- /var/tmp/diff_new_pack.3VTDXy/_old  2020-04-09 23:14:17.866204369 +0200
+++ /var/tmp/diff_new_pack.3VTDXy/_new  2020-04-09 23:14:17.866204369 +0200
@@ -1,15 +1,26 @@
-From 9ba17d4af1db5a6f97e2be991f5113bcedfd019f Mon Sep 17 00:00:00 2001
-From: Jan Kara 
-Date: Tue, 3 Mar 2020 14:42:06 +0100
+From d30418d29bc7b171d6612df7e2bb9f914e954d41 Mon Sep 17 00:00:00 2001
+From: Dan Williams 
+Date: Tue, 3 Mar 2020 14:58:35 -0800
 Subject: [PATCH] ndctl/test: Relax dax_pmem_compat requirement
 
-References: bsc#1159523
+Patch-mainline: v68
+Git-commit: b7991dbc22f31d03a38f3ee2dca4446fb55279e3
+
+While there are some tests that require the new "dax-bus" device model,
+none of the tests require compatibility mode. Drop the requirement so
+the tests work with DEV_DAX_PMEM_COMPAT=n kernels.
+
+Reviewed-by: Jan Kara 
+Cc: Jan Kara 
+Link: 

commit ndctl for openSUSE:Factory

2020-03-06 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2020-03-06 21:24:14

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.26092 (New)


Package is "ndctl"

Fri Mar  6 21:24:14 2020 rev:26 rq:781277 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-11-15 
22:32:28.604068052 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.26092/ndctl.changes   2020-03-06 
21:24:24.529453118 +0100
@@ -1,0 +2,10 @@
+Tue Mar  3 13:43:42 UTC 2020 - Michal Suchanek 
+
+- ndctl/test: Relax dax_pmem_compat requirement (bsc#1159523)
+  + ndctl-test-Relax-dax_pmem_compat-requirement.patch
+- Add -fcommon flag on Tumbleweed (boo#1160286).
+- Fix 'ndctl enable-namespace all' fails trying to enable idle namespaces
+  (bsc#1165509 ltc#182068).
+  + ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch
+
+---

New:

  ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch
  ndctl-test-Relax-dax_pmem_compat-requirement.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.9cYpJo/_old  2020-03-06 21:24:25.569453693 +0100
+++ /var/tmp/diff_new_pack.9cYpJo/_new  2020-03-06 21:24:25.569453693 +0100
@@ -34,6 +34,8 @@
 Patch4: %{name}-ndctl-lib-Fix-duplicate-bus-detection.patch
 Patch5: 
%{name}-namespace-Handle-create-namespace-in-label-less-mode.patch
 Patch6: %{name}-dimm-Fix-init-labels-success-reporting.patch
+Patch7: %{name}-namespace-Fix-enable-namespace-error-for-seed-.patch
+Patch8: %{name}-test-Relax-dax_pmem_compat-requirement.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  keyutils-devel
@@ -95,6 +97,9 @@
 %autopatch -p1
 
 %build
+%if 0%{?suse_version} > 1500
+export CFLAGS="%optflags -fcommon"
+%endif
 echo "%{version}" > version
 ./autogen.sh
 CONF_FLAGS="--disable-static"
@@ -105,6 +110,9 @@
 make %{?_smp_mflags}
 
 %install
+%if 0%{?suse_version} > 1500
+export CFLAGS="%optflags -fcommon"
+%endif
 %make_install
 find %{buildroot} -type f -name "*.la" -delete -print
 mkdir -p %{buildroot}%{_sbindir}

++ ndctl-namespace-Fix-enable-namespace-error-for-seed-.patch ++
>From b9cb03f6d5a8654bf53e6538b60d4b63beb761d4 Mon Sep 17 00:00:00 2001
From: Santosh Sivaraj 
Date: Mon, 13 Jan 2020 09:54:53 +0530
Subject: [PATCH] ndctl/namespace: Fix enable-namespace error for seed
 namespaces

Git-commit: b9cb03f6d5a8654bf53e6538b60d4b63beb761d4
Patch-mainline: pending - v68

'ndctl enable-namespace all' tries to enable seed namespaces too, which results
in a error like

libndctl: ndctl_namespace_enable: namespace1.0: failed to enable

Signed-off-by: Santosh Sivaraj 
Signed-off-by: Dan Williams 
---
 ndctl/lib/libndctl.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c
index d6a28002e7d6..2d23dbb3caf7 100644
--- a/ndctl/lib/libndctl.c
+++ b/ndctl/lib/libndctl.c
@@ -4010,11 +4010,16 @@ NDCTL_EXPORT int ndctl_namespace_enable(struct 
ndctl_namespace *ndns)
const char *devname = ndctl_namespace_get_devname(ndns);
struct ndctl_ctx *ctx = ndctl_namespace_get_ctx(ndns);
struct ndctl_region *region = ndns->region;
+   unsigned long long size = ndctl_namespace_get_size(ndns);
int rc;
 
if (ndctl_namespace_is_enabled(ndns))
return 0;
 
+   /* Don't try to enable idle namespace (no capacity allocated) */
+   if (size == 0)
+   return -ENXIO;
+
rc = ndctl_bind(ctx, ndns->module, devname);
 
/*
-- 
2.23.0

++ ndctl-test-Relax-dax_pmem_compat-requirement.patch ++
>From 9ba17d4af1db5a6f97e2be991f5113bcedfd019f Mon Sep 17 00:00:00 2001
From: Jan Kara 
Date: Tue, 3 Mar 2020 14:42:06 +0100
Subject: [PATCH] ndctl/test: Relax dax_pmem_compat requirement

References: bsc#1159523
---
 test/core.c | 8 
 1 file changed, 8 insertions(+)

diff --git a/test/core.c b/test/core.c
index 4b36b2d14d7b..3aed14241846 100644
--- a/test/core.c
+++ b/test/core.c
@@ -168,6 +168,14 @@ int nfit_test_init(struct kmod_ctx **ctx, struct 
kmod_module **mod,
continue;
 retry:
rc = kmod_module_new_from_name(*ctx, name, mod);
+
+   /*
+* dax_pmem_compat is not required, missing is ok,
+* present-but-production is not ok.
+*/
+   if (rc && strstr(name, "dax_pmem_compat"))
+   continue;
+
if (rc) {
log_err(_ctx, "%s.ko: missing\n", name);
break;
-- 
2.23.0




commit ndctl for openSUSE:Factory

2019-11-15 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-11-15 22:32:27

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.26869 (New)


Package is "ndctl"

Fri Nov 15 22:32:27 2019 rev:25 rq:747514 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-10-25 
18:40:30.683805096 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.26869/ndctl.changes   2019-11-15 
22:32:28.604068052 +0100
@@ -1,0 +2,9 @@
+Fri Nov  8 14:42:49 UTC 2019 - Michal Suchanek 
+
+- ndctl/dimm: Fix init-labels success reporting (bsc#1156308 ltc#181441).
+  + ndctl-dimm-Fix-init-labels-success-reporting.patch
+- Refresh patches with upstream status:
+   ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
+   ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
+
+---

New:

  ndctl-dimm-Fix-init-labels-success-reporting.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.vNMZ90/_old  2019-11-15 22:32:29.412067698 +0100
+++ /var/tmp/diff_new_pack.vNMZ90/_new  2019-11-15 22:32:29.416067696 +0100
@@ -33,6 +33,7 @@
 Patch3: 
%{name}-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
 Patch4: %{name}-ndctl-lib-Fix-duplicate-bus-detection.patch
 Patch5: 
%{name}-namespace-Handle-create-namespace-in-label-less-mode.patch
+Patch6: %{name}-dimm-Fix-init-labels-success-reporting.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  keyutils-devel

++ 
ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch ++
--- /var/tmp/diff_new_pack.vNMZ90/_old  2019-11-15 22:32:29.448067682 +0100
+++ /var/tmp/diff_new_pack.vNMZ90/_new  2019-11-15 22:32:29.448067682 +0100
@@ -4,7 +4,7 @@
 Subject: [PATCH] ndctl: Reuse the align value from the original namespace on
  reconfiguration
 
-Patch-mainline: expected v67
+Patch-mainline: v67
 Git-commit: e81ccd7f062beeae7498d04785fe55c55c857d4b
 
 When using reconfigure command to add a 'name' to the namespace we end

++ ndctl-dimm-Fix-init-labels-success-reporting.patch ++
>From 4f7cad25e06483ae20b9bebabefb05fb1e55a2a7 Mon Sep 17 00:00:00 2001
From: Dan Williams 
Date: Sat, 27 Jul 2019 14:40:42 -0700
Subject: [PATCH] ndctl/dimm: Fix init-labels success reporting

Patch-mainline: v66
Git-commit: 4f7cad25e06483ae20b9bebabefb05fb1e55a2a7

When a DIMM is disabled due to a label parsing issue "ndctl init-labels"
mis-reports the status of the init-labels command:

# ndctl init-labels all -f
initialized 1 nmem
[root@dwillia2-dev ndctl]# ndctl list -Di
[
  {
"dev":"nmem1",
"id":"8680-57341200",
"handle":2,
"phys_id":0,
"state":"disabled"
  },
  {
"dev":"nmem0",
"id":"8680-56341200",
"handle":1,
"phys_id":0
  }
]
# ndctl init-labels nmem1 -f
initialized 1020 nmems

Catch any positive return from action_init() as success:

# ndctl init-labels all -f
initialized 2 nmems
# ndctl init-labels nmem1 -f
initialized 1 nmem

Link: https://github.com/pmem/ndctl/issues/60
Reported-by: Jane Chu 
Reported-by: Steve Scargal 
Signed-off-by: Dan Williams 
Signed-off-by: Vishal Verma 
---
 ndctl/dimm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ndctl/dimm.c b/ndctl/dimm.c
index 5f05a75f00eb..db91f42421e4 100644
--- a/ndctl/dimm.c
+++ b/ndctl/dimm.c
@@ -1027,7 +1027,7 @@ static int __action_init(struct ndctl_dimm *dimm,
 
  out:
ndctl_cmd_unref(cmd_read);
-   return rc;
+   return rc >= 0 ? 0 : rc;
 }
 
 static int action_init(struct ndctl_dimm *dimm, struct action_context *actx)
-- 
2.23.0

++ ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch ++
--- /var/tmp/diff_new_pack.vNMZ90/_old  2019-11-15 22:32:29.460067677 +0100
+++ /var/tmp/diff_new_pack.vNMZ90/_new  2019-11-15 22:32:29.464067675 +0100
@@ -3,7 +3,7 @@
 Date: Wed, 7 Aug 2019 10:51:39 -0700
 Subject: [PATCH] ndctl/lib: Fix duplicate bus detection
 
-Patch-mainline: expected v67
+Patch-mainline: v67
 Git-commit: d961a474be65c8195bb069c470b01f951bd2eb90
 
 After an ndctl_invalidate() event the next add_bus() invocation attempts




commit ndctl for openSUSE:Factory

2019-10-25 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-10-25 18:40:27

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.2990 (New)


Package is "ndctl"

Fri Oct 25 18:40:27 2019 rev:24 rq:741996 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-08-27 
15:23:38.336772840 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.2990/ndctl.changes2019-10-25 
18:40:30.683805096 +0200
@@ -1,0 +2,7 @@
+Fri Oct 18 13:14:35 UTC 2019 - Michal Suchanek 
+
+- Refresh patches with upstream status:
+   ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
+   ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
+
+---



Other differences:
--
++ 
ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch ++
--- /var/tmp/diff_new_pack.rgjdBe/_old  2019-10-25 18:40:31.331805712 +0200
+++ /var/tmp/diff_new_pack.rgjdBe/_new  2019-10-25 18:40:31.331805712 +0200
@@ -1,40 +1,40 @@
-From patchwork Wed Aug  7 04:44:16 2019
-X-Patchwork-Submitter: "Aneesh Kumar K.V" 
-X-Patchwork-Id: 11080973
+From e81ccd7f062beeae7498d04785fe55c55c857d4b Mon Sep 17 00:00:00 2001
 From: "Aneesh Kumar K.V" 
-To: dan.j.willi...@intel.com
-Subject: [PATCH] ndctl: Use the same align value as original namespace on
- reconfigure
-Date: Wed,  7 Aug 2019 10:14:16 +0530
-Message-Id: <20190807044416.30799-1-aneesh.ku...@linux.ibm.com>
+Date: Wed, 7 Aug 2019 10:14:16 +0530
+Subject: [PATCH] ndctl: Reuse the align value from the original namespace on
+ reconfiguration
 
-When using reconfigure command to add a `name` to the namespace we end
+Patch-mainline: expected v67
+Git-commit: e81ccd7f062beeae7498d04785fe55c55c857d4b
+
+When using reconfigure command to add a 'name' to the namespace we end
 up updating the align attribute. Avoid this by using the value from
 the original namespace. Do this only if we are keeping the namespace mode
 same.
 
 Signed-off-by: Aneesh Kumar K.V 
+Signed-off-by: Vishal Verma 
 ---
  ndctl/namespace.c | 16 
  1 file changed, 16 insertions(+)
 
 diff --git a/ndctl/namespace.c b/ndctl/namespace.c
-index 1f212a2b3a9b..24e51bb35ae1 100644
+index 67768f34365c..7fb00078646b 100644
 --- a/ndctl/namespace.c
 +++ b/ndctl/namespace.c
-@@ -596,6 +596,22 @@ static int validate_namespace_options(struct ndctl_region 
*region,
+@@ -598,6 +598,22 @@ static int validate_namespace_options(struct ndctl_region 
*region,
return -ENXIO;
}
} else {
-+
 +  /*
-+   * If we are tryint to reconfigure with the same namespace mode
-+   * Use the align details from the origin namespace. Otherwise
++   * If we are trying to reconfigure with the same namespace mode,
++   * use the align details from the original namespace. Otherwise
 +   * pick the align details from seed namespace
 +   */
 +  if (ndns && p->mode == ndctl_namespace_get_mode(ndns)) {
 +  struct ndctl_pfn *ns_pfn = 
ndctl_namespace_get_pfn(ndns);
 +  struct ndctl_dax *ns_dax = 
ndctl_namespace_get_dax(ndns);
++
 +  if (ns_pfn)
 +  p->align = ndctl_pfn_get_align(ns_pfn);
 +  else if (ns_dax)
@@ -45,3 +45,6 @@
/*
 * Use the seed namespace alignment as the default if we need
 * one. If we don't then use PAGE_SIZE so the size_align
+-- 
+2.23.0
+

++ ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch ++
--- /var/tmp/diff_new_pack.rgjdBe/_old  2019-10-25 18:40:31.351805731 +0200
+++ /var/tmp/diff_new_pack.rgjdBe/_new  2019-10-25 18:40:31.351805731 +0200
@@ -1,10 +1,10 @@
-From patchwork Wed Aug  7 17:51:39 2019
-X-Patchwork-Submitter: Dan Williams 
-X-Patchwork-Id: 11082723
-Subject: [ndctl PATCH] ndctl/lib: Fix duplicate bus detection
+From d961a474be65c8195bb069c470b01f951bd2eb90 Mon Sep 17 00:00:00 2001
 From: Dan Williams 
-Date: Wed, 07 Aug 2019 10:51:39 -0700
-Message-ID: 
<156520029994.1268132.13388510714364773911.st...@dwillia2-desk3.amr.corp.intel.com>
+Date: Wed, 7 Aug 2019 10:51:39 -0700
+Subject: [PATCH] ndctl/lib: Fix duplicate bus detection
+
+Patch-mainline: expected v67
+Git-commit: d961a474be65c8195bb069c470b01f951bd2eb90
 
 After an ndctl_invalidate() event the next add_bus() invocation attempts
 to rescan for new bus objects and drop duplicate instances that match
@@ -17,8 +17,9 @@
 Reported-by: Aneesh Kumar K.V 
 Tested-by: Aneesh Kumar K.V 
 Signed-off-by: Dan Williams 
+Signed-off-by: Vishal 

commit ndctl for openSUSE:Factory

2019-08-27 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-08-27 15:23:35

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.7948 (New)


Package is "ndctl"

Tue Aug 27 15:23:35 2019 rev:23 rq:725562 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-06-06 
18:19:25.848648982 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new.7948/ndctl.changes2019-08-27 
15:23:38.336772840 +0200
@@ -1,0 +2,34 @@
+Wed Aug 21 18:15:16 UTC 2019 - Michal Suchanek 
+
+- Refresh patches with upstream status:
+   ndctl_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch
+   ndctl-namespace-Handle-create-namespace-in-label-less-mode.patch
+   ndctl-list-Introduce-region-capability-objects.patch
+
+---
+Mon Aug 19 13:19:55 UTC 2019 - Michal Suchanek 
+
+- ndctl/namespace: Handle 'create-namespace' in label-less mode (bsc#1145471 
ltc#179886).
+  + ndctl-namespace-Handle-create-namespace-in-label-less-mode.patch
+
+---
+Mon Aug 19 11:27:59 UTC 2019 - Michal Suchanek 
+
+- ndctl: Use the same align value as original namespace on reconfigure 
(bsc#1145577 ltc#178224).
+  + ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
+- ndctl/lib: Fix duplicate bus detection (bsc#1145573 ltc#180249).
+  + ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
+
+---
+Fri Aug 16 14:31:46 UTC 2019 - Michal Suchanek 
+
+- ndctl/list: Introduce region capability objects (bsc#1145772 ltc#178159).
+  + ndctl-list-Introduce-region-capability-objects.patch
+
+---
+Tue Aug 13 12:56:24 UTC 2019 - Michal Suchanek 
+
+- ndctl, check: Ensure mmap of BTT sections work with 64K page-sizes 
(bsc#1145421 ltc#176079).
+  + ndctl_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch
+
+---

New:

  ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
  ndctl-list-Introduce-region-capability-objects.patch
  ndctl-namespace-Handle-create-namespace-in-label-less-mode.patch
  ndctl-ndctl-lib-Fix-duplicate-bus-detection.patch
  ndctl_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.FZBfUE/_old  2019-08-27 15:23:39.260772375 +0200
+++ /var/tmp/diff_new_pack.FZBfUE/_new  2019-08-27 15:23:39.264772373 +0200
@@ -28,6 +28,11 @@
 URL:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
+Patch1: 
%{name}_check_Ensure_mmap_of_BTT_sections_work_with_64K_page-sizes.patch
+Patch2: %{name}-list-Introduce-region-capability-objects.patch
+Patch3: 
%{name}-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch
+Patch4: %{name}-ndctl-lib-Fix-duplicate-bus-detection.patch
+Patch5: 
%{name}-namespace-Handle-create-namespace-in-label-less-mode.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  keyutils-devel
@@ -86,6 +91,7 @@
 
 %prep
 %setup -q
+%autopatch -p1
 
 %build
 echo "%{version}" > version

++ 
ndctl-Use-the-same-align-value-as-original-namespace-on-reconfigure.patch ++
>From patchwork Wed Aug  7 04:44:16 2019
X-Patchwork-Submitter: "Aneesh Kumar K.V" 
X-Patchwork-Id: 11080973
From: "Aneesh Kumar K.V" 
To: dan.j.willi...@intel.com
Subject: [PATCH] ndctl: Use the same align value as original namespace on
 reconfigure
Date: Wed,  7 Aug 2019 10:14:16 +0530
Message-Id: <20190807044416.30799-1-aneesh.ku...@linux.ibm.com>

When using reconfigure command to add a `name` to the namespace we end
up updating the align attribute. Avoid this by using the value from
the original namespace. Do this only if we are keeping the namespace mode
same.

Signed-off-by: Aneesh Kumar K.V 
---
 ndctl/namespace.c | 16 
 1 file changed, 16 insertions(+)

diff --git a/ndctl/namespace.c b/ndctl/namespace.c
index 1f212a2b3a9b..24e51bb35ae1 100644
--- a/ndctl/namespace.c
+++ b/ndctl/namespace.c
@@ -596,6 +596,22 @@ static int validate_namespace_options(struct ndctl_region 
*region,
return -ENXIO;
}
} else {
+
+   /*
+* If we are tryint to reconfigure with the same namespace mode
+* Use the align details from the origin namespace. Otherwise
+* pick the align 

commit ndctl for openSUSE:Factory

2019-06-06 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-06-06 18:19:13

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.4811 (New)


Package is "ndctl"

Thu Jun  6 18:19:13 2019 rev:22 rq:708106 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-03-08 
13:29:48.806979001 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.4811/ndctl.changes2019-06-06 
18:19:25.848648982 +0200
@@ -117,0 +118,5 @@
+Thu Oct  4 08:03:03 UTC 2018 - jthumsh...@suse.com
+
+- Revert to version 61.2 (bsc#1110425)
+
+---



Other differences:
--



commit ndctl for openSUSE:Factory

2019-03-08 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-03-08 13:29:46

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.28833 (New)


Package is "ndctl"

Fri Mar  8 13:29:46 2019 rev:21 rq:681656 version:64.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-02-08 
13:45:57.742824736 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.28833/ndctl.changes   2019-03-08 
13:29:48.806979001 +0100
@@ -1,0 +2,8 @@
+Tue Mar 05 09:15:45 UTC 2019 - jthumsh...@suse.de 
+
+- Update to version 64.1 (bsc#1127799):
+  * ndctl: release v64.1
+  * ndctl: fix ndctl linking with libkeyutils
+  * ndctl: Fix building in the absence of keyutils
+
+---

Old:

  ndctl-64.tar.gz

New:

  ndctl-64.1.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.vLBCWJ/_old  2019-03-08 13:29:50.278978744 +0100
+++ /var/tmp/diff_new_pack.vLBCWJ/_new  2019-03-08 13:29:50.302978739 +0100
@@ -20,7 +20,7 @@
 %define lname libndctl6
 %define dname libndctl-devel
 Name:   ndctl
-Version:64
+Version:64.1
 Release:0
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0-only
@@ -127,6 +127,7 @@
 %dir %{_sysconfdir}/ndctl/keys
 %{_sysconfdir}/ndctl/keys/keys.readme
 %config %{_sysconfdir}/ndctl/monitor.conf
+%dir %{_sysconfdir}/modprobe.d
 %config %{_sysconfdir}/modprobe.d/nvdimm-security.conf
 %{_unitdir}/ndctl-monitor.service
 %dir %{_datadir}/bash-completion/

++ _service ++
--- /var/tmp/diff_new_pack.vLBCWJ/_old  2019-03-08 13:29:50.662978676 +0100
+++ /var/tmp/diff_new_pack.vLBCWJ/_new  2019-03-08 13:29:50.686978672 +0100
@@ -3,8 +3,8 @@
 git
 https://github.com/pmem/ndctl.git
 ndctl
-64
-v64
+64.1
+v64.1
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.vLBCWJ/_old  2019-03-08 13:29:50.906978634 +0100
+++ /var/tmp/diff_new_pack.vLBCWJ/_new  2019-03-08 13:29:50.930978630 +0100
@@ -1,4 +1,4 @@
 
 
 https://github.com/pmem/ndctl.git
-  f407a8b346412be03db93bd5245314ae7d07a0e5
\ No newline at end of file
+  c1de955b90d727602fc4cbbbd1d5df84efacab63
\ No newline at end of file

++ ndctl-64.tar.gz -> ndctl-64.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-64/git-version new/ndctl-64.1/git-version
--- old/ndctl-64/git-version2019-02-02 03:16:14.0 +0100
+++ new/ndctl-64.1/git-version  2019-02-06 01:45:14.0 +0100
@@ -19,7 +19,7 @@
fi
 }
 
-DEF_VER=64
+DEF_VER=64.1
 
 LF='
 '
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-64/ndctl/Makefile.am 
new/ndctl-64.1/ndctl/Makefile.am
--- old/ndctl-64/ndctl/Makefile.am  2019-02-02 03:16:14.0 +0100
+++ new/ndctl-64.1/ndctl/Makefile.am2019-02-06 01:45:14.0 +0100
@@ -47,6 +47,10 @@
$(KMOD_LIBS) \
$(JSON_LIBS)
 
+if ENABLE_KEYUTILS
+ndctl_LDADD += -lkeyutils
+endif
+
 if ENABLE_TEST
 ndctl_SOURCES += ../test/libndctl.c \
 ../test/dsm-fail.c \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-64/ndctl/lib/Makefile.am 
new/ndctl-64.1/ndctl/lib/Makefile.am
--- old/ndctl-64/ndctl/lib/Makefile.am  2019-02-02 03:16:14.0 +0100
+++ new/ndctl-64.1/ndctl/lib/Makefile.am2019-02-06 01:45:14.0 
+0100
@@ -30,10 +30,6 @@
$(UUID_LIBS) \
$(KMOD_LIBS)
 
-if ENABLE_KEYUTILS
-libndctl_la_LIBADD += -lkeyutils
-endif
-
 EXTRA_DIST += libndctl.sym
 
 libndctl_la_LDFLAGS = $(AM_LDFLAGS) \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-64/ndctl/ndctl.c new/ndctl-64.1/ndctl/ndctl.c
--- old/ndctl-64/ndctl/ndctl.c  2019-02-02 03:16:14.0 +0100
+++ new/ndctl-64.1/ndctl/ndctl.c2019-02-06 01:45:14.0 +0100
@@ -93,7 +93,9 @@
{ "remove-passphrase", { cmd_remove_passphrase } },
{ "freeze-security", { cmd_freeze_security } },
{ "sanitize-dimm", { cmd_sanitize_dimm } },
+#ifdef ENABLE_KEYUTILS
{ "load-keys", { cmd_load_keys } },
+#endif
{ "wait-overwrite", { cmd_wait_overwrite } },
{ "list", { cmd_list } },
{ "monitor", { cmd_monitor } },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ndctl-64/ndctl/util/keys.h 
new/ndctl-64.1/ndctl/util/keys.h
--- old/ndctl-64/ndctl/util/keys.h  2019-02-02 03:16:14.0 +0100
+++ 

commit ndctl for openSUSE:Factory

2019-02-08 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-02-08 13:45:55

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.28833 (New)


Package is "ndctl"

Fri Feb  8 13:45:55 2019 rev:20 rq:671116 version:64

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2019-01-15 
09:11:08.758526247 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.28833/ndctl.changes   2019-02-08 
13:45:57.742824736 +0100
@@ -1,0 +2,63 @@
+Mon Feb 04 10:19:27 UTC 2019 - jthumsh...@suse.de
+
+- Update to version 64 (bsc#1123024):
+  * ndctl: release v64
+  * ndctl, load-keys: fix a resource leak in load_dimm_keys()
+  * libndctl: fix a couple of theoretical buffer overruns
+  * ndctl, keys: fix a resource leak in verify_kek()
+  * ndctl, keys: fix a memory leak in dimm_create_key()
+  * ndctl, rpmbuild: Add a dummy readme file to ndctl_keysdir
+  * ndctl, bash-completion: add helpers for security commands
+  * ndctl: allow for a 'secure erase' using the master passphrase
+  * ndctl: master phassphrase management support
+  * ndctl: add a wait-overwrite command
+  * ndctl: add an overwrite option to 'sanitize-dimm'
+  * ndctl: add a load-keys command and a modprobe config
+  * ndctl: add a unit test to exercise security operations
+  * ndctl: add a sanitize-dimm command
+  * ndctl: add a freeze-security command
+  * ndctl: add passphrase management commands
+  * ndctl: add a Theory of Operation document for security commands
+  * ndctl: add support for displaying the security state
+  * ndctl.spec.in: remove obsolete Group tag
+  * ndctl.spec.in: remove obsolete ldconfig scriptlets
+  * libndctl: fix bb iterator leak in namespaces
+  * ndctl: Add supported_alignments to the JSON output
+  * ndctl/namespace: Make the create-namespace JSON output non-verbose
+  * ndctl: Add alignment to the namespace JSON output
+  * ndctl/namespace: Validate alignment from the {pfn|dax} seed
+  * ndctl/namespace: Use seed alignment as the default
+  * ndctl/namespace: Check for seed namespaces earlier
+  * libndctl: Use the supported_alignment attribute
+  * libndctl: Fix the failure interpretation for status translations
+  * daxctl: Add bash-completion
+  * ndctl, Documentation: Allow for Makefile variables in Documentation
+  * Documentation: Update copyright
+  * daxctl: Opt-in to /sys/bus/dax ABI
+  * daxctl: Support the /sys/bus/dax ABI
+  * ndctl/build: Fix config.h dependency
+  * ndctl, rpm: Mark monitor.conf as a configuration file
+  * ndctl: Introduce ndctl/config.h
+  * ndctl/init-labels: Fix label slot accounting per UEFI 2.7
+  * ndctl: clean up usage of ndctl_cmd_submit
+  * ndctl, monitor: switch to ndctl_cmd_submit_xlat
+  * ndctl, inject-smart: switch to ndctl_cmd_submit_xlat
+  * libndctl, intel: Add infrastructure for firmware_status translation
+  * libndctl: ignore ENXIO in ndctl_namespace_delete
+  * ndctl, monitor: use type=simple instead of type=forking
+  * ndctl/monitor: Kill usage of ndctl/lib/private.h
+  * ndctl/monitor: Drop vasprintf usage
+  * ndctl/monitor: Fix / cleanup log_file()
+  * ndctl/monitor: Unify definition of default monitor configfile path
+  * ndctl/monitor: Drop 'struct ndctl_ctx *' casts
+  * ndctl, daxctl: Add type-safety to command harness
+  * ndctl, daxctl: Split builtin.h per-command
+  * ndctl: recover from failed namespace creation
+  * ndctl, build: Define HAVE_UUID
+  * ndctl: fix zero-labels to handle firmware error properly
+  * test, dsm-fail: Cleanup leftover debug
+  * test, device-dax: Fix intermittent poison handling failures
+  * Drop upstreamed patch:
+   - 0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch
+
+---

Old:

  0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch
  ndctl-63.tar.gz

New:

  ndctl-64.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.cemiRd/_old  2019-02-08 13:45:58.318824557 +0100
+++ /var/tmp/diff_new_pack.cemiRd/_new  2019-02-08 13:45:58.326824555 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ndctl
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2015 Intel Corporation
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,59 +13,58 @@
 # 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/
 #
 
 
 %define lname libndctl6
 %define dname libndctl-devel
-
 Name:

commit ndctl for openSUSE:Factory

2019-01-15 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2019-01-15 09:11:07

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.28833 (New)


Package is "ndctl"

Tue Jan 15 09:11:07 2019 rev:19 rq:664029 version:63

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-12-13 
19:50:14.664561432 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.28833/ndctl.changes   2019-01-15 
09:11:08.758526247 +0100
@@ -1,0 +2,6 @@
+Tue Jan  8 09:18:04 UTC 2019 - jthumsh...@suse.com
+
+- Use Type=simple instead of Type=forking for service (bsc#1120931)
+  + 0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch
+
+---

New:

  0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.xX0j6s/_old  2019-01-15 09:11:09.590525479 +0100
+++ /var/tmp/diff_new_pack.xX0j6s/_new  2019-01-15 09:11:09.594525475 +0100
@@ -29,6 +29,7 @@
 Url:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
+Patch0: 0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch
 ExclusiveArch:  x86_64 ppc64le
 
 # required for documentation
@@ -86,6 +87,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 echo "%{version}" > version

++ 0001-ndctl-monitor-use-type-simple-instead-of-type-forkin.patch ++
>From cfdd874353e2798000dc1f9ebd99882c4d373c08 Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn 
Date: Mon, 7 Jan 2019 16:45:31 +0100
Subject: [PATCH] ndctl, monitor: use type=simple instead of type=forking
Git-commit: 6efb0a555a21f9cb8b7219e30a819731bc28d27b
Patch-mainline: v63.1 or v64
References: bsc#1120931

There is no need to use Type=forking for 'ndctl monitor', Type=simple is
sufficient.

When we use Type=forking and try to run ndctl monitor on a machine without
pmem we even get the following error in the journal:

Jan 07 13:34:54 bragi systemd[1]: Starting Ndctl Monitor Daemon...
Jan 07 13:34:54 bragi ndctl[13776]: custom logging function 0x55ea57d60250 
registered
Jan 07 13:34:54 bragi systemd[1]: Started Ndctl Monitor Daemon.
Jan 07 13:34:54 bragi ndctl[13777]: ndctl monitor daemon started
Jan 07 13:34:54 bragi kill[13778]: kill: cannot find process ""
Jan 07 13:34:54 bragi systemd[1]: ndctl-monitor.service: Control process 
exited, code=exited status=1
Jan 07 13:34:54 bragi systemd[1]: ndctl-monitor.service: Unit entered failed 
state.
Jan 07 13:34:54 bragi systemd[1]: ndctl-monitor.service: Failed with result 
'exit-code'.

This is because the daemon exits and systemd is not able to determine
$MAINPID anymore.

Signed-off-by: Johannes Thumshirn 
---
 ndctl/ndctl-monitor.service | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ndctl/ndctl-monitor.service b/ndctl/ndctl-monitor.service
index 342a1b1972d5..eeedbd30bb42 100644
--- a/ndctl/ndctl-monitor.service
+++ b/ndctl/ndctl-monitor.service
@@ -2,9 +2,8 @@
 Description=Ndctl Monitor Daemon
 
 [Service]
-Type=forking
-ExecStart=/usr/bin/ndctl monitor --daemon
-ExecStop=/bin/kill ${MAINPID}
+Type=simple
+ExecStart=/usr/bin/ndctl monitor
 
 [Install]
 WantedBy=multi-user.target
-- 
2.16.4




commit ndctl for openSUSE:Factory

2018-12-13 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-12-13 19:50:14

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new.28833 (New)


Package is "ndctl"

Thu Dec 13 19:50:14 2018 rev:18 rq:657800 version:63

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-11-09 
07:56:05.927595915 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new.28833/ndctl.changes   2018-12-13 
19:50:14.664561432 +0100
@@ -1,0 +2,5 @@
+Thu Dec 13 10:21:14 UTC 2018 - jthumsh...@suse.com
+
+- Enable ppc64le build (FATE#326817)
+
+---



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.H82vJb/_old  2018-12-13 19:50:15.072560906 +0100
+++ /var/tmp/diff_new_pack.H82vJb/_new  2018-12-13 19:50:15.076560901 +0100
@@ -29,7 +29,7 @@
 Url:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
-ExclusiveArch:  x86_64
+ExclusiveArch:  x86_64 ppc64le
 
 # required for documentation
 #if 0%{?suse_version} >= 1330




commit ndctl for openSUSE:Factory

2018-11-08 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-11-09 07:55:58

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Fri Nov  9 07:55:58 2018 rev:17 rq:647366 version:63

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-10-08 
17:50:55.002063860 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-11-09 
07:56:05.927595915 +0100
@@ -1,0 +2,5 @@
+Thu Nov  8 15:30:30 UTC 2018 - r...@suse.com
+
+- Fix rpmbuild failure on SLE12 SP4
+
+---



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.uVBzeg/_old  2018-11-09 07:56:06.395595381 +0100
+++ /var/tmp/diff_new_pack.uVBzeg/_new  2018-11-09 07:56:06.399595376 +0100
@@ -31,7 +31,14 @@
 Source0:%{name}-%{version}.tar.gz
 ExclusiveArch:  x86_64
 
-BuildRequires:  ruby2.5-rubygem-asciidoctor
+# required for documentation
+#if 0%{?suse_version} >= 1330
+%if %{defined rubygem(asciidoctor)}
+BuildRequires:  rubygem(asciidoctor)
+%else
+BuildRequires:  asciidoc
+BuildRequires: libxslt-tools
+%endif
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libjson-c-devel
@@ -83,12 +90,18 @@
 %build
 echo "%{version}" > version
 ./autogen.sh
-%configure --disable-static
+CONF_FLAGS="--disable-static"
+%if ! %{defined rubygem(asciidoctor)}
+CONF_FLAGS="$CONF_FLAGS --disable-asciidoctor"
+%endif
+%configure $CONF_FLAGS
 make %{?_smp_mflags}
 
 %install
 %make_install
 find "%buildroot" -type f -name "*.la" -delete
+mkdir -p %{buildroot}%{_sbindir}
+ln -sf service %{buildroot}%{_sbindir}/rcndctl-monitor
 
 %post -n %lname -p /sbin/ldconfig
 
@@ -100,6 +113,9 @@
 %post
 %service_add_post ndctl-monitor.service
 
+%preun
+%service_del_preun ndctl-monitor.service
+
 %postun
 %service_del_postun ndctl-monitor.service
 
@@ -108,9 +124,10 @@
 %doc  licenses/BSD-MIT licenses/CC0
 %{_bindir}/ndctl
 %{_bindir}/daxctl
+%{_sbindir}/rcndctl-monitor
 %{_mandir}/man1/*
 %dir %{_sysconfdir}/ndctl
-%{_sysconfdir}/ndctl/monitor.conf
+%config %{_sysconfdir}/ndctl/monitor.conf
 %{_unitdir}/ndctl-monitor.service
 %dir %{_datadir}/bash-completion/
 %dir %{_datadir}/bash-completion/completions/




commit ndctl for openSUSE:Factory

2018-10-08 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-10-08 17:49:21

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Mon Oct  8 17:49:21 2018 rev:16 rq:640574 version:63

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-08-24 
17:13:59.242776779 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-10-08 
17:50:55.002063860 +0200
@@ -1,0 +2,29 @@
+Mon Oct 08 08:33:17 UTC 2018 - jthumsh...@suse.com
+
+- Update to version 63 (FATE#326198):
+  * ndctl: release v63
+  * ndctl, monitor: in daemon mode, exit successfully if no DIMMs are found
+  * ndctl, monitor: fix the severity of "daemon started" message
+  * libndctl: set errno for routines that don't return an error status
+  * ndctl, check-labels: correct check-labels message wording
+  * ndctl: Revert "ndctl: Create ndctl udev rules for dirty shutdown"
+  * ndctl: Revert "ndctl, intel: Fallback to smart cached shutdown_count"
+  * ndctl, lib: Add dirty-shutdown-count retrieval helper
+  * util/json: add a util_namespace_badblocks_to_json() helper
+  * util/json: Add comments around re-checking the UTIL_JSON_MEDIA_ERRORS flag
+  * util/json: fix an error check for region resource
+  * ndctl, lib: add APIs for retrieving namespace badblocks
+  * ndctl, lib: refactor badblocks retrieval routines
+  * ndctl, test: add a new unit test pfn metadata error clearing
+  * ndctl, spec: Use pkgconfig for systemd
+  * ndctl, build: Introduce --with-{bash,systemd}
+  * ndctl: Suppress command errors if fallback exists
+  * ndctl, namespace: rework namespace action accounting
+  * ndctl, destroy-namespace: check for an already-zeroed info block
+  * ndctl, test: add UUID_LIBS for list_smart_dimm
+  * ndctl, docs: Use asciidoctor by default
+  * ndctl, list: fix the verbosity level formatting in the man page
+  * ndctl, monitor: Fix formatting for --log in the man page
+  * ndctl, autoconf: include sys/mman.h for MAP_SYNC
+
+---

Old:

  ndctl-62.tar.gz

New:

  ndctl-63.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.zavvlU/_old  2018-10-08 17:50:55.418063329 +0200
+++ /var/tmp/diff_new_pack.zavvlU/_new  2018-10-08 17:50:55.418063329 +0200
@@ -21,7 +21,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:62
+Version:63
 Release:0
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0-only
@@ -31,7 +31,7 @@
 Source0:%{name}-%{version}.tar.gz
 ExclusiveArch:  x86_64
 
-BuildRequires:  asciidoc
+BuildRequires:  ruby2.5-rubygem-asciidoctor
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libjson-c-devel
@@ -43,6 +43,7 @@
 BuildRequires:  pkgconfig(libudev)
 BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(uuid)
+BuildRequires:  pkgconfig(bash-completion)
 %{?systemd_requires}
 
 %description
@@ -87,10 +88,7 @@
 
 %install
 %make_install
-mkdir -p %buildroot%{_udevrulesdir}
 find "%buildroot" -type f -name "*.la" -delete
-find "%buildroot" -type f -name "*.rules" -exec mv '{}' \
- %buildroot%{_udevrulesdir}  ';'
 
 %post -n %lname -p /sbin/ldconfig
 
@@ -113,7 +111,6 @@
 %{_mandir}/man1/*
 %dir %{_sysconfdir}/ndctl
 %{_sysconfdir}/ndctl/monitor.conf
-%{_udevrulesdir}/80-ndctl.rules
 %{_unitdir}/ndctl-monitor.service
 %dir %{_datadir}/bash-completion/
 %dir %{_datadir}/bash-completion/completions/

++ _service ++
--- /var/tmp/diff_new_pack.zavvlU/_old  2018-10-08 17:50:55.446063294 +0200
+++ /var/tmp/diff_new_pack.zavvlU/_new  2018-10-08 17:50:55.446063294 +0200
@@ -3,8 +3,8 @@
 git
 https://github.com/pmem/ndctl.git
 ndctl
-62
-v62
+63
+v63
 .git
 enable
   

++ _servicedata ++
--- /var/tmp/diff_new_pack.zavvlU/_old  2018-10-08 17:50:55.466063268 +0200
+++ /var/tmp/diff_new_pack.zavvlU/_new  2018-10-08 17:50:55.466063268 +0200
@@ -1,4 +1,4 @@
 
 
 https://github.com/pmem/ndctl.git
-  11f560f4048c1d38b7011a49566871a1e8a07c94
\ No newline at end of file
+  cb2d678dd6d286dd96d31548c32449a8b883ae32
\ No newline at end of file

++ ndctl-62.tar.gz -> ndctl-63.tar.gz ++
 2124 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2018-08-24 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-08-24 17:13:31

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Fri Aug 24 17:13:31 2018 rev:15 rq:631312 version:62

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-07-09 
13:26:43.711065190 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-08-24 
17:13:59.242776779 +0200
@@ -1,0 +2,108 @@
+Thu Aug 23 13:00:23 UTC 2018 - jthumsh...@suse.com
+
+- Update to version 62 (FATE#326529):
+  * ndctl: release v62
+  * ndctl: Work around kernel memory corruption
+  * ndctl, udev: fix a resource leak in save_unsafe_shutdown_count
+  * ndctl: fix potential null dereference in the smart error handler
+  * ndctl, prepare-release.sh: fix revision update checks
+  * ndctl: Add 'list' verbose options
+  * ndctl, test: fix a resource leak in check_smart_threshold
+  * ndctl, test: fix a potential null pointer dereference in 'ndctl test'
+  * libndctl: fix a resource leak in ndctl_dimm_get_{{event_}flags, health}
+  * ndctl: fix a resource leak in submit_get_firmware_info
+  * ndctl, inject: fix a resource leak in ndctl_namespace_get_clear_unit
+  * ndctl, monitor: add [Install] Section to systemd unit file of ndctl-monitor
+  * ndctl, monitor: add timestamp and pid to log messages in log_file()
+  * ndctl, monitor: set default log destination to syslog if "--daemon" is 
specified
+  * ndctl, monitor: fix the lack of detection of invalid path of log file
+  * ndctl, intel: Fallback to smart cached shutdown_count
+  * ndctl: Create ndctl udev rules for dirty shutdown
+  * ndctl, list: add alarm_enable_ to list
+  * ndctl, test: add a new unit test for max_available_extent namespace
+  * ndctl, documentation: Clarify the dimm id for ndctl list d option
+  * ndctl, tests: add a new unit test for inject-smart
+  * ndctl, inject-smart: continue in spite of errors for uninject-all
+  * ndctl, monitor: add [--verbose] option to emit extra debug messages
+  * ndctl, monitor: Fix duplicate prefix in monitor.log
+  * ndctl, inject-smart: add an interface to inject ctrl-temperature
+  * ndctl: Use max_available_extent for namespace
+  * ndctl, test/monitor: fix inject-smart field in test_filter_dimmevent
+  * ndctl, test: remove the firmware image file before the test end
+  * ndctl inject-smart: add an option to uninject smart fields
+  * ndctl, inject-smart: Fix man page to match the current behavior
+  * ndctl: deprecate undocumented short-options
+  * ndctl, documentation: document the label-version option for init-labels
+  * ndctl, monitor: fix a resource leak in parse_monitor_event
+  * Documentation, create-namespace: clarify fsdax wording
+  * ndctl, monitor: improve error reporting throughout monitor.c
+  * ndctl, monitor: Fix memory leak in monitor_event
+  * ndctl, monitor: fix memory leak in read_config_file
+  * ndctl, monitor: Add a config-file section to the man page
+  * ndctl, monitor: fix the lack of detection of invalid dimm-events
+  * ndctl, bash-completion: add completion for ndctl-monitor
+  * ndctl, test: add a new unit test for monitor
+  * ndctl, documentation: add man page for monitor
+  * ndctl, monitor: add the unit file of systemd for ndctl-monitor service
+  * ndctl, monitor: add main ndctl monitor configuration file
+  * ndctl, monitor: add a new command - monitor
+  * ndctl, test: convert remaining tests to use test/common
+  * ndctl, test: fix tests for the array vs object listing fix
+  * ndctl list: always output array without --human
+  * ndctl: simplify JSON print flag handling
+  * ndctl: add an API to check support for smart injection
+  * contrib/do_abidiff: make the build more robust
+  * ndctl: Remove dependency on linker garbage collection
+  * ndctl, test: fix timeouts in device-dax
+  * ndctl, test: Fix dax.sh return code
+  * libndctl: fix the uninject-error API actually injecting errors
+  * ndctl, test: add start/wait scrub to injection tests
+  * ndctl: Add CONTRIBUTING.md
+  * Documentation: add a newline in namespace Theory of Operations
+  * util/strbuf.h: include sys/types.h for ssize_t definition.
+  * ndctl, test: check availability of MAP_SYNC for poison test
+  * ndctl: release v61
+  * ndctl, list: add controller temperature threshold and alarm
+  * ndctl, test: remove an unused variable assignment
+  * ndctl, Documentation: Add namespace 'theory of operation'
+  * ndctl: add a test file to .gitignore
+  * ndctl, test: cleanup test scripts
+  * ndctl, test: Add NFIT_TEST_BUS[01] variable and some helper funtions to 
common
+  * ndctl, test: Update tests for capacity vs namespace-label locking
+  * ndctl, test: Disable poison tests for now
+  * ndctl, test: Update libndctl test for controller temperature 

commit ndctl for openSUSE:Factory

2018-07-09 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-07-09 13:26:37

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Mon Jul  9 13:26:37 2018 rev:14 rq:619739 version:60.1

Changes:




Other differences:
--



commit ndctl for openSUSE:Factory

2018-06-25 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-06-25 11:40:10

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Mon Jun 25 11:40:10 2018 rev:13 rq:618482 version:60.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-05-16 
11:42:14.266892159 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-06-25 
11:40:21.849991193 +0200
@@ -1,0 +2,5 @@
+Fri Jun 22 09:43:14 UTC 2018 - r...@suse.com
+
+- Drop 'v' from pkgconfig-version (breaks 'ipmctl') (FATE#325527)
+
+---



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.RwmWxO/_old  2018-06-25 11:40:22.457968751 +0200
+++ /var/tmp/diff_new_pack.RwmWxO/_new  2018-06-25 11:40:22.457968751 +0200
@@ -77,7 +77,7 @@
 %setup
 
 %build
-echo "v%{version}" > version
+echo "%{version}" > version
 ./autogen.sh
 %configure --disable-static
 make %{?_smp_mflags}




commit ndctl for openSUSE:Factory

2018-05-16 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2018-05-16 11:40:45

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Wed May 16 11:40:45 2018 rev:12 rq:607404 version:60.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2018-02-14 
10:51:23.546179577 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-05-16 
11:42:14.266892159 +0200
@@ -1,0 +2,71 @@
+Wed May 02 08:41:29 UTC 2018 - opensuse-packag...@opensuse.org
+
+- Update to version 60.1 (FATE#322885):
+  * ndctl: release v60.1
+  * ndctl: fix ABI breakage due to rename of fw_info_get_updated_version
+  * ndctl, documentation: add inject-smart to the Makefile
+  * ndctl: release v60
+  * ndctl, bash-completion: add completion for {start,wait}-scrub commands
+  * ndctl, util: add a raw_uuid field to namespace listings
+  * ndctl: fix ordering of closing vs invalidating flush_fd
+  * ndctl: fix libdaxctl memory leak
+  * ndctl: add support in libndctl to provide deep flush
+  * ndctl, test: fix pmem-errors.sh vs new ARS rework
+  * ndctl, scrub: add {wait,start}-scrub helper utilities
+  * ndctl: add new START and WAIT actions
+  * ndctl, scrub: add ndctl_bus_start_scrub()
+  * ndctl, scrub: report the bus scrub state in 'ndctl list'
+  * ndctl, scrub: fix ndctl_bus_wait_for_scrub_completion()
+  * ndctl: complete move to "fsdax" and "devdax"
+  * ndctl, read-labels: fix json reference counting
+  * ndctl: export ndctl.h
+  * ndctl, test: add write_cache testing to libndctl
+  * libndctl: Add APIs for query and control of write_cache
+  * ndctl: fix ndctl_persistence_domain declaration
+  * ndctl, rescan-partitions.sh: fix skipping for missing modules
+  * ndctl: replace direct errno prints with strerror strings
+  * ndctl, inject-smart: fix usage of strerror(errno)
+  * ndctl, check: fix a few error returns
+  * ndctl: Add support for get bus and region persistence domain
+  * ndctl: fail NUMA filtering when unsupported
+  * ndctl, documentation: update copyright
+  * ndctl: complete removal of daxctl io
+  * ndctl: fix input/output size for Intel firmware update DSM
+  * ndctl, sysfs: null terminate buffer on error
+  * ndctl, list: fix namespace json object parenting
+  * ndctl. test: fix module-taint sanity-check
+  * ndctl, documentation: remove '...' from label-options.txt
+  * ndctl, docs: cleanup the man page for create-namespace
+  * ndctl: removing daxctl io
+  * libndctl.sym: move new interfaces since v59 to a new section
+  * ndctl, list: fix sector_size listing
+  * ndctl: merge firmware-update into dimm.c as another dimm operation
+  * ndctl: add check for update firmware supported
+  * ndctl, bash-completion: add completion for --numa-node
+  * ndctl: add filtering based on numa node
+  * ndctl: add numa_node support for regions
+  * ndctl: don't print erroneous namespace numa_nodes
+  * ndctl, tests: firmware-update.sh post-test cleanup
+  * ndctl, test: add a unit test for partition rescanning
+  * ndctl, create-namespace: fix minimum alignment detection
+  * ndctl, list: refactor core topology walking into util_filter_walk()
+  * ndctl, firmware-update: kill usage of flock() in verify_fw_file()
+  * ndctl, test: kill usage of fallocate in firmware-update.sh
+  * ndctl, test: skip btt-pad compat test on pre-4K capable kernels
+  * ndctl, test: fix dpa-alloc for kernels with 4M min size
+  * ndctl, log: add support for LOG_NOTICE messages
+  * ndctl, test: explicitly request namespace size
+  * ndctl, test: fix stale json in btt-pad-compat.sh
+  * ndctl, test: fix tests that use error injection on older kernels
+  * ndctl: add test files to .gitignore
+  * ndctl: tests must use local ndctl
+  * ndctl, update: remove the check for !cmd when dereferencing it
+  * ndctl, update: fix uninitialized variable warnings
+  * ndctl, inject-smart: cleanup uninitialized variable warnings
+  * ndctl, configure: add -Wmaybe-uninitialized to cflags
+  * ndctl: add option to list firmware information for a DIMM
+  * ndctl: adding unit test for enable ack shutdown count
+  * ndctl: add support for acknolwedge shutdown count enable
+  * ndctl, smart: fix threshold temperature helper
+
+---

Old:

  ndctl-59.2.tar.gz

New:

  ndctl-60.1.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.owVJwM/_old  2018-05-16 11:42:15.354852563 +0200
+++ /var/tmp/diff_new_pack.owVJwM/_new  2018-05-16 11:42:15.358852418 +0200
@@ -21,7 +21,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:59.2
+Version:60.1
 Release:1
 Summary:  

commit ndctl for openSUSE:Factory

2018-02-14 Thread root
Hello community,

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

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Wed Feb 14 10:51:22 2018 rev:11 rq:576064 version:59.2

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2017-09-12 
19:58:08.223942928 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-02-14 
10:51:23.546179577 +0100
@@ -1,0 +2,15 @@
+Mon Feb 12 15:44:56 UTC 2018 - jthumsh...@suse.com
+
+- Update to version v59.2 (FATE#322885):
+  * ndctl: add ndctl_encode_smart_temperature()
+  * ndctl: add a new command - inject-smart
+  * ndctl, bash-completion: Add bash completion for inject-smart
+  * ndctl: Add CONFIG_DEV_DAX_PMEM=m to README.md
+  * ndctl: add info about CONFIG_X86_PMEM_LEGACY to README.md
+  * ndctl: release v59
+  * ndctl: fallback to sysconf for PAGE_SIZE
+  * ndctl: release v59.1
+  * ndctl, hugetlb: skip, don't fail
+  * ndctl, firmware: fix kernel version check
+
+---

Old:

  ndctl-57.1.tar.gz

New:

  _service
  _servicedata
  ndctl-59.2.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.GhCw1U/_old  2018-02-14 10:51:24.102159567 +0100
+++ /var/tmp/diff_new_pack.GhCw1U/_new  2018-02-14 10:51:24.102159567 +0100
@@ -21,7 +21,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:57.1
+Version:59.2
 Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0

++ _service ++

  
git
https://github.com/pmem/ndctl.git
ndctl
59.2
v59.2
.git
enable
  
  
*.tar
gz
  

++ _servicedata ++


https://github.com/pmem/ndctl.git
  2e00e6a17353fc8d02236c5e474158b781229926++
 ndctl-57.1.tar.gz -> ndctl-59.2.tar.gz ++
 21853 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2017-09-12 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2017-09-12 19:58:07

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Tue Sep 12 19:58:07 2017 rev:10 rq:523691 version:57.1

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2017-05-24 
16:50:57.825516511 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2017-09-12 
19:58:08.223942928 +0200
@@ -1,0 +2,31 @@
+Tue Jul 25 14:21:31 UTC 2017 - jthumsh...@suse.com
+
+- Upstream version v57.1 (FATE#322885)
+  -libndctl-add-support-for-the-msft-family-of-dsm-functions.patch
+  This release incorporates the capabilities of the 4.12 kernel. Major
+  highlights include the new 'ndctl check-namespace' utility to check and
+  repair btt instances, new option to 'ndctl list' to enumerate device
+  relative error offsets, and support for the "JEDEC Byte-Addressable
+  Energy-Backed Interface NVDIMM" SMART health format.
+  
+  Commands:
+  ndctl check-namespace: check and repair a btt instance
+  ndctl list: new '--media-errors' option
+  ndctl list: add acpi 6.1 dimm health state flags
+  ndctl write-labels: new command to deploy data to dimm label areas
+  
+  Tests:
+  blk-exhaust: validate aliased pmem vs blk capacity accounting
+  daxdev-errors: error injection and clearing for device-dax
+  device-dax-fio: i/o traffic sanity check for device-dax
+  label-compat: regression test for interleave-set-cookie compatibility
+  
+  Apis:
+  ndctl_dimm_has_notifications: acpi 6.1 health-state notification flag
+  ndctl_dimm_failed_map: acpi 6.1 map failure flag
+  ndctl_region_get_resource: region resource base address
+  ndctl_region_get_{first,next}_badblock: media error enumeration
+  ndctl_namespace_disable_safe: check for busy block device before disable
+  ndctl_namespace_is_active: check if namespace is enabled or claimed
+
+---

Old:

  libndctl-add-support-for-the-msft-family-of-dsm-functions.patch
  ndctl-56.tar.gz

New:

  ndctl-57.1.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.FfdFnG/_old  2017-09-12 19:58:09.151812462 +0200
+++ /var/tmp/diff_new_pack.FfdFnG/_new  2017-09-12 19:58:09.155811899 +0200
@@ -21,7 +21,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:56
+Version:57.1
 Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0
@@ -29,7 +29,6 @@
 Url:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
-Patch0: libndctl-add-support-for-the-msft-family-of-dsm-functions.patch
 ExclusiveArch:  x86_64
 
 BuildRequires:  asciidoc
@@ -76,7 +75,6 @@
 
 %prep
 %setup
-%patch0 -p1
 
 %build
 echo "v%{version}" > version
@@ -88,9 +86,6 @@
 %make_install
 find "%buildroot" -type f -name "*.la" -delete
 
-%check
-make check
-
 %post -n %lname -p /sbin/ldconfig
 
 %postun -n %lname -p /sbin/ldconfig

++ ndctl-56.tar.gz -> ndctl-57.1.tar.gz ++
 11714 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2017-05-24 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2017-05-24 16:50:13

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Wed May 24 16:50:13 2017 rev:9 rq:497314 version:56

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2017-03-12 
19:59:30.959826021 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2017-05-24 
16:50:57.825516511 +0200
@@ -1,0 +2,6 @@
+Mon May 22 13:22:31 UTC 2017 - jthumsh...@suse.com
+
+-  Add support for MSFT family DSM functions (bsc#1040158)
+  + libndctl-add-support-for-the-msft-family-of-dsm-functions.patch
+
+---

New:

  libndctl-add-support-for-the-msft-family-of-dsm-functions.patch



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.ExDdnE/_old  2017-05-24 16:50:58.405434880 +0200
+++ /var/tmp/diff_new_pack.ExDdnE/_new  2017-05-24 16:50:58.405434880 +0200
@@ -29,6 +29,7 @@
 Url:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
+Patch0: libndctl-add-support-for-the-msft-family-of-dsm-functions.patch
 ExclusiveArch:  x86_64
 
 BuildRequires:  asciidoc
@@ -75,6 +76,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 echo "v%{version}" > version

++ libndctl-add-support-for-the-msft-family-of-dsm-functions.patch ++
>From 2cf2acca0288389a39ac823a42a5e048575d52db Mon Sep 17 00:00:00 2001
From: Lijun Pan 
Date: Thu, 6 Apr 2017 12:17:38 -0500
Subject: libndctl: add support for the MSFT family of DSM functions
References: bsc#1040158
Git-commit: 2cf2acca0288389a39ac823a42a5e048575d52db
Patch-mainline: v57

This patch retrieves the health data from NVDIMM-N via
the MSFT _DSM function[1], following JESD245A[2] standards.
Now 'ndctl list --dimms --health --idle' could work
on MSFT type NVDIMM-N, but limited to health_state,
temperature_celsius, and life_used_percentage.

Sample output of 'ndclt list --dimms --health --idle'
{
  "dev":"nmem0",
  "id":"802c-0f-1711-1648dd20",
  "state":"disabled",
  "health":{
"health_state":"ok",
"temperature_celsius":27.00,
"life_used_percentage":3
  }
}

[1]. https://msdn.microsoft.com/library/windows/hardware/mt604741
[2]. https://www.jedec.org/sites/default/files/docs/JESD245A.pdf

Cc: Stuart Hayes 
Signed-off-by: Lijun Pan 
Tested-by: Linda Knippers 
Signed-off-by: Dan Williams 
---
 ndctl/lib/Makefile.am|   1 +
 ndctl/lib/libndctl-msft.c| 140 +++
 ndctl/lib/libndctl-private.h |   4 ++
 ndctl/lib/libndctl.c |   2 +
 ndctl/lib/ndctl-msft.h   |  63 +++
 5 files changed, 210 insertions(+)
 create mode 100644 ndctl/lib/libndctl-msft.c
 create mode 100644 ndctl/lib/ndctl-msft.h

diff --git a/ndctl/lib/Makefile.am b/ndctl/lib/Makefile.am
index 58a0bb3..7a446be 100644
--- a/ndctl/lib/Makefile.am
+++ b/ndctl/lib/Makefile.am
@@ -32,6 +32,7 @@ endif
 if ENABLE_SMART
 libndctl_la_SOURCES += libndctl-smart.c
 libndctl_la_SOURCES += libndctl-hpe1.c
+libndctl_la_SOURCES += libndctl-msft.c
 endif
 
 EXTRA_DIST += libndctl.sym
diff --git a/ndctl/lib/libndctl-msft.c b/ndctl/lib/libndctl-msft.c
new file mode 100644
index 000..d46f79b
--- /dev/null
+++ b/ndctl/lib/libndctl-msft.c
@@ -0,0 +1,140 @@
+/*
+ * Copyright (C) 2016-2017 Dell, Inc.
+ * Copyright (C) 2016 Hewlett Packard Enterprise Development LP
+ * Copyright (c) 2016, Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU Lesser General Public License,
+ * version 2.1, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
+ * more details.
+ */
+#include 
+#include 
+#include 
+#include 
+#include "libndctl-private.h"
+#include "ndctl-msft.h"
+
+#define CMD_MSFT(_c) ((_c)->msft)
+#define CMD_MSFT_SMART(_c) (CMD_MSFT(_c)->u.smart.data)
+
+static struct ndctl_cmd *msft_dimm_cmd_new_smart(struct ndctl_dimm *dimm)
+{
+   struct ndctl_bus *bus = ndctl_dimm_get_bus(dimm);
+   struct ndctl_ctx *ctx = ndctl_bus_get_ctx(bus);
+   struct ndctl_cmd *cmd;
+   size_t size;
+   struct ndn_pkg_msft *msft;
+
+   if (!ndctl_dimm_is_cmd_supported(dimm, ND_CMD_CALL)) {
+

commit ndctl for openSUSE:Factory

2017-03-12 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2017-03-12 19:59:28

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Sun Mar 12 19:59:28 2017 rev:8 rq:461969 version:56

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2017-03-01 
23:44:59.693786804 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2017-03-12 
19:59:30.959826021 +0100
@@ -99 +99 @@
-- Update to v53.1
+- Update to v53.1 (FATE#319859)



Other differences:
--



commit ndctl for openSUSE:Factory

2017-03-01 Thread root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2017-03-01 23:44:58

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Wed Mar  1 23:44:58 2017 rev:7 rq:461515 version:56

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-11-08 
18:28:54.0 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2017-03-01 
23:44:59.693786804 +0100
@@ -1,0 +2,26 @@
+Wed Mar  1 13:36:55 UTC 2017 - r...@suse.com
+
+- Upstream version v56 (fate#321506)
+  This release incorporates the capabilities of the 4.10 kernel. Major
+  highlights include the new 'daxctl' utility and its 'list' command, as
+  well as several usability tweaks and cleanups to 'ndctl
+  create-namespace' and 'ndctl list'.
+
+  Commands:
+ndctl list: add support for filtering by namespace mode
+daxctl list: generically list device-dax instances in a platform
+ndctl create-namespace: reconcile namespace size against interleave-width
+
+  Tests:
+test: sanity check the unit test kernel modules befor running tests
+device-dax: extend it to test 4K and 1G alignments in addition to 2M
+multi-pmem: check namespace deletion cleanup
+
+  Apis:
+ndctl_{pfn,dax}_has_align: detect kernels that lack the align attribute
+ndctl_{set,get}_private_data: attach private data to a library context
+daxctl_region_get_size: retrieve the total dax region size
+daxctl_region_get_align: retrieve the physical alignment of the region
+daxctl_region_get_{first,next}: enable listing of device-dax regions
+
+---

Old:

  ndctl-55.tar.gz

New:

  ndctl-56.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.Lq8F9S/_old  2017-03-01 23:45:00.249708403 +0100
+++ /var/tmp/diff_new_pack.Lq8F9S/_new  2017-03-01 23:45:00.253707840 +0100
@@ -17,12 +17,11 @@
 #
 
 
-%global gitcommit 46ed7cfc9ade
 %define lname libndctl6
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:55
+Version:56
 Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0
@@ -98,6 +97,7 @@
 %defattr(-,root,root)
 %doc  licenses/BSD-MIT licenses/CC0
 %{_bindir}/ndctl
+%{_bindir}/daxctl
 %{_mandir}/man1/*
 %dir %{_datadir}/bash-completion/
 %dir %{_datadir}/bash-completion/completions/

++ ndctl-55.tar.gz -> ndctl-56.tar.gz ++
 4826 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2016-11-08 Thread h_root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2016-11-08 18:28:52

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-06-23 
13:36:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2016-11-08 
18:28:54.0 +0100
@@ -1,0 +2,64 @@
+Sun Oct 23 14:48:49 UTC 2016 - jthumsh...@suse.com
+
+- Upstream version v55
+  This release incorporates the capabilities of the 4.9 kernel. Major
+  highlights include support for retrieving the health status of HPE
+  NVDIMMs, and new label manipulation / validation commands.
+  
+  Commands:
+  list: add HPE NVDIMM health reporting
+  init-labels: initialize a namespace-label index-block
+  check-labels: validate a namespace-label index-block
+  create-namespace: fix crash when target region disabled
+  bash-completion: add {en,dis}able-dimm and {check,init}-labels support
+  
+  Tests:
+  dsm-fail: check that namespaces stay disabled when label DSMs fail
+  multi-pmem: validate pmem-region sub-division support
+  libndctl: add btt-size check
+  libndctl: test health event notification support
+  device-dax: validate "invalidate on shutdown" behavior of dax devices
+  device-dax: validate direct-i/o to device-dax mappings
+  device-dax: check kernel fix for file offset to phys offset translation
+  device-dax: check kernel fix for crash when reading /proc//smaps
+  clear: check kernel fix for making cleared badblocks stay cleared
+  
+  Apis:
+  daxctl_region_get_available_size: new, in support of dax sub-division
+  daxctl_region_get_devname: new, in support of dax sub-division
+  daxctl_region_get_dev_seed: new, in support of dax sub-division
+  ndctl_dimm_get_health_eventfd: new, fires upon firmware health event 
notification
+  ndctl_cmd_cfg_read_get_size: new, simplifies label manipulation routines
+  ndctl_dimm_get_available_labels: fix error return value to be ULONG_MAX
+  ndctl_region_get_available_size: fix error return value to be ULLONG_MAX
+  ndctl_dimm_cmd_new_cfg_{read,write}: fix to not overflow label area size
+
+---
+Mon Aug 15 11:29:45 UTC 2016 - jthumsh...@suse.com
+
+- Update to v54
+This release incorporates the capabilities of the 4.8 kernel.  Updates
+to the unit tests make up the bulk of this release to account for kernel
+commit 1ee6667cd8d1 "libnvdimm, pfn, dax: fix initialization vs
+autodetect for mode + alignment".
+
+Commands:
+list: add device-dax information
+list: add btt size information
+create-namespace: fix handling of invalid sector sizes
+create-namespace: static analysis fixes
+bash-completion: namespace completion enhancements
+
+Tests:
+libndctl: updates for pfn and dax autodetect changes
+libndctl: new gates for running against older kernels
+device-dax: new
+pcommit: remove, the pcommit instruction has been deprecated
+
+Apis:
+ndctl_dimm_get_manufacturing_date: new
+ndctl_dimm_get_manufacturing_location: new
+ndctl_btt_get_size: new
+ndctl_cmd_unref: fix, accepts NULL input
+
+---

Old:

  ndctl-53.1.tar.gz

New:

  ndctl-55.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.7kR9mE/_old  2016-11-08 18:28:55.0 +0100
+++ /var/tmp/diff_new_pack.7kR9mE/_new  2016-11-08 18:28:55.0 +0100
@@ -22,7 +22,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:53.1
+Version:55
 Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0
@@ -96,7 +96,7 @@
 
 %files
 %defattr(-,root,root)
-%doc  licenses/GPLv2 licenses/BSD-MIT licenses/CC0
+%doc  licenses/BSD-MIT licenses/CC0
 %{_bindir}/ndctl
 %{_mandir}/man1/*
 %dir %{_datadir}/bash-completion/

++ ndctl-53.1.tar.gz -> ndctl-55.tar.gz ++
 7331 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2016-06-23 Thread h_root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2016-06-23 13:36:46

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-05-31 
12:24:53.0 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2016-06-23 
13:36:46.0 +0200
@@ -1,0 +2,5 @@
+Tue Jun 21 09:22:36 UTC 2016 - jthumsh...@suse.com
+
+- Fix rpmbuild failure on factory 
+
+---



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.BEfIa1/_old  2016-06-23 13:36:47.0 +0200
+++ /var/tmp/diff_new_pack.BEfIa1/_new  2016-06-23 13:36:47.0 +0200
@@ -99,8 +99,9 @@
 %doc  licenses/GPLv2 licenses/BSD-MIT licenses/CC0
 %{_bindir}/ndctl
 %{_mandir}/man1/*
-%dir %{_datarootdir}/bash-completion/completions/
-%{_datarootdir}/bash-completion/completions/ndctl
+%dir %{_datadir}/bash-completion/
+%dir %{_datadir}/bash-completion/completions/
+%{_datadir}/bash-completion/completions/ndctl
 
 %files -n %lname
 %defattr(-,root,root)




commit ndctl for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2016-05-31 12:24:50

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-04-30 
23:31:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2016-05-31 
12:24:53.0 +0200
@@ -1,0 +2,93 @@
+Mon May 30 06:58:28 UTC 2016 - jthumsh...@suse.com
+
+- Update to v53.1
+  This release incorporates the capabilities of the 4.7-rc1 kernel (most
+  prominently in that kernel 'Device DAX', DAX error handling, and
+  third-party DSM support).  The ndctl updates include:
+  
+  New commands / options:
+  bash completion for ndctl commands
+  DIMM SMART data retrieval (ndctl list --dimms --health)
+  ndctl destroy-namespace
+  ndctl read-labels
+  
+  New tests:
+  DAX error handling unit test (dax-errors.sh)
+  
+  Command fixes:
+  ndctl list
+  ndctl create-namespace
+  
+  New apis:
+  ndctl_cmd_smart_get_alarm_flags
+  ndctl_cmd_smart_get_flags
+  ndctl_cmd_smart_get_health
+  ndctl_cmd_smart_get_life_used
+  ndctl_cmd_smart_get_shutdown_state
+  ndctl_cmd_smart_get_spares
+  ndctl_cmd_smart_get_temperature
+  ndctl_cmd_smart_get_vendor_data
+  ndctl_cmd_smart_get_vendor_size
+  ndctl_cmd_smart_threshold_get_alarm_control
+  ndctl_cmd_smart_threshold_get_spares
+  ndctl_cmd_smart_threshold_get_temperature
+  ndctl_dax_delete
+  ndctl_dax_enable
+  ndctl_dax_get_align
+  ndctl_dax_get_bus
+  ndctl_dax_get_ctx
+  ndctl_dax_get_daxctl_region
+  ndctl_dax_get_devname
+  ndctl_dax_get_first
+  ndctl_dax_get_id
+  ndctl_dax_get_location
+  ndctl_dax_get_namespace
+  ndctl_dax_get_next
+  ndctl_dax_get_region
+  ndctl_dax_get_resource
+  ndctl_dax_get_size
+  ndctl_dax_get_uuid
+  ndctl_dax_is_configured
+  ndctl_dax_is_enabled
+  ndctl_dax_is_valid
+  ndctl_dax_set_align
+  ndctl_dax_set_location
+  ndctl_dax_set_namespace
+  ndctl_dax_set_uuid
+  ndctl_dimm_cmd_new_smart
+  ndctl_dimm_cmd_new_smart_threshold
+  ndctl_dimm_get_formatN
+  ndctl_dimm_get_formats
+  ndctl_dimm_get_subsystem_device
+  ndctl_dimm_get_subsystem_revision
+  ndctl_dimm_get_subsystem_vendor
+  ndctl_dimm_get_unique_id
+  ndctl_get_daxctl_ctx
+  ndctl_namespace_get_dax
+  ndctl_namespace_get_dax
+  ndctl_region_get_dax_seed
+  daxctl_dev_get_devname
+  daxctl_dev_get_first
+  daxctl_dev_get_id
+  daxctl_dev_get_major
+  daxctl_dev_get_minor
+  daxctl_dev_get_next
+  daxctl_dev_get_region
+  daxctl_dev_get_size
+  daxctl_get_log_priority
+  daxctl_get_userdata
+  daxctl_new
+  daxctl_new_region
+  daxctl_ref
+  daxctl_region_get_ctx
+  daxctl_region_get_id
+  daxctl_region_get_uuid
+  daxctl_region_ref
+  daxctl_region_unref
+  daxctl_region_unref
+  daxctl_set_log_fn
+  daxctl_set_log_priority
+  daxctl_set_userdata
+  daxctl_unref
+
+---

Old:

  ndctl-52.tar.gz

New:

  ndctl-53.1.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.Bzfa2b/_old  2016-05-31 12:24:53.0 +0200
+++ /var/tmp/diff_new_pack.Bzfa2b/_new  2016-05-31 12:24:53.0 +0200
@@ -22,7 +22,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:52
+Version:53.1
 Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0
@@ -99,12 +99,15 @@
 %doc  licenses/GPLv2 licenses/BSD-MIT licenses/CC0
 %{_bindir}/ndctl
 %{_mandir}/man1/*
+%dir %{_datarootdir}/bash-completion/completions/
+%{_datarootdir}/bash-completion/completions/ndctl
 
 %files -n %lname
 %defattr(-,root,root)
 %doc README.md
 %doc  COPYING licenses/BSD-MIT licenses/CC0
 %{_libdir}/libndctl.so.*
+%{_libdir}/libdaxctl.so.*
 
 %files -n %dname
 %defattr(-,root,root)
@@ -112,5 +115,8 @@
 %{_includedir}/ndctl/
 %{_libdir}/libndctl.so
 %{_libdir}/pkgconfig/libndctl.pc
+%{_includedir}/daxctl/
+%{_libdir}/libdaxctl.so
+%{_libdir}/pkgconfig/libdaxctl.pc
 
 %changelog

++ ndctl-52.tar.gz -> ndctl-53.1.tar.gz ++
 21361 lines of diff (skipped)




commit ndctl for openSUSE:Factory

2016-04-30 Thread h_root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2016-04-30 23:31:12

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-04-05 
10:43:20.0 +0200
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2016-04-30 
23:31:17.0 +0200
@@ -1,0 +2,11 @@
+Wed Apr 27 11:47:49 UTC 2016 - jthumsh...@suse.com
+
+- NVDIMM is not defined for any CPU architecture other than x86_64 at the
+  moment.
+
+---
+Sun Apr 24 06:43:26 UTC 2016 - jeng...@inai.de
+
+- RPM group and description update
+
+---



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.cmAjFN/_old  2016-04-30 23:31:18.0 +0200
+++ /var/tmp/diff_new_pack.cmAjFN/_new  2016-04-30 23:31:18.0 +0200
@@ -23,13 +23,14 @@
 
 Name:   ndctl
 Version:52
-Release:1%{?dist}
+Release:1
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0
 Group:  Hardware/Other
 Url:https://github.com/pmem/ndctl
 # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
 Source0:%{name}-%{version}.tar.gz
+ExclusiveArch:  x86_64
 
 BuildRequires:  asciidoc
 BuildRequires:  autoconf
@@ -43,30 +44,35 @@
 BuildRequires:  pkgconfig(uuid)
 
 %description
-Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
-subsystem defines a kernel device model and control message interface for
-platform NVDIMM resources like those defined by the ACPI 6.0 NFIT (NVDIMM
-Firmware Interface Table).
-
+Utility library for managing the "libnvdimm" subsystem, used for
+platform NVDIMM resources like those defined by the ACPI 6.0 NFIT
+(NVDIMM Firmware Interface Table).
 
 %package -n %dname
 Summary:Development files for libndctl
 License:LGPL-2.1+
-Group:  Development/Libraries/Other
-Requires:   %{lname}%{?_isa} = %{version}-%{release}
+Group:  Development/Libraries/C and C++
+Requires:   %lname = %version-%release
 
 %description -n %dname
+Utility library for managing the "libnvdimm" subsystem, which defines
+a kernel device model and control message interface for platform
+NVDIMM resources like those defined by the ACPI 6.0 NFIT (NVDIMM
+Firmware Interface Table).
+
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
-
 %package -n %lname
 Summary:Management library for "libnvdimm" subsystem devices 
(Non-volatile Memory)
 License:LGPL-2.1+
 Group:  System/Libraries
 
 %description -n %lname
-Libraries for %{name}.
+Utility library for managing the "libnvdimm" subsystem, which defines
+a kernel device model and control message interface for platform
+NVDIMM resources like those defined by the ACPI 6.0 NFIT (NVDIMM
+Firmware Interface Table).
 
 %prep
 %setup
@@ -79,7 +85,7 @@
 
 %install
 %make_install
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+find "%buildroot" -type f -name "*.la" -delete
 
 %check
 make check




commit ndctl for openSUSE:Factory

2016-04-05 Thread h_root
Hello community,

here is the log from the commit of package ndctl for openSUSE:Factory checked 
in at 2016-04-05 10:43:15

Comparing /work/SRC/openSUSE:Factory/ndctl (Old)
 and  /work/SRC/openSUSE:Factory/.ndctl.new (New)


Package is "ndctl"

Changes:

--- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes  2016-03-17 
16:48:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2016-04-05 
10:43:20.0 +0200
@@ -1,0 +2,22 @@
+Wed Mar 30 08:33:54 UTC 2016 - jthumsh...@suse.com
+
+- Update to v52
+  This release incorporates the capabilities of the 4.6 kernel (most
+  prominently 'clear poison' support), and adds the below features and
+  fixes:
+  
+  New apis:
+  ndctl_invalidate
+  ndctl_cmd_ars_cap_get_range
+  ndctl_bus_cmd_new_clear_error
+  ndctl_cmd_clear_error_get_cleared
+  ndctl_namespace_get_resource
+  ndctl_pfn_get_size
+  ndctl_pfn_get_resource
+  
+  Api fixes:
+  ndctl_bus_cmd_new_ars_status - output buffer sizing fix
+  ndctl_bus_cmd_new_ars_status - input validation
+  ndctl_cmd_ars_in_progress - invalidate state after checking
+
+---

Old:

  ndctl-51.tar.gz

New:

  ndctl-52.tar.gz



Other differences:
--
++ ndctl.spec ++
--- /var/tmp/diff_new_pack.Wj5FxS/_old  2016-04-05 10:43:21.0 +0200
+++ /var/tmp/diff_new_pack.Wj5FxS/_new  2016-04-05 10:43:21.0 +0200
@@ -22,7 +22,7 @@
 %define dname libndctl-devel
 
 Name:   ndctl
-Version:51
+Version:52
 Release:1%{?dist}
 Summary:Manage "libnvdimm" subsystem devices (Non-volatile Memory)
 License:GPL-2.0

++ ndctl-51.tar.gz -> ndctl-52.tar.gz ++
 3016 lines of diff (skipped)