multipath bug and patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   If a device returns an empty string for inquiry data the current multipath tool ignores it on reload.  I added the following patch and I can hotplug these devices that don't return all the proper data.

diff --git a/libmultipath/util.c b/libmultipath/util.c
index ac0d1b2..045e660 100644
--- a/libmultipath/util.c
+++ b/libmultipath/util.c
@@ -17,6 +17,10 @@ strchop(char *str)
 
        for (i=strlen(str)-1; i >=0 && isspace(str[i]); --i) ;
        str[++i] = '\0';
+       if(strlen(str)==0)
+       {
+               strcpy(str,"none");
+       }
        return strlen(str);
 }

James Shoemaker
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux