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(())
},
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),
//! 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
/// 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,
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)?;
.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()
})
}
- /// 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![];
})
}
- /// 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(
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...
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,