]> err.no Git - util-linux/commitdiff
blkid: add version support to LVM2
authorKarel Zak <kzak@redhat.com>
Tue, 27 Jan 2009 14:09:56 +0000 (15:09 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:35:25 +0000 (23:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/probers/lvm.c

index 120250c9a534200b0000d2418fe0bfba3d98113b..1a4e6bffeba95ac970024f81e4fb8bd70de166ef 100644 (file)
@@ -95,6 +95,10 @@ static int probe_lvm2(blkid_probe pr, const struct blkid_idmag *mag)
        uuid[LVM2_ID_LEN+6] = '\0';
        blkid_probe_sprintf_uuid(pr, label->pv_uuid, sizeof(label->pv_uuid),
                        "%s", uuid);
+
+       /* the mag->magic is the same string as label->type,
+        * but zero terminated */
+       blkid_probe_set_version(pr, mag->magic);
        return 0;
 }