mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Verity: dump device sizes.
Calculating device sizes for verity devices is a little bit tricky, Data, hash and FEC can share devices or it can be a separate devices. This patch prints used device sizes in veritysetup dump command, but it requires that user specifies all values that are not stored in superblock (like a FEC device and FEC roots).
This commit is contained in:
@@ -5116,7 +5116,8 @@ int crypt_dump(struct crypt_device *cd)
|
||||
return LUKS2_hdr_dump(cd, &cd->u.luks2.hdr);
|
||||
else if (isVERITY(cd->type))
|
||||
return VERITY_dump(cd, &cd->u.verity.hdr,
|
||||
cd->u.verity.root_hash, cd->u.verity.root_hash_size);
|
||||
cd->u.verity.root_hash, cd->u.verity.root_hash_size,
|
||||
cd->u.verity.fec_device);
|
||||
else if (isTCRYPT(cd->type))
|
||||
return TCRYPT_dump(cd, &cd->u.tcrypt.hdr, &cd->u.tcrypt.params);
|
||||
else if (isINTEGRITY(cd->type))
|
||||
|
||||
Reference in New Issue
Block a user