multipath-tools: report PATH_UP for both path groups in rdac if io-shipping is enabled
authorMoger, Babu <Babu.Moger@lsi.com>
Fri, 8 Apr 2011 19:04:45 +0000 (13:04 -0600)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Sat, 9 Apr 2011 07:49:47 +0000 (09:49 +0200)
This patch reports PATH_UP for both the path groups if the RDAC storage is configured with i/o shipping.

Signed-off-by: Babu Moger <babu.moger@lsi.com>
Reviewed-by: Yanling Qi <yanling.qi@lsi.com>
Reviewed-by: Somasundaram Krishnasamy <Somasundaram.Krishnasamy@lsi.com>
libmultipath/checkers/rdac.c

index 1db3bc0..c082b84 100644 (file)
@@ -218,7 +218,11 @@ libcheck_check (struct checker * c)
                goto done;
        }
 
-       ret = ((inq.avtcvp & 0x1) ? PATH_UP : PATH_GHOST);
+       /* If owner set or ioship mode is enabled return PATH_UP always */
+       if ((inq.avtcvp & 0x1) || ((inq.avtcvp >> 5) & 0x1))
+               ret = PATH_UP;
+       else
+               ret = PATH_GHOST;
 
 done:
        switch (ret) {