fix zfs send for expired snapshots

This commit is contained in:
shoopea
2023-09-10 18:38:53 +02:00
parent 3b1d0fc850
commit 2ca0695a1f
3 changed files with 19 additions and 11 deletions

3
zfs.go
View File

@@ -311,6 +311,9 @@ func (fs *ZfsFs) AddSnapshot(s *ZfsSnapshot) error {
}
func (fs *ZfsFs) ValidSnapshots() []*ZfsSnapshot {
log.WithFields(log.Fields{"box": fs.zfs.box.name, "fs": fs.path}).Debugf("starting")
defer log.WithFields(log.Fields{"box": fs.zfs.box.name, "fs": fs.path}).Debugf("done")
tab := make([]*ZfsSnapshot, 0)
for _, s := range fs.snapshots {