From 269b7bffc7264f85ba090d9b6f2dc4f24063b99d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 27 Nov 2024 20:52:48 +0100 Subject: [PATCH] tree-wide: fix various typos Signed-off-by: Thomas Lamprecht --- pbs-client/src/pxar/create.rs | 8 ++++---- src/api2/config/datastore.rs | 6 +++--- src/bin/proxmox_backup_debug/inspect.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs index 5d795797..d5c2b451 100644 --- a/pbs-client/src/pxar/create.rs +++ b/pbs-client/src/pxar/create.rs @@ -439,13 +439,13 @@ impl Archiver { ); return Ok(Some(range)); } - log::debug!("reencode: {file_name:?} not a regular file."); + log::debug!("re-encode: {file_name:?} not a regular file."); return Ok(None); } - log::debug!("reencode: {file_name:?} metadata did not match."); + log::debug!("re-encode: {file_name:?} metadata did not match."); return Ok(None); } - log::debug!("reencode: {file_name:?} not found in previous archive."); + log::debug!("re-encode: {file_name:?} not found in previous archive."); } Ok(None) @@ -1063,7 +1063,7 @@ impl Archiver { } // Take ownership of cached entries and encode them to the archive - // Encode with reused payload chunks when base offset is some, reencode otherwise + // Encode with reused payload chunks when base offset is some, re-encode otherwise async fn encode_entries_to_archive( &mut self, encoder: &mut Encoder<'_, T>, diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index d8bae207..1dd9f82d 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -159,7 +159,7 @@ pub(crate) fn do_create_datastore( }, }, access: { - description: "Requires Datastore.Allocate and, for a backing-device, Sys.Modfiy on '/system/disks'.", + description: "Requires Datastore.Allocate and, for a backing-device, Sys.Modify on '/system/disks'.", permission: &Permission::Privilege(&["datastore"], PRIV_DATASTORE_ALLOCATE, false), }, )] @@ -178,7 +178,7 @@ pub fn create_datastore( } if config.backing_device.is_none() && !config.path.starts_with("/") { - param_bail!("path", "expected an abolute path, '{}' is not", config.path); + param_bail!("path", "expected an absolute path, '{}' is not", config.path); } if config.backing_device.is_some() && config.path.starts_with("/") { param_bail!( @@ -543,7 +543,7 @@ pub fn update_datastore( }, }, access: { - description: "Requires Datastore.Allocate and, for a backing-device, Sys.Modfiy on '/system/disks'.", + description: "Requires Datastore.Allocate and, for a backing-device, Sys.Modify on '/system/disks'.", permission: &Permission::Privilege(&["datastore", "{name}"], PRIV_DATASTORE_ALLOCATE, false), }, returns: { diff --git a/src/bin/proxmox_backup_debug/inspect.rs b/src/bin/proxmox_backup_debug/inspect.rs index 17df09be..9a75bae1 100644 --- a/src/bin/proxmox_backup_debug/inspect.rs +++ b/src/bin/proxmox_backup_debug/inspect.rs @@ -458,7 +458,7 @@ fn inspect_device(device: String, param: Value) -> Result<(), Error> { std::fs::remove_dir(std::path::Path::new(&tmp_mount_path))?; if output_format == "text" { - println!("Device containes {} stores", ds_count); + println!("Device contains {ds_count} stores"); println!("---------------"); for s in stores { println!(