]> 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>
Mon, 18 Jan 2010 11:50:36 +0000 (12:50 +0100)
commit108013b4178a6ad992d4c86fffb0d9351b8c02c5
tree3958ee28d7645c63553d31c7291c14f0e97d509c
parent2c4b9254e911d18196c7bec8b4c84c2e65b552ea
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