chiark / gitweb /
volume_id: LUKS - export version
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 17 Oct 2007 16:13:49 +0000 (18:13 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 17 Oct 2007 16:13:49 +0000 (18:13 +0200)
extras/volume_id/lib/luks.c

index 231374e507f3893271428a83375acc73dcc2bc99..20b50d0efdf937605e8d912814fc3c8d0bae465a 100644 (file)
@@ -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;
 }