TCRYPT: add dump command

This commit is contained in:
Milan Broz
2012-11-23 17:10:57 +01:00
parent 8d69e19ac1
commit c81260b3c3
4 changed files with 65 additions and 2 deletions

View File

@@ -2334,6 +2334,8 @@ int crypt_dump(struct crypt_device *cd)
return _luks_dump(cd);
else if (isVERITY(cd->type))
return _verity_dump(cd);
else if (isTCRYPT(cd->type))
return TCRYPT_dump(cd, &cd->tcrypt_hdr, &cd->tcrypt_params);
log_err(cd, _("Dump operation is not supported for this device type.\n"));
return -EINVAL;