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