From 8bd67a19f73b5fc8d1f13e2ec0929b5bae90544b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 11 Sep 2013 11:15:33 +0200 Subject: [PATCH] libblkid: populate jbd LOGUUID in addition to UUID The LOGUUID is alias for UUID, this alias is necessary to standardize the tag name (we want to use the same tag LOGUUID= for all external logs on all filesystems). Note that for another filesystems (e.g. xfs) we have to differentiate between the journal and filesystem uuids to avoid collisions, because both devices use the same uuid. Signed-off-by: Karel Zak --- libblkid/src/superblocks/ext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libblkid/src/superblocks/ext.c b/libblkid/src/superblocks/ext.c index c23959322a..8d57cb5e46 100644 --- a/libblkid/src/superblocks/ext.c +++ b/libblkid/src/superblocks/ext.c @@ -333,6 +333,8 @@ static int probe_jbd(blkid_probe pr, return -BLKID_ERR_PARAM; ext_get_info(pr, 2, es); + blkid_probe_set_uuid_as(pr, es->s_uuid, "LOGUUID"); + return 0; } -- 2.47.3