From ceb259b2a331baf3e5dd45847eec85c3f0ddd520 Mon Sep 17 00:00:00 2001 From: Roland Vet Date: Tue, 20 Feb 2024 19:49:50 +0100 Subject: [PATCH] Typo Signed-off-by: Roland Vet --- libbcachefs/bcachefs_format.h | 2 +- src/key.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libbcachefs/bcachefs_format.h b/libbcachefs/bcachefs_format.h index bff8750a..9f45f833 100644 --- a/libbcachefs/bcachefs_format.h +++ b/libbcachefs/bcachefs_format.h @@ -653,7 +653,7 @@ struct bch_encrypted_key { /* * 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 * just store the master key unencrypted in the superblock so we can access the * previously encrypted data. diff --git a/src/key.rs b/src/key.rs index c36fb28d..543aaff5 100644 --- a/src/key.rs +++ b/src/key.rs @@ -65,7 +65,7 @@ fn check_for_key(key_name: &std::ffi::CStr) -> anyhow::Result { let key_id = unsafe { keyctl_search(keyutils::KEY_SPEC_USER_KEYRING, key_type, key_name, 0) }; if key_id > 0 { - info!("Key has became available"); + info!("Key has become available"); Ok(true) } else { match errno::errno().0 {