531551
From d5b7d2912afceac3774d1aaea9e8486b54d4e9e9 Mon Sep 17 00:00:00 2001
531551
From: Karel Zak <kzak@redhat.com>
531551
Date: Tue, 13 Oct 2015 12:01:29 +0200
531551
Subject: [PATCH] libblkid: make XFS Log visible for wipefs
531551
531551
Reported-by: Peter Rajnoha <prajnoha@redhat.com>
531551
Signed-off-by: root <root@ws.net.home>
531551
Signed-off-by: Karel Zak <kzak@redhat.com>
531551
---
531551
 libblkid/src/superblocks/xfs.c | 6 ++++++
531551
 1 file changed, 6 insertions(+)
531551
531551
diff --git a/libblkid/src/superblocks/xfs.c b/libblkid/src/superblocks/xfs.c
531551
index a6c04a2..d13c849 100644
531551
--- a/libblkid/src/superblocks/xfs.c
531551
+++ b/libblkid/src/superblocks/xfs.c
531551
@@ -260,6 +260,12 @@ static int probe_xfs_log(blkid_probe pr, const struct blkid_idmag *mag)
531551
 
531551
 		if (xlog_valid_rec_header(rhead)) {
531551
 			blkid_probe_set_uuid_as(pr, rhead->h_uuid, "LOGUUID");
531551
+
531551
+			if (blkid_probe_set_magic(pr, i * 512,
531551
+						sizeof(rhead->h_magicno),
531551
+						(unsigned char *) &rhead->h_magicno))
531551
+				return 1;
531551
+
531551
 			return 0;
531551
 		}
531551
 	}
531551
-- 
531551
2.4.3
531551