]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/superblocks/xfs.c
libblkid: don't interpret regual XFS as external xfs log
authorKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 13:33:26 +0000 (15:33 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 13:33:26 +0000 (15:33 +0200)
commited5a064d2ef8660c6cf329d9f57a39afc59ff675
treec98b89d1c8dc5f00140c5b1fc76459577e3966a1
parent42d3e8163193baa3c9005ede794d60a4cb039cf5
libblkid: don't interpret regual XFS as external xfs log

 $ blkid -o udev -p tests/output/blkid/images-fs/xfs.img
 ID_FS_AMBIVALENT=filesystem:xfs other:xfs_external_log

it seems that regular XFS with internal log may be interpreted as log
device. This is incorrect.

This patch checks for XFS magic string to avoid this collision.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/xfs.c