]> git.proxmox.com Git - proxmox-backup.git/commitdiff
various typo fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Aug 2020 16:52:31 +0000 (18:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Aug 2020 16:52:31 +0000 (18:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/api2/admin/datastore.rs
src/api2/types/userid.rs
src/backup/datastore.rs
src/backup/manifest.rs
src/bin/proxmox_backup_manager/disk.rs
src/client/backup_writer.rs
src/tools/disks.rs
src/tools/disks/zpool_list.rs
src/tools/disks/zpool_status.rs

index 7e811de9242d200f972942cd5fb0e0a830f6da97..e6a29522dfdcde1f7f6525e6a538572007310c5d 100644 (file)
@@ -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),
index bdf383de679af9f73054525b45e3e9b2e44263b3..3001b1d93656642a7d7bccfca10a9ccdfb888447 100644 (file)
@@ -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
index 37f581bcac709d181ec9677ae4a97aa6a79fd3d6..b6cfac0d0d47f7ad819afdc1347d721c4a26d154 100644 (file)
@@ -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,
index 56f6cf42469c535d43df40d6db8c90bdcd473a9d..ed5e2a23468335bf25d65ef638c2ecae8b939be9 100644 (file)
@@ -145,7 +145,7 @@ impl BackupManifest {
         Ok(())
     }
 
-    // Generate cannonical json
+    // Generate canonical json
     fn to_canonical_json(value: &Value) -> Result<Vec<u8>, Error> {
         let mut data = Vec::new();
         Self::write_canonical_json(value, &mut data)?;
index a93a6f6b8638b38a408f815604e32431b9d28d8c..70de4775bddab2297aab8daf57d71a7aa3de5130 100644 (file)
@@ -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()
index 38686f67bac190cd2dbc8242c38b436ad1994641..35e9c0bd01c6270d03ee96627bfef90bec7e8027 100644 (file)
@@ -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<f64, Error> {
 
         let mut data = vec![];
index cecead979a5da99a2f20e0f6301fe54fa0047ec6..1a07992e7e4b50576741ca1ad1f6d871e104bc6f 100644 (file)
@@ -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(
index a07103767c74c86e142877ce6029bcf225682e4c..5087a54e617d8773343fc08abd8b32b8d9b644c8 100644 (file)
@@ -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...
index 41b8a39c54951a459297d9cce9d5d24ca9e7897f..b29101fdbaff500fb4f8e79332954992a250dd80 100644 (file)
@@ -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,