]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - multipath-tools/patches/0004-RH-fix-cciss-names.patch
ppp: Re-add ifname patch
[people/ms/ipfire-3.x.git] / multipath-tools / patches / 0004-RH-fix-cciss-names.patch
1 ---
2 multipath/main.c | 12 ++++++++++++
3 1 file changed, 12 insertions(+)
4
5 Index: multipath-tools-120518/multipath/main.c
6 ===================================================================
7 --- multipath-tools-120518.orig/multipath/main.c
8 +++ multipath-tools-120518/multipath/main.c
9 @@ -409,6 +409,16 @@ get_dev_type(char *dev) {
10 return DEV_DEVMAP;
11 }
12
13 +static void
14 +convert_dev(char *dev)
15 +{
16 + char *ptr = strstr(dev, "cciss/");
17 + if (ptr) {
18 + ptr += 5;
19 + *ptr = '!';
20 + }
21 +}
22 +
23 int
24 main (int argc, char *argv[])
25 {
26 @@ -514,6 +524,8 @@ main (int argc, char *argv[])
27
28 strncpy(conf->dev, argv[optind], FILE_NAME_SIZE);
29 conf->dev_type = get_dev_type(conf->dev);
30 + if (conf->dev_type == DEV_DEVNODE)
31 + convert_dev(conf->dev);
32 }
33 conf->daemon = 0;
34