g13: Implement --umount for dm-crypt.
authorWerner Koch <wk@gnupg.org>
Sun, 14 Aug 2016 18:17:51 +0000 (20:17 +0200)
committerWerner Koch <wk@gnupg.org>
Sun, 14 Aug 2016 18:17:51 +0000 (20:17 +0200)
commitb781113cf1391926dedf8dc943624d3bb9726318
tree6a1d128f05bd2e18daea306602df026c2966c156
parentc9a0bccc77c93c08d6980a1718dfaf238a559eb9
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>
g13/backend.c
g13/backend.h
g13/be-dmcrypt.c
g13/be-dmcrypt.h
g13/call-syshelp.c
g13/call-syshelp.h
g13/g13-syshelp.h
g13/g13.c
g13/mount.c
g13/sh-cmd.c
g13/sh-dmcrypt.c