summaryrefslogtreecommitdiffstats
path: root/uevent_fix.patch
diff options
context:
space:
mode:
authorMike Snitzer <msnitzer@fedoraproject.org>2009-05-06 20:01:01 +0000
committerMike Snitzer <msnitzer@fedoraproject.org>2009-05-06 20:01:01 +0000
commitcbdffc7ea04d181060f56ca3ebf122552b26b51f (patch)
treeace6b69d19d52e33207f5e569d4f55415e920d08 /uevent_fix.patch
parentb3b10f9bcf3c4766676a5a35da7e8fb767130a62 (diff)
Updated to latest upstream 0.4.9 code: multipath-tools-090429.tgz (gitdevice-mapper-multipath-0_4_9-1_fc12
commit id: 7395bcda3a218df2eab1617df54628af0dc3456e)
Diffstat (limited to 'uevent_fix.patch')
-rw-r--r--uevent_fix.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/uevent_fix.patch b/uevent_fix.patch
deleted file mode 100644
index 78c47e8..0000000
--- a/uevent_fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Index: multipath-tools/multipathd/main.c
-===================================================================
---- multipath-tools.orig/multipathd/main.c
-+++ multipath-tools/multipathd/main.c
-@@ -602,14 +602,20 @@ uxsock_trigger (char * str, char ** repl
- static int
- uev_discard(char * devpath)
- {
-+ char *tmp;
- char a[10], b[10];
-
- /*
- * keep only block devices, discard partitions
- */
-- if (sscanf(devpath, "/block/%10s", a) != 1 ||
-- sscanf(devpath, "/block/%10[^/]/%10s", a, b) == 2) {
-- condlog(4, "discard event on %s", devpath);
-+ tmp = strstr(devpath, "/block/");
-+ if (tmp == NULL){
-+ condlog(0, "no /block/ in '%s'", devpath);
-+ return 1;
-+ }
-+ if (sscanf(tmp, "/block/%10s", a) != 1 ||
-+ sscanf(tmp, "/block/%10[^/]/%10s", a, b) == 2) {
-+ condlog(0, "discard event on %s", devpath);
- return 1;
- }
- return 0;