]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkid: stop scanning on I/O error
authorHannes Reinecke <hare@suse.de>
Thu, 20 Mar 2014 10:03:49 +0000 (11:03 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2014 12:43:40 +0000 (13:43 +0100)
commit296d96e20e565e497e9510e6ac9b71e0a0ca447d
tree02857de3a8255909f175f7c48ef3738084b71c94
parent422f93bfbb5df358fad3fedfe9eb0247cbf3cb14
blkid: stop scanning on I/O error

Whenever we fail to read from a device it's pointless to
continue with probing; we should be failing immediately.
Otherwise the system will continue logging I/O errors.

This patch updates the probe functions to return the
negative error number on error and BLKID_PROBE_NONE
if not found.

[kzak@redhat.com: - fix s/return errno/return -errno/]

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/blkidP.h
libblkid/src/partitions/partitions.c
libblkid/src/probe.c
libblkid/src/superblocks/superblocks.c