From c3f1761ae147e562ec3565c7ba8a9cb1834759c2 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sun, 20 Jan 2019 09:26:11 -0800 Subject: 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. --- nitrocli/src/args.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nitrocli/src/args.rs') 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) -> 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) -> Result<()> { @@ -323,7 +323,7 @@ fn storage_hidden_open(ctx: &mut ExecCtx<'_>, args: Vec) -> 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) -> Result<()> { @@ -331,7 +331,7 @@ fn storage_hidden_close(ctx: &mut ExecCtx<'_>, args: Vec) -> 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. -- cgit v1.2.1