diff options
author | Moger, Babu <Babu.Moger@lsi.com> | 2011-04-08 13:06:15 -0600 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2011-04-09 09:49:47 +0200 |
commit | 8092493275bf6733e1e9db7922ce208026a70e33 (patch) | |
tree | f60ea8a601e5510ee56b03c44b0c4572fc9ae363 | |
parent | 1fca159d4589bd37c3ef575be05a0085ece82f77 (diff) | |
download | multipath-tools-8092493275bf6733e1e9db7922ce208026a70e33.tar.gz |
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>
-rw-r--r-- | libmultipath/prioritizers/rdac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmultipath/prioritizers/rdac.c b/libmultipath/prioritizers/rdac.c index 27d51ab..41ea887 100644 --- a/libmultipath/prioritizers/rdac.c +++ b/libmultipath/prioritizers/rdac.c @@ -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); } |