libmultipath: do not fallback to search /proc/partitions
authorHannes Reinecke <hare@suse.de>
Fri, 28 Jan 2011 08:21:15 +0000 (09:21 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 10:02:33 +0000 (12:02 +0200)
commit1e79548232cbe448d2fa22b3f1bdf6353f961c85
tree927f6faf27ff5bc8ada1c09b93069082f7b7ed90
parent6b16726c299a7adc7d0d2b9a4da001928c04c341
libmultipath: do not fallback to search /proc/partitions

devt2devname() reverse-maps the device number to the
device name. However, when a device is not found in
/sys/block/dev it's pointless to retry searching for
it in /proc/partitions, as both carry the same information.
And the search in /proc/partitions is only meant for
systems not providing /sys/block.

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