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
This commit is contained in:
parent
2aa6dff826
commit
e66c5ca2b0
17
0032-RH-make-path-fd-readonly.patch
Normal file
17
0032-RH-make-path-fd-readonly.patch
Normal file
@ -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",
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tools to manage multipath devices using device-mapper
|
Summary: Tools to manage multipath devices using device-mapper
|
||||||
Name: device-mapper-multipath
|
Name: device-mapper-multipath
|
||||||
Version: 0.4.9
|
Version: 0.4.9
|
||||||
Release: 39%{?dist}
|
Release: 40%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://christophe.varoqui.free.fr/
|
URL: http://christophe.varoqui.free.fr/
|
||||||
@ -39,6 +39,7 @@ Patch0028: 0028-RH-storagetek-config.patch
|
|||||||
Patch0029: 0029-RH-kpartx-retry.patch
|
Patch0029: 0029-RH-kpartx-retry.patch
|
||||||
Patch0030: 0030-RH-early-blacklist.patch
|
Patch0030: 0030-RH-early-blacklist.patch
|
||||||
Patch0031: 0031-RHBZ-882060-fix-null-strncmp.patch
|
Patch0031: 0031-RHBZ-882060-fix-null-strncmp.patch
|
||||||
|
Patch0032: 0032-RH-make-path-fd-readonly.patch
|
||||||
|
|
||||||
# runtime
|
# runtime
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
@ -122,6 +123,7 @@ kpartx manages partition creation and removal for device-mapper devices.
|
|||||||
%patch0029 -p1
|
%patch0029 -p1
|
||||||
%patch0030 -p1
|
%patch0030 -p1
|
||||||
%patch0031 -p1
|
%patch0031 -p1
|
||||||
|
%patch0032 -p1
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -213,6 +215,11 @@ bin/systemctl --no-reload enable multipathd.service >/dev/null 2>&1 ||:
|
|||||||
%{_mandir}/man8/kpartx.8.gz
|
%{_mandir}/man8/kpartx.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 30 2012 Benjamin Marzinski <bmarizns@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@redhat.com> 0.4.9-39
|
* Fri Nov 30 2012 Benjamin Marzinski <bmarizns@redhat.com> 0.4.9-39
|
||||||
- Add 0031-RHBZ-882060-fix-null-strncmp.patch
|
- Add 0031-RHBZ-882060-fix-null-strncmp.patch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user