diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-10-17 18:13:49 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-10-17 18:13:49 +0200 |
commit | 74534dbde84f7f2ba7dce60ebb9f651eab095bbe (patch) | |
tree | 28bfc2e2f9d0a339ec8d9737b5b752fad7d3fee3 /extras | |
parent | 424520043aa0ea509399ca8c86fea2c79ddc91ee (diff) |
volume_id: LUKS - export version
Diffstat (limited to 'extras')
-rw-r--r-- | extras/volume_id/lib/luks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/volume_id/lib/luks.c b/extras/volume_id/lib/luks.c index 231374e507..20b50d0efd 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; } |