mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-07 00:40:01 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user