mario death

This commit is contained in:
Aiden McClelland
2021-09-14 14:21:46 -06:00
committed by Aiden McClelland
parent c1db00aebb
commit 9fb57d038a
2 changed files with 32 additions and 34 deletions

View File

@@ -152,22 +152,6 @@ pub async fn export(pool_name: &str) -> Result<(), Error> {
Ok(())
}
/// BLOCKING
pub fn export_blocking(pool: &str) -> Result<(), Error> {
let output = std::process::Command::new("zpool")
.arg("export")
.arg(pool)
.output()?;
if !output.status.success() {
Err(Error::new(
anyhow!("{}", String::from_utf8(output.stderr)?),
crate::ErrorKind::Zfs,
))
} else {
Ok(())
}
}
pub async fn import(guid: &str) -> Result<(), Error> {
Command::new("zpool")
.arg("import")