Fix for setting '0' to fast_io_fail
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Mon, 12 Mar 2012 11:43:55 +0000 (20:43 +0900)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 12 Mar 2012 20:09:29 +0000 (21:09 +0100)
commitf49221abb9f97bd14f1cdee6206cbd068249396a
tree8ee37301bc6138af874bbcbc4db2881c298509ae
parent0515ebb621901c881e4d2a34ab2aa01f47e81eb8
Fix for setting '0' to fast_io_fail

Hi Christophe,

In kernel, '0' is valid value for fast_io_fail, meaning immediate
termination of ios on rport delete.
However, '0' is treated as 'not-configured' in various places of
multipath-tools and it is not possible to set 0 to fast_io_fail.

Attached patch fixes that by introducing MP_FAST_IO_FAIL_ZERO
as internal representation of zero value.

--
Jun'ichi Nomura, NEC Corporation
libmultipath/config.h
libmultipath/dict.c
libmultipath/discovery.c
libmultipath/propsel.c