From 3fc02f3b958f6eb2860f766cd86e60287ab377bf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 13 Oct 2008 11:34:58 +0200 Subject: [PATCH] blkid: add GFS2 UUID support Signed-off-by: Karel Zak --- libs/blkid/src/probers/gfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.5