]> err.no Git - util-linux/commit
libblkid: restrict RAID/FS proving for small devices (1.4MiB)
authorKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2010 11:50:36 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2010 08:58:56 +0000 (09:58 +0100)
commit490340188b929188d1d877bd1ae3f25aa06cd026
tree56caf7fc96b6486e3ca47d3906598f5bf9f75327
parenta3e8c8782a6211d843e86fea10cdb678a2ee6fd0
libblkid: restrict RAID/FS proving for small devices (1.4MiB)

 - don't ignore @size in blkid_probe_set_device()
 - ignore extremely small devices (<= 1024 bytes, e.g. extended partitions)
 - don't use safe probing for small devices
 - don't probe for RAIDs on small devices

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/probe.c
shlibs/blkid/src/superblocks/superblocks.c