diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-10 11:01:18 +0200 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-09-11 18:42:30 -0700 |
commit | cce2ee3c72e680c14516979bfc0108ab2341141b (patch) | |
tree | 69d98d25fc567377d27aaa599ad6464a3ce8eafa /src/tests/status.rs | |
parent | 663f24b2e41c90709750337e47f2f43b3100422f (diff) | |
download | nitrocli-cce2ee3c72e680c14516979bfc0108ab2341141b.tar.gz nitrocli-cce2ee3c72e680c14516979bfc0108ab2341141b.tar.bz2 |
Print SD card usage in Storage status
The Storage device keeps track of the areas of the SD card that have
been written to during this power cycle. This data can be accessed using
the NK_get_SD_usage_data function that returns a range of the SD card
that has not been written. This data can be used as a guide line when
creating new hidden volumes.
This patch adds the SD card usage data to the output of the status
command for Nitrokey Storage devices.
Diffstat (limited to 'src/tests/status.rs')
-rw-r--r-- | src/tests/status.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/status.rs b/src/tests/status.rs index fe69d78..ca16121 100644 --- a/src/tests/status.rs +++ b/src/tests/status.rs @@ -50,6 +50,7 @@ fn output_storage(model: nitrokey::Model) -> anyhow::Result<()> { admin retry count: [0-3] Storage: SD card ID: 0x[[:xdigit:]]{8} + SD card usage: \d+% .. \d+% not written firmware: (un)?locked storage keys: (not )?created volumes: |