actually delete invalid snapshots

This commit is contained in:
shoopea
2023-06-29 23:25:34 +02:00
parent 3c785dec8b
commit 0e0e5db303
2 changed files with 4 additions and 6 deletions

2
zfs.go
View File

@@ -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