LUKS filesystem, list data size unknown only if the partition size is unknown
This commit is contained in:
parent
1533ff6436
commit
3fc3a690fc
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue