aboutsummaryrefslogtreecommitdiffstats
path: root/g13/be-dmcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'g13/be-dmcrypt.c')
-rw-r--r--g13/be-dmcrypt.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/g13/be-dmcrypt.c b/g13/be-dmcrypt.c
index e5e9b332a..c65be0894 100644
--- a/g13/be-dmcrypt.c
+++ b/g13/be-dmcrypt.c
@@ -64,6 +64,23 @@ be_dmcrypt_mount_container (ctrl_t ctrl,
}
+/* Unmount the container described by the filename FNAME. */
+gpg_error_t
+be_dmcrypt_umount_container (ctrl_t ctrl, const char *fname)
+{
+ gpg_error_t err;
+
+ err = call_syshelp_set_device (ctrl, fname);
+ if (err)
+ goto leave;
+
+ err = call_syshelp_run_umount (ctrl, CONTTYPE_DM_CRYPT);
+
+ leave:
+ return err;
+}
+
+
/* Suspend the container described by the filename FNAME. */
gpg_error_t
be_dmcrypt_suspend_container (ctrl_t ctrl, const char *fname)