summaryrefslogtreecommitdiff
path: root/c_src/cmd_key.c
diff options
context:
space:
mode:
authorRoland Vet <RlndVt@protonmail.com>2024-02-22 22:12:40 +0100
committerRoland Vet <RlndVt@protonmail.com>2024-02-23 08:37:23 +0100
commit16661be29497ce4940039fe49e3ebb71f72a2052 (patch)
tree08aa040816de3918359e9c6d594c543d9f0889f5 /c_src/cmd_key.c
parent817e957697e3ecb2447c50dbe611a5f591aa96b5 (diff)
bch2_sb_is_encrypted{,_and_locked}
Specifically also mention locked Signed-off-by: Roland Vet <RlndVt@protonmail.com>
Diffstat (limited to 'c_src/cmd_key.c')
-rw-r--r--c_src/cmd_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/cmd_key.c b/c_src/cmd_key.c
index adb0ac8d..552aa867 100644
--- a/c_src/cmd_key.c
+++ b/c_src/cmd_key.c
@@ -66,7 +66,7 @@ int cmd_unlock(int argc, char *argv[])
if (ret)
die("Error opening %s: %s", dev, bch2_err_str(ret));
- if (!bch2_sb_is_encrypted(sb.sb))
+ if (!bch2_sb_is_encrypted_and_locked(sb.sb))
die("%s is not encrypted", dev);
if (check)