From: Karel Zak Date: Tue, 27 Jan 2009 14:09:56 +0000 (+0100) Subject: blkid: add version support to LVM2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f89c496ea27cb09f93f2e81971e78a173e0c9be7;p=util-linux blkid: add version support to LVM2 Signed-off-by: Karel Zak --- diff --git a/libs/blkid/src/probers/lvm.c b/libs/blkid/src/probers/lvm.c index 120250c9..1a4e6bff 100644 --- a/libs/blkid/src/probers/lvm.c +++ b/libs/blkid/src/probers/lvm.c @@ -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; }