Read directly from sysfs when checking the device size
authorHannes Reinecke <hare@suse.de>
Tue, 16 Jul 2013 07:13:05 +0000 (09:13 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:50:42 +0000 (21:50 +0200)
commitb812880ac0ee54e922b239af7ceefca9b2bd2c5f
tree82190440ea544084c69079510c02cd2688f1883c
parent7e8aac6509b39116e0bb49b2c6f738dd94b63d9f
Read directly from sysfs when checking the device size

Device sizes might change, so we need to be reading from sysfs
directly to avoid udev still caching the old value.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/discovery.c
libmultipath/sysfs.c