]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/probe.c
blkid: support detection of multiple signatures
authorKarel Zak <kzak@redhat.com>
Thu, 20 Nov 2008 12:00:43 +0000 (13:00 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:21:47 +0000 (23:21 +0100)
commita0fc685c9cddac52085b9d3127f7cdce6174560c
treeaeedc927c27c468ae908be9dc0bc89ed78acbfdc
parent06da6d00e4ea4eeeecfa3d4cc046d6383e041ed3
blkid: support detection of multiple signatures

The classic way is to return the first successfully detected signature
(filesystem/raid).  Unfortunately, sometimes we need to check for all
possible signatures, because on some volumes (e.g. CD-ROMs) is possible
to store multiple filesystems.

Sometimes we need to check for all filesystems to avoid situation that
we return wrong result (e.g. swap and FAT on the same device).

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