From b781113cf1391926dedf8dc943624d3bb9726318 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 14 Aug 2016 20:17:51 +0200 Subject: 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 --- g13/backend.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g13/backend.h') diff --git a/g13/backend.h b/g13/backend.h index 66d9cd593..d1cedb36f 100644 --- a/g13/backend.h +++ b/g13/backend.h @@ -39,6 +39,7 @@ gpg_error_t be_mount_container (ctrl_t ctrl, int conttype, const char *fname, const char *mountpoint, tupledesc_t tuples, unsigned int *r_id); +gpg_error_t be_umount_container (ctrl_t ctrl, int conttype, const char *fname); gpg_error_t be_suspend_container (ctrl_t ctrl, int conttype, const char *fname); gpg_error_t be_resume_container (ctrl_t ctrl, int conttype, -- cgit v1.2.3