diff options
author | Karel Zak | 2009-01-27 17:25:06 +0100 |
---|---|---|
committer | Karel Zak | 2009-02-11 23:35:25 +0100 |
commit | a2f01a1c0ba7e8d6f546133195ee759715ef42f7 (patch) | |
tree | ac4b51b12299821f80f731db6c62b10049296c34 /libs/blkid/src/probers/udf.c | |
parent | blkid: add lvm2 reg.test (diff) | |
download | kernel-qcow2-util-linux-a2f01a1c0ba7e8d6f546133195ee759715ef42f7.tar.gz kernel-qcow2-util-linux-a2f01a1c0ba7e8d6f546133195ee759715ef42f7.tar.xz kernel-qcow2-util-linux-a2f01a1c0ba7e8d6f546133195ee759715ef42f7.zip |
blkid: add blkid_do_safeprobe()
The function blkid_do_probe() is able to detect more filesystems on
the device
while(blkid_do_probe(pr) == 0)
...
but in many cases we need only one exact answer, and we also need to
be sure that there is not any other FS on the device.
For example it's possible to create valid LUKS (or vfat, ...) header
and valid linux swap header on the same device -- in such case the
device can be interpreted (by mount/swapon) in two completely
different ways. An ambivalent result is always error -- the library
never returns such result.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libs/blkid/src/probers/udf.c')
-rw-r--r-- | libs/blkid/src/probers/udf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/blkid/src/probers/udf.c b/libs/blkid/src/probers/udf.c index de35b1a0e..5f4046d6d 100644 --- a/libs/blkid/src/probers/udf.c +++ b/libs/blkid/src/probers/udf.c @@ -144,6 +144,7 @@ const struct blkid_idinfo udf_idinfo = .name = "udf", .usage = BLKID_USAGE_FILESYSTEM, .probefunc = probe_udf, + .flags = BLKID_IDINFO_TOLERANT, .magics = { { .magic = "BEA01", .len = 5, .kboff = 32, .sboff = 1 }, |