summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2015-10-13 12:01:29 +0200
committerKarel Zak2015-10-13 12:02:17 +0200
commitd5b7d2912afceac3774d1aaea9e8486b54d4e9e9 (patch)
tree07b2fd59f9cf6f8c02a9ce2d22a2d4a9ec4d871d
parentlibblkid: support LSI RAID on partition too (diff)
downloadkernel-qcow2-util-linux-d5b7d2912afceac3774d1aaea9e8486b54d4e9e9.tar.gz
kernel-qcow2-util-linux-d5b7d2912afceac3774d1aaea9e8486b54d4e9e9.tar.xz
kernel-qcow2-util-linux-d5b7d2912afceac3774d1aaea9e8486b54d4e9e9.zip
libblkid: make XFS Log visible for wipefs
Reported-by: Peter Rajnoha <prajnoha@redhat.com> Signed-off-by: root <root@ws.net.home> Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--libblkid/src/superblocks/xfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libblkid/src/superblocks/xfs.c b/libblkid/src/superblocks/xfs.c
index a6c04a2f0..d13c849e1 100644
--- a/libblkid/src/superblocks/xfs.c
+++ b/libblkid/src/superblocks/xfs.c
@@ -260,6 +260,12 @@ static int probe_xfs_log(blkid_probe pr, const struct blkid_idmag *mag)
if (xlog_valid_rec_header(rhead)) {
blkid_probe_set_uuid_as(pr, rhead->h_uuid, "LOGUUID");
+
+ if (blkid_probe_set_magic(pr, i * 512,
+ sizeof(rhead->h_magicno),
+ (unsigned char *) &rhead->h_magicno))
+ return 1;
+
return 0;
}
}