add backup related types and cmd arguments

- fix some typos & format
This commit is contained in:
qwjyh 2024-03-13 20:09:51 +09:00
parent d1f7a4787e
commit 56563a0e8b
10 changed files with 244 additions and 34 deletions

View file

@ -30,7 +30,7 @@ impl Directory {
/// - `name`: id
/// - `parent`: where the directory locates.
/// - `relative_path`: path from root of the parent storage.
/// - `notes`: supplimental notes.
/// - `notes`: supplemental notes.
fn new(
name: String,
parent: String,

View file

@ -192,7 +192,7 @@ pub fn select_physical_storage(
device: Device,
) -> Result<PhysicalDrivePartition> {
trace!("select_physical_storage");
// get disk info fron sysinfo
// get disk info from sysinfo
let sys_disks =
sysinfo::System::new_with_specifics(sysinfo::RefreshKind::new().with_disks_list());
trace!("refresh");