From 0e0e5db3033aa03118539f11a80d7a4880f42978 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 29 Jun 2023 23:25:34 +0200 Subject: [PATCH] actually delete invalid snapshots --- version.go | 8 ++++---- zfs.go | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/version.go b/version.go index ac4ed02..f8456ff 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "7e8a34a" +var githash = "3c785de" var branch = "v2" -var buildstamp = "2023-06-29_21:19:42" -var commits = "57" -var version = "7e8a34a-b57 - 2023-06-29_21:19:42" +var buildstamp = "2023-06-29_21:24:17" +var commits = "58" +var version = "3c785de-b58 - 2023-06-29_21:24:17" diff --git a/zfs.go b/zfs.go index 611f702..347618c 100644 --- a/zfs.go +++ b/zfs.go @@ -272,8 +272,6 @@ func (fs *ZfsFs) DelSnapshot(name string) error { log.WithFields(log.Fields{"box": fs.zfs.box.name, "fs": fs.path, "name": name}).Debugf("zfs destroy " + fs.path + "@" + name) - return nil - if _, err := fs.zfs.box.Exec("zfs destroy " + fs.path + "@" + name); err != nil { log.WithFields(log.Fields{"box": fs.zfs.box.name, "fs": fs.path, "name": name, "error": err}).Errorf("") return err