Add crypt_get_device_name() to API (get underlying device name).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@342 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2010-10-18 14:47:06 +00:00
parent 8c444b563e
commit 9679fb7f25
5 changed files with 14 additions and 1 deletions

View File

@@ -2020,6 +2020,9 @@ int crypt_dump(struct crypt_device *cd)
else
log_std(cd, "Key Slot %d: DISABLED\n", i);
}
log_std(cd, "DNAME: %s\n", crypt_get_device_name(cd) ?: "");
return 0;
}
@@ -2053,6 +2056,11 @@ const char *crypt_get_uuid(struct crypt_device *cd)
return NULL;
}
const char *crypt_get_device_name(struct crypt_device *cd)
{
return cd->device;
}
int crypt_get_volume_key_size(struct crypt_device *cd)
{
if (isPLAIN(cd->type))