$ 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>
if (!buf)
return -1;
+ if (memcmp(buf, "XFSB", 4) == 0)
+ return 1; /* this is regular XFS, ignore */
+
/* check the first 512 512-byte sectors */
for (i = 0; i < 512; i++) {
rhead = (struct xlog_rec_header *)&buf[i*512];