public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libnvme] rawhide: * Mon Aug 03 2026 Tomas Bzatek <tbzatek@redhat.com> - 1.16.2-1
@ 2026-08-03 17:02 Tomas Bzatek
  0 siblings, 0 replies; only message in thread
From: Tomas Bzatek @ 2026-08-03 17:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libnvme
            Branch : rawhide
            Commit : e6900dd22716d47e82c07f8ba959a749cd88ca24
            Author : Tomas Bzatek <tbzatek@redhat.com>
            Date   : 2026-08-03T19:01:49+02:00
            Stats  : +50/-5 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/libnvme/c/e6900dd22716d47e82c07f8ba959a749cd88ca24?branch=rawhide

            Log:
            * Mon Aug 03 2026 Tomas Bzatek <tbzatek@redhat.com> - 1.16.2-1
- Upstream v1.16.2 release

---
diff --git a/.gitignore b/.gitignore
index e9ce421..b3639d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,4 @@
 /libnvme-1.14.tar.gz
 /libnvme-1.15.tar.gz
 /libnvme-1.16.1.tar.gz
+/libnvme-1.16.2.tar.gz

diff --git a/0001-tree-cleanup-paths-when-freeing-namespace.patch b/0001-tree-cleanup-paths-when-freeing-namespace.patch
new file mode 100644
index 0000000..f875443
--- /dev/null
+++ b/0001-tree-cleanup-paths-when-freeing-namespace.patch
@@ -0,0 +1,40 @@
+diff --git a/src/nvme/tree.c b/src/nvme/tree.c
+index bc83648..98822d0 100644
+--- a/src/nvme/tree.c
++++ b/src/nvme/tree.c
+@@ -632,11 +632,18 @@ nvme_path_t nvme_namespace_next_path(nvme_ns_t ns, nvme_path_t p)
+ 
+ static void __nvme_free_ns(struct nvme_ns *n)
+ {
++	struct nvme_path *p, *_p;
++
+ 	list_del_init(&n->entry);
+ 	nvme_ns_release_fd(n);
+ 	free(n->generic_name);
+ 	free(n->name);
+ 	free(n->sysfs_dir);
++	nvme_namespace_for_each_path_safe(n, p, _p) {
++		list_del_init(&p->nentry);
++		p->n = NULL;
++	}
++	list_head_init(&n->head->paths);
+ 	free(n->head->sysfs_dir);
+ 	free(n->head);
+ 	free(n);
+@@ -3033,16 +3040,8 @@ static int nvme_subsystem_scan_namespace(nvme_root_t r, nvme_subsystem_t s,
+ 		return -1;
+ 	}
+ 	nvme_subsystem_for_each_ns_safe(s, _n, __n) {
+-		struct nvme_path *p, *_p;
+-
+ 		if (strcmp(n->name, _n->name))
+ 			continue;
+-		/* Detach paths */
+-		nvme_namespace_for_each_path_safe(_n, p, _p) {
+-			list_del_init(&p->nentry);
+-			p->n = NULL;
+-		}
+-		list_head_init(&_n->head->paths);
+ 		__nvme_free_ns(_n);
+ 	}
+ 	n->s = s;

diff --git a/libnvme.spec b/libnvme.spec
index 119fa6a..598082a 100644
--- a/libnvme.spec
+++ b/libnvme.spec
@@ -3,11 +3,12 @@
 
 Name:    libnvme
 Summary: Linux-native nvme device management library
-Version: 1.16.1
-Release: 6%{?dist}
+Version: 1.16.2
+Release: 1%{?dist}
 License: LGPL-2.1-or-later
 URL:     https://github.com/linux-nvme/libnvme
 Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
+Patch0:  0001-tree-cleanup-paths-when-freeing-namespace.patch
 
 BuildRequires: gcc gcc-c++
 BuildRequires: swig
@@ -76,9 +77,9 @@ rm -r %{buildroot}%{_pkgdocdir}/html/{.buildinfo,.doctrees/}
 %files
 %license COPYING ccan/licenses/*
 %{_libdir}/libnvme.so.1
-%{_libdir}/libnvme.so.1.16.1
+%{_libdir}/libnvme.so.1.16.2
 %{_libdir}/libnvme-mi.so.1
-%{_libdir}/libnvme-mi.so.1.16.1
+%{_libdir}/libnvme-mi.so.1.16.2
 
 %files devel
 %{_libdir}/libnvme.so
@@ -98,6 +99,9 @@ rm -r %{buildroot}%{_pkgdocdir}/html/{.buildinfo,.doctrees/}
 %{python3_sitearch}/libnvme/*
 
 %changelog
+* Mon Aug 03 2026 Tomas Bzatek <tbzatek@redhat.com> - 1.16.2-1
+- Upstream v1.16.2 release
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 1.16.1-6
 - Rebuilt for Python 3.15.0b4 ABI change
 

diff --git a/sources b/sources
index c239484..3a97390 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libnvme-1.16.1.tar.gz) = 92113cd62af53366fb63f2f385c2059dede171fef4d9a240fa941382e338d2941e90aeb40ae2d202311d7b531e41181839f45f8ab4da1b3a79ce4b597fcd4993
+SHA512 (libnvme-1.16.2.tar.gz) = e3a4b6d4906e7dc5f894042adc6490bc7e71bf096d39f216c8c742bc5c527a701a87cb3ee8eea305fa557d1b312513c3394f7d6030000e320a2d668c53215fb5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-03 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 17:02 [rpms/libnvme] rawhide: * Mon Aug 03 2026 Tomas Bzatek <tbzatek@redhat.com> - 1.16.2-1 Tomas Bzatek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox