cdown / rpms / util-linux

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