LUKS filesystem, list data size unknown only if the partition size is unknown

This commit is contained in:
Christophe Grenier 2012-04-21 14:17:17 +02:00
parent 1533ff6436
commit 3fc3a690fc

View file

@ -59,6 +59,9 @@ int check_LUKS(disk_t *disk_car,partition_t *partition)
static int set_LUKS_info(const struct luks_phdr *sb, partition_t *partition)
{
if(partition->part_size > 0)
sprintf(partition->info,"LUKS %u", be16(sb->version));
else
sprintf(partition->info,"LUKS %u (Data size unknown)", be16(sb->version));
return 0;
}