diff options
author | Karel Zak | 2010-01-18 12:50:36 +0100 |
---|---|---|
committer | Karel Zak | 2010-01-18 12:50:36 +0100 |
commit | 108013b4178a6ad992d4c86fffb0d9351b8c02c5 (patch) | |
tree | 3958ee28d7645c63553d31c7291c14f0e97d509c /shlibs/blkid/src/blkidP.h | |
parent | fdisk: don't include scsi.h (diff) | |
download | kernel-qcow2-util-linux-108013b4178a6ad992d4c86fffb0d9351b8c02c5.tar.gz kernel-qcow2-util-linux-108013b4178a6ad992d4c86fffb0d9351b8c02c5.tar.xz kernel-qcow2-util-linux-108013b4178a6ad992d4c86fffb0d9351b8c02c5.zip |
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>
Diffstat (limited to 'shlibs/blkid/src/blkidP.h')
-rw-r--r-- | shlibs/blkid/src/blkidP.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shlibs/blkid/src/blkidP.h b/shlibs/blkid/src/blkidP.h index 90900e27e..20cf765ab 100644 --- a/shlibs/blkid/src/blkidP.h +++ b/shlibs/blkid/src/blkidP.h @@ -357,7 +357,9 @@ extern blkid_dev blkid_new_dev(void); extern void blkid_free_dev(blkid_dev dev); /* probe.c */ -unsigned char *blkid_probe_get_buffer(blkid_probe pr, +extern int blkid_probe_is_tiny(blkid_probe pr); + +extern unsigned char *blkid_probe_get_buffer(blkid_probe pr, blkid_loff_t off, blkid_loff_t len); extern unsigned char *blkid_probe_get_sector(blkid_probe pr, unsigned int sector); |