91daccef68
(git commit id: cb0f7127ba90ab5e8e71fc534a0a16cdbe96a88f) Add 0001-RH-remove_callout.patch * multipath no longer uses the getuid callout. It now gets the wwid from the udev database or the environment variables Add 0004-RH-fix-cciss-names.patch * convert cciss device names from cciss/cXdY to sysfs style cciss!cXdY Split 0009-RH-add-find-multipaths.patch into 0002-RH-add-wwids-file.patch and 0010-RH-add-find-multipaths.patch Add 0016-RH-change-configs.patch * default fast_io_fail to 5 and don't set the path selector in the builtin configs. Resolves: bz #831978
35 lines
767 B
Diff
35 lines
767 B
Diff
---
|
|
multipath/main.c | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
Index: multipath-tools-120518/multipath/main.c
|
|
===================================================================
|
|
--- multipath-tools-120518.orig/multipath/main.c
|
|
+++ multipath-tools-120518/multipath/main.c
|
|
@@ -409,6 +409,16 @@ get_dev_type(char *dev) {
|
|
return DEV_DEVMAP;
|
|
}
|
|
|
|
+static void
|
|
+convert_dev(char *dev)
|
|
+{
|
|
+ char *ptr = strstr(dev, "cciss/");
|
|
+ if (ptr) {
|
|
+ ptr += 5;
|
|
+ *ptr = '!';
|
|
+ }
|
|
+}
|
|
+
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
@@ -514,6 +524,8 @@ main (int argc, char *argv[])
|
|
|
|
strncpy(conf->dev, argv[optind], FILE_NAME_SIZE);
|
|
conf->dev_type = get_dev_type(conf->dev);
|
|
+ if (conf->dev_type == DEV_DEVNODE)
|
|
+ convert_dev(conf->dev);
|
|
}
|
|
conf->daemon = 0;
|
|
|