aboutsummaryrefslogtreecommitdiffstats
path: root/zone_zfs/src/file_system.rs
diff options
context:
space:
mode:
authorNeil Kollack <nkollack@gmail.com>2022-02-07 23:26:09 -0600
committerToby Vincent <tobyv13@gmail.com>2022-02-07 23:26:09 -0600
commitf596b3eae8ead8b8dc3eb4993a4c527f8b1b04ea (patch)
treedd416261684f0644e6d123db2de4dfc9bc8573a1 /zone_zfs/src/file_system.rs
parentfd85198b54103fbbfa38029610c2292e39f534bc (diff)
fix: make requested fixes
Diffstat (limited to 'zone_zfs/src/file_system.rs')
-rw-r--r--zone_zfs/src/file_system.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zone_zfs/src/file_system.rs b/zone_zfs/src/file_system.rs
index 2d3457f..060c543 100644
--- a/zone_zfs/src/file_system.rs
+++ b/zone_zfs/src/file_system.rs
@@ -156,7 +156,7 @@ impl FileSystem {
.collect()
}
- pub(super) fn mount_filesystem(&self) -> Result<()> {
+ pub fn mount(&self) -> Result<()> {
match Command::new("zfs")
.arg("mount")
.arg(&self.value)
@@ -168,7 +168,7 @@ impl FileSystem {
}
}
- pub(super) fn unmount_filesystem(&self) -> Result<()> {
+ pub fn unmount(&self) -> Result<()> {
match Command::new("zfs")
.arg("unmount")
.arg(&self.value)
@@ -180,7 +180,7 @@ impl FileSystem {
}
}
- pub(super) fn destroy_filesystem(&self, force: bool) -> Result<()> {
+ pub fn destroy(&self, force: bool) -> Result<()> {
let mut args: Vec<&OsStr> = Vec::new();
let f_arg = &OsString::from("-f");
if force {