diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-30 20:50:00 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-30 22:26:06 +0200 |
commit | 25bce91b4bdcc37d063ba22081007c1ef76355d6 (patch) | |
tree | 9439efe8f9d311291503f84a7c5b3cd257639725 /src/commands | |
parent | 21b1111b59fe9935d12e2e23abd5261458c4d77e (diff) |
refactor: rename function again
`bch2_sb_is_encrypted_and_locked()` simply does not check if the fs is
locked. The name is misleading.
Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/mount.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/mount.rs b/src/commands/mount.rs index 7f5937d0..f6254366 100644 --- a/src/commands/mount.rs +++ b/src/commands/mount.rs @@ -344,7 +344,7 @@ fn cmd_mount_inner(opt: Cli) -> anyhow::Result<()> { .unwrap(); // Check if the filesystem's master key is encrypted and we don't have a key - if unsafe { bcachefs::bch2_sb_is_encrypted_and_locked(block_devices_to_mount[0].sb) } + if unsafe { bcachefs::bch2_sb_is_encrypted(block_devices_to_mount[0].sb) } && !key::check_for_key(&key_name)? { // First by password_file, if available |