summaryrefslogtreecommitdiffstats
path: root/g13/be-dmcrypt.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-08-14 20:17:51 +0200
committerWerner Koch <wk@gnupg.org>2016-08-14 20:17:51 +0200
commitb781113cf1391926dedf8dc943624d3bb9726318 (patch)
tree6a1d128f05bd2e18daea306602df026c2966c156 /g13/be-dmcrypt.h
parentg13: Fix double free bug. (diff)
downloadgnupg2-b781113cf1391926dedf8dc943624d3bb9726318.tar.xz
gnupg2-b781113cf1391926dedf8dc943624d3bb9726318.zip
g13: Implement --umount for dm-crypt.
* g13/g13.c (main): Implement command --umount. * g13/mount.c (g13_umount_container): use the syshelper if needed. * g13/backend.c (be_umount_container): New. * g13/be-dmcrypt.c (be_dmcrypt_umount_container): New. * g13/call-syshelp.c (call_syshelp_run_umount): New. * g13/sh-cmd.c (cmd_umount): New. (register_commands): Register UMOUNT. * g13/sh-dmcrypt.c (sh_dmcrypt_umount_container): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g13/be-dmcrypt.h')
-rw-r--r--g13/be-dmcrypt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g13/be-dmcrypt.h b/g13/be-dmcrypt.h
index d74e09f7c..189bfee7b 100644
--- a/g13/be-dmcrypt.h
+++ b/g13/be-dmcrypt.h
@@ -27,6 +27,7 @@ gpg_error_t be_dmcrypt_mount_container (ctrl_t ctrl,
const char *fname,
const char *mountpoint,
tupledesc_t tuples);
+gpg_error_t be_dmcrypt_umount_container (ctrl_t ctrl, const char *fname);
gpg_error_t be_dmcrypt_suspend_container (ctrl_t ctrl, const char *fname);
gpg_error_t be_dmcrypt_resume_container (ctrl_t ctrl, const char *fname,
tupledesc_t tuples);