From 74534dbde84f7f2ba7dce60ebb9f651eab095bbe Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 17 Oct 2007 18:13:49 +0200 Subject: [PATCH] volume_id: LUKS - export version --- extras/volume_id/lib/luks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/volume_id/lib/luks.c b/extras/volume_id/lib/luks.c index 231374e5..20b50d0e 100644 --- a/extras/volume_id/lib/luks.c +++ b/extras/volume_id/lib/luks.c @@ -75,6 +75,7 @@ int volume_id_probe_luks(struct volume_id *id, uint64_t off, uint64_t size) volume_id_set_usage(id, VOLUME_ID_CRYPTO); volume_id_set_uuid(id, header->uuid, 36, UUID_HEX_STRING); + snprintf(id->type_version, sizeof(header->version), "%u", le16_to_cpu(header->version)); id->type = "crypto_LUKS"; return 0; } -- 2.39.5