From: Karel Zak Date: Mon, 13 Oct 2008 09:34:58 +0000 (+0200) Subject: blkid: add GFS2 UUID support X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc02f3b958f6eb2860f766cd86e60287ab377bf;p=util-linux blkid: add GFS2 UUID support Signed-off-by: Karel Zak --- diff --git a/libs/blkid/src/probers/gfs.c b/libs/blkid/src/probers/gfs.c index 44306dc3..1581ecb7 100644 --- a/libs/blkid/src/probers/gfs.c +++ b/libs/blkid/src/probers/gfs.c @@ -69,7 +69,10 @@ struct gfs2_sb { char sb_lockproto[GFS_LOCKNAME_LEN]; char sb_locktable[GFS_LOCKNAME_LEN]; - /* In gfs1, quota and license dinodes followed */ + + struct gfs2_inum __pad3; /* Was quota inode in gfs1 */ + struct gfs2_inum __pad4; /* Was licence inode in gfs1 */ + uint8_t sb_uuid[16]; /* The UUID maybe 0 for backwards compat */ }; static int probe_gfs(blkid_probe pr, const struct blkid_idmag *mag) @@ -87,8 +90,11 @@ static int probe_gfs(blkid_probe pr, const struct blkid_idmag *mag) blkid_probe_set_label(pr, (unsigned char *) sbd->sb_locktable, sizeof(sbd->sb_locktable)); + + blkid_probe_set_uuid(pr, sbd->sb_uuid); return 0; } + return -1; }