mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-24 23:51:04 +09:00
completed storage add
This commit is contained in:
parent
4bacba7ff9
commit
3648a190b7
1 changed files with 5 additions and 4 deletions
|
@ -317,7 +317,7 @@ fn main() -> Result<()> {
|
||||||
// select storage
|
// select storage
|
||||||
let device = get_device(&config_dir)?;
|
let device = get_device(&config_dir)?;
|
||||||
let storage = select_physical_storage(device, &storages)?;
|
let storage = select_physical_storage(device, &storages)?;
|
||||||
trace!("storage: {:?}", storage);
|
println!("storage: {:?}", storage);
|
||||||
let new_storage_name = storage.name().clone();
|
let new_storage_name = storage.name().clone();
|
||||||
|
|
||||||
// add to storages
|
// add to storages
|
||||||
|
@ -329,10 +329,11 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
// commit
|
// commit
|
||||||
add_and_commit(&repo, &Path::new(STORAGESFILE), &format!("Add new storage(physical drive): {}", new_storage_name))?;
|
add_and_commit(&repo, &Path::new(STORAGESFILE), &format!("Add new storage(physical drive): {}", new_storage_name))?;
|
||||||
unimplemented!()
|
|
||||||
|
println!("Added new storage.");
|
||||||
|
trace!("Finished adding storage");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unimplemented!()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Commands::Path {} => {
|
Commands::Path {} => {
|
||||||
|
@ -561,4 +562,4 @@ fn full_status(repo: &Repository) -> Result<()> {
|
||||||
trace!(" {}: {:?}", path, st);
|
trace!(" {}: {:?}", path, st);
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue