From: Thomas Lamprecht Date: Tue, 25 Aug 2020 16:52:31 +0000 (+0200) Subject: various typo fixes X-Git-Tag: v0.8.13~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1ffe0301231024a60088cb787d5eb29a2ee0cbdc;p=proxmox-backup.git various typo fixes Signed-off-by: Thomas Lamprecht --- diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs index 7e811de9..e6a29522 100644 --- a/src/api2/admin/datastore.rs +++ b/src/api2/admin/datastore.rs @@ -519,7 +519,7 @@ pub fn verify( for dir in failed_dirs { worker.log(format!("\t{}", dir)); } - bail!("verfication failed - please check the log for details"); + bail!("verification failed - please check the log for details"); } Ok(()) }, @@ -1218,7 +1218,7 @@ fn catalog( pub const API_METHOD_PXAR_FILE_DOWNLOAD: ApiMethod = ApiMethod::new( &ApiHandler::AsyncHttp(&pxar_file_download), &ObjectSchema::new( - "Download single file from pxar file of a bacup snapshot. Only works if it's not encrypted.", + "Download single file from pxar file of a backup snapshot. Only works if it's not encrypted.", &sorted!([ ("store", false, &DATASTORE_SCHEMA), ("backup-type", false, &BACKUP_TYPE_SCHEMA), diff --git a/src/api2/types/userid.rs b/src/api2/types/userid.rs index bdf383de..3001b1d9 100644 --- a/src/api2/types/userid.rs +++ b/src/api2/types/userid.rs @@ -9,7 +9,7 @@ //! with `String`, meaning you can only make references to it. //! * [`Realm`]: an owned realm (`String` equivalent). //! * [`RealmRef`]: a borrowed realm (`str` equivalent). -//! * [`Userid`]: an owned user id (`"user@realm"`). Note that this does not have a separte +//! * [`Userid`]: an owned user id (`"user@realm"`). Note that this does not have a separate //! borrowed type. //! //! Note that `Username`s are not unique, therefore they do not implement `Eq` and cannot be diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs index 37f581bc..b6cfac0d 100644 --- a/src/backup/datastore.rs +++ b/src/backup/datastore.rs @@ -299,7 +299,7 @@ impl DataStore { /// And set the owner to 'userid'. If the group already exists, it returns the /// current owner (instead of setting the owner). /// - /// This also aquires an exclusive lock on the directory and returns the lock guard. + /// This also acquires an exclusive lock on the directory and returns the lock guard. pub fn create_locked_backup_group( &self, backup_group: &BackupGroup, diff --git a/src/backup/manifest.rs b/src/backup/manifest.rs index 56f6cf42..ed5e2a23 100644 --- a/src/backup/manifest.rs +++ b/src/backup/manifest.rs @@ -145,7 +145,7 @@ impl BackupManifest { Ok(()) } - // Generate cannonical json + // Generate canonical json fn to_canonical_json(value: &Value) -> Result, Error> { let mut data = Vec::new(); Self::write_canonical_json(value, &mut data)?; diff --git a/src/bin/proxmox_backup_manager/disk.rs b/src/bin/proxmox_backup_manager/disk.rs index a93a6f6b..70de4775 100644 --- a/src/bin/proxmox_backup_manager/disk.rs +++ b/src/bin/proxmox_backup_manager/disk.rs @@ -239,7 +239,7 @@ pub fn zpool_commands() -> CommandLineInterface { .insert("create", CliCommand::new(&API_METHOD_CREATE_ZPOOL) .arg_param(&["name"]) - .completion_cb("devices", complete_disk_name) // fixme: comlete the list + .completion_cb("devices", complete_disk_name) // fixme: complete the list ); cmd_def.into() diff --git a/src/client/backup_writer.rs b/src/client/backup_writer.rs index 38686f67..35e9c0bd 100644 --- a/src/client/backup_writer.rs +++ b/src/client/backup_writer.rs @@ -629,7 +629,7 @@ impl BackupWriter { }) } - /// Upload speed test - prints result ot stderr + /// Upload speed test - prints result to stderr pub async fn upload_speedtest(&self, verbose: bool) -> Result { let mut data = vec![]; diff --git a/src/tools/disks.rs b/src/tools/disks.rs index cecead97..1a07992e 100644 --- a/src/tools/disks.rs +++ b/src/tools/disks.rs @@ -133,7 +133,7 @@ impl DiskManage { }) } - /// Information about file system type and unsed device for a path + /// Information about file system type and used device for a path /// /// Returns tuple (fs_type, device, mount_source) pub fn find_mounted_device( diff --git a/src/tools/disks/zpool_list.rs b/src/tools/disks/zpool_list.rs index a0710376..5087a54e 100644 --- a/src/tools/disks/zpool_list.rs +++ b/src/tools/disks/zpool_list.rs @@ -111,7 +111,7 @@ fn parse_zpool_list_item(i: &str) -> IResult<&str, ZFSPoolInfo> { Ok((i, stat)) } -/// Parse zpool list outout +/// Parse zpool list output /// /// Note: This does not reveal any details on how the pool uses the devices, because /// the zpool list output format is not really defined... diff --git a/src/tools/disks/zpool_status.rs b/src/tools/disks/zpool_status.rs index 41b8a39c..b29101fd 100644 --- a/src/tools/disks/zpool_status.rs +++ b/src/tools/disks/zpool_status.rs @@ -53,7 +53,7 @@ fn parse_zpool_status_vdev(i: &str) -> IResult<&str, ZFSPoolVDevState> { let (i, vdev_name) = notspace1(i)?; - if let Ok((n, _)) = preceded(multispace0, line_ending)(i) { // sepecial device + if let Ok((n, _)) = preceded(multispace0, line_ending)(i) { // special device let vdev = ZFSPoolVDevState { name: vdev_name.to_string(), lvl: indent_level,