diff options
author | Werner Koch <[email protected]> | 2024-01-09 18:52:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-01-09 18:52:04 +0000 |
commit | 6233a17ac99deb8d246458380813b621df2609bf (patch) | |
tree | a15a5797bf8cb809353e3e1086933563555d9245 /g13/g13-syshelp.h | |
parent | gpg: Print a useful error id SKI algo 253 is found. (diff) | |
download | gnupg-6233a17ac99deb8d246458380813b621df2609bf.tar.gz gnupg-6233a17ac99deb8d246458380813b621df2609bf.zip |
g13: New option --no-mount.
* g13/g13.c (oNoMount): New.
(opts): Add --no-mount.
(main): Implement this.
* g13/g13-common.h (opt): Add field no_mount.
* common/status.h (STATUS_PLAINDEV): New.
* g13/sh-cmd.c (has_option): Uncomment.
(cmd_mount): Add option --no-mount and pass down.
* g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Add arg nomount and
emit PLAINDEV status line.
(sh_dmcrypt_umount_container): Rund findmnt before umount.
--
This option can be used to decrypt a device but not to mount it. For
example to run fsck first. A command or option to run fsck before a
mount will eventually be added.
The use of findmnt is needed so that we can easily remove a device
which has not been mounted.
Diffstat (limited to 'g13/g13-syshelp.h')
-rw-r--r-- | g13/g13-syshelp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g13/g13-syshelp.h b/g13/g13-syshelp.h index 0243166ba..10b529fb1 100644 --- a/g13/g13-syshelp.h +++ b/g13/g13-syshelp.h @@ -85,7 +85,7 @@ gpg_error_t sh_is_empty_partition (const char *name); gpg_error_t sh_dmcrypt_create_container (ctrl_t ctrl, const char *devname, estream_t devfp); gpg_error_t sh_dmcrypt_mount_container (ctrl_t ctrl, const char *devname, - tupledesc_t keyblob); + tupledesc_t keyblob, int nomount); gpg_error_t sh_dmcrypt_umount_container (ctrl_t ctrl, const char *devname); gpg_error_t sh_dmcrypt_suspend_container (ctrl_t ctrl, const char *devname); gpg_error_t sh_dmcrypt_resume_container (ctrl_t ctrl, const char *devname, |