[device-mapper-multipath] device-mapper-multipath-0.4.9-40

Benjamin Marzinski bmarzins at fedoraproject.org
Wed Dec 12 22:31:14 UTC 2012


commit e66c5ca2b02d6a08234f48cc09e2ae43b756a023
Author: Benjamin Marzinski <bmarzins at redhat.com>
Date:   Wed Dec 12 10:54:10 2012 -0600

    device-mapper-multipath-0.4.9-40
    
    Add 0032-RH-make-path-fd-readonly.patch
      * revert change made when adding persistent reservations, so that path fds
        are again opened O_RDONLY

 0032-RH-make-path-fd-readonly.patch |   17 +++++++++++++++++
 device-mapper-multipath.spec        |    9 ++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/0032-RH-make-path-fd-readonly.patch b/0032-RH-make-path-fd-readonly.patch
new file mode 100644
index 0000000..2c14fab
--- /dev/null
+++ b/0032-RH-make-path-fd-readonly.patch
@@ -0,0 +1,17 @@
+---
+ libmultipath/discovery.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: multipath-tools-120821/libmultipath/discovery.c
+===================================================================
+--- multipath-tools-120821.orig/libmultipath/discovery.c
++++ multipath-tools-120821/libmultipath/discovery.c
+@@ -882,7 +882,7 @@ pathinfo (struct path *pp, vector hwtabl
+ 	 * fetch info not available through sysfs
+ 	 */
+ 	if (pp->fd < 0)
+-		pp->fd = open(udev_device_get_devnode(pp->udev), O_RDWR);
++		pp->fd = open(udev_device_get_devnode(pp->udev), O_RDONLY);
+ 
+ 	if (pp->fd < 0) {
+ 		condlog(4, "Couldn't open node for %s: %s",
diff --git a/device-mapper-multipath.spec b/device-mapper-multipath.spec
index 2087dc8..fa7b355 100644
--- a/device-mapper-multipath.spec
+++ b/device-mapper-multipath.spec
@@ -1,7 +1,7 @@
 Summary: Tools to manage multipath devices using device-mapper
 Name: device-mapper-multipath
 Version: 0.4.9
-Release: 39%{?dist}
+Release: 40%{?dist}
 License: GPL+
 Group: System Environment/Base
 URL: http://christophe.varoqui.free.fr/
@@ -39,6 +39,7 @@ Patch0028: 0028-RH-storagetek-config.patch
 Patch0029: 0029-RH-kpartx-retry.patch
 Patch0030: 0030-RH-early-blacklist.patch
 Patch0031: 0031-RHBZ-882060-fix-null-strncmp.patch
+Patch0032: 0032-RH-make-path-fd-readonly.patch
 
 # runtime
 Requires: %{name}-libs = %{version}-%{release}
@@ -122,6 +123,7 @@ kpartx manages partition creation and removal for device-mapper devices.
 %patch0029 -p1
 %patch0030 -p1
 %patch0031 -p1
+%patch0032 -p1
 cp %{SOURCE1} .
 
 %build
@@ -213,6 +215,11 @@ bin/systemctl --no-reload enable multipathd.service >/dev/null 2>&1 ||:
 %{_mandir}/man8/kpartx.8.gz
 
 %changelog
+* Fri Nov 30 2012 Benjamin Marzinski <bmarizns at redhat.com> 0.4.9-40
+- Add 0032-RH-make-path-fd-readonly.patch
+  * revert change made when adding persistent reservations, so that path fds
+    are again opened O_RDONLY
+
 * Fri Nov 30 2012 Benjamin Marzinski <bmarizns at redhat.com> 0.4.9-39
 - Add 0031-RHBZ-882060-fix-null-strncmp.patch
 


More information about the scm-commits mailing list