multipath: fix setting sysfs fc timeout parameters
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 20 Aug 2012 22:26:46 +0000 (17:26 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 21 Aug 2012 17:39:32 +0000 (19:39 +0200)
commit050b24b33d3c60e29f7820d2fb75e84a9edde528
tree2378a12da4877d5b3030c90f163ba7524acb57ae
parent1dafbbc353472536ba1ab5b1495048006a680752
multipath: fix setting sysfs fc timeout parameters

Multipath was accidentally trying to write to the directory where
dev_loss_tmo and fast_io_fail_tmo were located instead to the files
themselves. Also, if dev_loss_tmo was unset, it was trying to set it
to 0. Finally, it wasn't correctly checking for errors in setting
the files.  This patch fixes these issues.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/discovery.c
libmultipath/sysfs.c