Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   multipath-tools: report different piority value for rdac if io-shipping is enabled (http://www.linux-archive.org/device-mapper-development/511777-multipath-tools-report-different-piority-value-rdac-if-io-shipping-enabled.html)

"Moger, Babu" 04-08-2011 07:06 PM

multipath-tools: report different piority value for rdac if io-shipping is enabled
 
This patch adds code to report different priority value if the storage is configured with io-shipping.
It sets the bit 3 if io-shipping is enabled. This is to differentiate between different modes.

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>

---
--- multipath-tools/libmultipath/prioritizers/rdac.c.orig 2011-04-01 17:06:25.000000000 -0500
+++ multipath-tools/libmultipath/prioritizers/rdac.c 2011-04-01 17:30:27.000000000 -0500
@@ -81,6 +81,10 @@ int rdac_prio(const char *dev, int fd)
break;
}

+ /* For ioship mode set the bit 3 (00001000) */
+ if ((sense_buffer[8] >> 5) & 0x01)
+ ret |= 0x08;
+
out:
return(ret);
}



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


All times are GMT. The time now is 05:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.