mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-15 04:40:05 +01:00
Add stand alone dm_resume_device routine.
This commit is contained in:
committed by
Milan Broz
parent
3c1dc9cfaa
commit
2cd85ddf11
@@ -2243,6 +2243,20 @@ out:
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int dm_resume_device(struct crypt_device *cd, const char *name, uint32_t flags)
|
||||||
|
{
|
||||||
|
int r;
|
||||||
|
|
||||||
|
if (dm_init_context(cd, DM_UNKNOWN))
|
||||||
|
return -ENOTSUP;
|
||||||
|
|
||||||
|
r = _dm_resume_device(name, flags);
|
||||||
|
|
||||||
|
dm_exit_context();
|
||||||
|
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
int dm_resume_and_reinstate_key(struct crypt_device *cd, const char *name,
|
int dm_resume_and_reinstate_key(struct crypt_device *cd, const char *name,
|
||||||
const struct volume_key *vk)
|
const struct volume_key *vk)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ int dm_reload_device(struct crypt_device *cd, const char *name,
|
|||||||
struct crypt_dm_active_device *dmd, unsigned resume);
|
struct crypt_dm_active_device *dmd, unsigned resume);
|
||||||
int dm_suspend_device(struct crypt_device *cd, const char *name);
|
int dm_suspend_device(struct crypt_device *cd, const char *name);
|
||||||
int dm_suspend_and_wipe_key(struct crypt_device *cd, const char *name);
|
int dm_suspend_and_wipe_key(struct crypt_device *cd, const char *name);
|
||||||
|
int dm_resume_device(struct crypt_device *cd, const char *name, uint32_t flags);
|
||||||
int dm_resume_and_reinstate_key(struct crypt_device *cd, const char *name,
|
int dm_resume_and_reinstate_key(struct crypt_device *cd, const char *name,
|
||||||
const struct volume_key *vk);
|
const struct volume_key *vk);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user