diff options
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; } |