From f89c496ea27cb09f93f2e81971e78a173e0c9be7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 27 Jan 2009 15:09:56 +0100 Subject: [PATCH] blkid: add version support to LVM2 Signed-off-by: Karel Zak --- libs/blkid/src/probers/lvm.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5