summaryrefslogtreecommitdiff
path: root/src
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 /src
parent817e957697e3ecb2447c50dbe611a5f591aa96b5 (diff)
bch2_sb_is_encrypted{,_and_locked}
Specifically also mention locked Signed-off-by: Roland Vet <RlndVt@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_mount.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_mount.rs b/src/commands/cmd_mount.rs
index 35b5462b..63998456 100644
--- a/src/commands/cmd_mount.rs
+++ b/src/commands/cmd_mount.rs
@@ -206,7 +206,7 @@ fn cmd_mount_inner(opt: Cli) -> anyhow::Result<()> {
Err(anyhow::anyhow!("No device found from specified parameters"))?;
}
// Check if the filesystem's master key is encrypted
- if unsafe { bcachefs::bch2_sb_is_encrypted(block_devices_to_mount[0].sb) } {
+ if unsafe { bcachefs::bch2_sb_is_encrypted_and_locked(block_devices_to_mount[0].sb) } {
// First by password_file, if available
let fallback_to_unlock_policy = if let Some(passphrase_file) = &opt.passphrase_file {
match key::read_from_passphrase_file(&block_devices_to_mount[0], passphrase_file.as_path()) {