mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
Typo
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
This commit is contained in:
parent
46ed72461f
commit
ceb259b2a3
@ -653,7 +653,7 @@ struct bch_encrypted_key {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* If this field is present in the superblock, it stores an encryption key which
|
* If this field is present in the superblock, it stores an encryption key which
|
||||||
* is used encrypt all other data/metadata. The key will normally be encrypted
|
* is used to encrypt all other data/metadata. The key will normally be encrypted
|
||||||
* with the key userspace provides, but if encryption has been turned off we'll
|
* with the key userspace provides, but if encryption has been turned off we'll
|
||||||
* just store the master key unencrypted in the superblock so we can access the
|
* just store the master key unencrypted in the superblock so we can access the
|
||||||
* previously encrypted data.
|
* previously encrypted data.
|
||||||
|
@ -65,7 +65,7 @@ fn check_for_key(key_name: &std::ffi::CStr) -> anyhow::Result<bool> {
|
|||||||
|
|
||||||
let key_id = unsafe { keyctl_search(keyutils::KEY_SPEC_USER_KEYRING, key_type, key_name, 0) };
|
let key_id = unsafe { keyctl_search(keyutils::KEY_SPEC_USER_KEYRING, key_type, key_name, 0) };
|
||||||
if key_id > 0 {
|
if key_id > 0 {
|
||||||
info!("Key has became available");
|
info!("Key has become available");
|
||||||
Ok(true)
|
Ok(true)
|
||||||
} else {
|
} else {
|
||||||
match errno::errno().0 {
|
match errno::errno().0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user