add '-r' option to force devmap reload
authorChristophe Varoqui <christophe.varoqui@free.fr>
Mon, 19 May 2008 22:07:45 +0000 (00:07 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 21 May 2008 20:01:17 +0000 (22:01 +0200)
commita4d0b34e841aae7e0722ba532ca46ff78b0f106e
tree99b2e228bed49d7bc36e0f275c5975ce06c0898c
parentdb06d678fedfcefcf202b14b9aec0c06a99ee1bc
add '-r' option to force devmap reload

This takes care of updating the write-protection flag
of the devmap in case the write-prot of the underlying
paths has changed (and the kernel somehow has discovered
so).

Now a RO->RW change scenario for a multipathed device can
be treated with :
1/ echo 1 >/sys/block/XX/device/rescan on all paths to dev
2/ multipath -r dev

Which minimaly fulfills my needs with Symmetrix SRDF spliting
in interim of more collaboration from other subsystems.
libmultipath/config.h
libmultipath/configure.c
libmultipath/configure.h
multipath/main.c
multipathd/main.c