diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-20 09:26:11 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-20 09:26:11 -0800 |
commit | c3f1761ae147e562ec3565c7ba8a9cb1834759c2 (patch) | |
tree | fd272c279a41c30cf1585dc917f960751aabd3bb /nitrocli/src/args.rs | |
parent | 6c54316bd512a1ad365f5c1e2cb17e7e53ea193c (diff) | |
download | nitrocli-c3f1761ae147e562ec3565c7ba8a9cb1834759c2.tar.gz nitrocli-c3f1761ae147e562ec3565c7ba8a9cb1834759c2.tar.bz2 |
Implement storage hidden subcommand
With this change we implement the storage hidden subcommand. We support
creation, opening, and closing of hidden volumes.
Note that the opening of a hidden volume automatically closes any opened
encrypted volumes and vice versa. To that end, we force file system
level caches to disk even from the storage open and storage hidden open
commands.
Diffstat (limited to 'nitrocli/src/args.rs')
-rw-r--r-- | nitrocli/src/args.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs index 4c9ed52..0f4ef4f 100644 --- a/nitrocli/src/args.rs +++ b/nitrocli/src/args.rs @@ -315,7 +315,7 @@ fn storage_hidden_create(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> parse(ctx, &parser, args)?; drop(parser); - Ok(()) + commands::storage_hidden_create(ctx, slot, start, end) } fn storage_hidden_open(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> { @@ -323,7 +323,7 @@ fn storage_hidden_open(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> { parser.set_description("Opens a hidden volume on a Nitrokey Storage"); parse(ctx, &parser, args)?; - Ok(()) + commands::storage_hidden_open(ctx) } fn storage_hidden_close(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> { @@ -331,7 +331,7 @@ fn storage_hidden_close(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> parser.set_description("Closes the hidden volume on a Nitrokey Storage"); parse(ctx, &parser, args)?; - Ok(()) + commands::storage_hidden_close(ctx) } /// Execute a config subcommand. |