fix todo
This commit is contained in:
+1
-5
@@ -91,17 +91,13 @@ impl ZPool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn export(self) -> Result<()> {
|
pub fn export(self) -> Result<()> {
|
||||||
todo!()
|
zpool_export(&self.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn scrub(&self) -> Result<()> {
|
pub fn scrub(&self) -> Result<()> {
|
||||||
zpool_scrub(&self.name)
|
zpool_scrub(&self.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn status(&self) -> Result<String> {
|
|
||||||
todo!()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn import(name: &str) -> Result<ZPool> {
|
pub fn import(name: &str) -> Result<ZPool> {
|
||||||
zpool_import(name)?;
|
zpool_import(name)?;
|
||||||
let result = ZPool::new(name)?;
|
let result = ZPool::new(name)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user