]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: make XFS Log visible for wipefs
authorKarel Zak <kzak@redhat.com>
Tue, 13 Oct 2015 10:01:29 +0000 (12:01 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 13 Oct 2015 10:02:17 +0000 (12:02 +0200)
Reported-by: Peter Rajnoha <prajnoha@redhat.com>
Signed-off-by: root <root@ws.net.home>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/xfs.c

index a6c04a2f09359f52214c42113571288ce5074570..d13c849e1f78f8a182df45110f2f661f2c853cc5 100644 (file)
@@ -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;
                }
        }