diff options
Diffstat (limited to 'zone_core/src/storage')
-rw-r--r-- | zone_core/src/storage/snapshots.rs | 2 | ||||
-rw-r--r-- | zone_core/src/storage/templates.rs | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/zone_core/src/storage/snapshots.rs b/zone_core/src/storage/snapshots.rs index 00a4e37..3e6c35a 100644 --- a/zone_core/src/storage/snapshots.rs +++ b/zone_core/src/storage/snapshots.rs @@ -3,5 +3,5 @@ use crate::Container; pub trait Snapshots { type Error; - fn new(&self, container: Container) -> Result<(), Self::Error>; + fn create(&self, container: Container) -> Result<(), Self::Error>; } diff --git a/zone_core/src/storage/templates.rs b/zone_core/src/storage/templates.rs index 5c5a911..be6abd1 100644 --- a/zone_core/src/storage/templates.rs +++ b/zone_core/src/storage/templates.rs @@ -6,9 +6,4 @@ pub trait Templates { fn list_templates(&self) -> Result<Vec<String>, Self::Error>; fn clone_from(&self, template: String, user: String) -> Result<Container, Self::Error>; - // self.get_file_system(parent)? - // .get_latest_snapshot()? - // .ok_or_else(|| Error::Snapshot("No snapshot found".into()))? - // .clone_new(name) - // .map(|fs| fs.mountpoint().into()) } |