]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: populate jbd LOGUUID in addition to UUID
authorKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 09:15:33 +0000 (11:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 09:15:33 +0000 (11:15 +0200)
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 <kzak@redhat.com>
libblkid/src/superblocks/ext.c

index c23959322a3b9100733ffab0274da3d6d379be71..8d57cb5e46517636889e6589f624b5d45ca31bcf 100644 (file)
@@ -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;
 }