From ce1c220981bb42ab4a4e8a53251867188ef8861e Mon Sep 17 00:00:00 2001 From: Benjamin Marzinski Date: Tue, 4 Oct 2011 23:15:05 -0500 Subject: [PATCH] multipath: get right sysfs value for checker_timeout sysfs_get_timeout() wasn't looking in the correct directory for the checker timeout value. It was looking at .../block//timeout, instead of .../block//device/timeout Signed-off-by: Benjamin Marzinski --- libmultipath/discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 1de5353..dac97a3 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -166,7 +166,7 @@ sysfs_get_timeout(struct sysfs_device *dev, unsigned int *timeout) if (safe_sprintf(attr_path, "%s/device", dev->devpath)) return 1; - len = sysfs_attr_get_value(dev->devpath, "timeout", attr, NAME_SIZE); + len = sysfs_attr_get_value(attr_path, "timeout", attr, NAME_SIZE); if (!len) { condlog(3, "%s: No timeout value in sysfs", dev->devpath); return 1; -- 2.34.1