e66c5ca2b0
Add 0032-RH-make-path-fd-readonly.patch * revert change made when adding persistent reservations, so that path fds are again opened O_RDONLY
18 lines
642 B
Diff
18 lines
642 B
Diff
---
|
|
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",
|