mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-24 17:35:01 +01:00
12 lines
278 B
Go
12 lines
278 B
Go
package cmd
|
|
|
|
import "github.com/zrepl/zrepl/zfs"
|
|
|
|
type NoPrunePolicy struct{}
|
|
|
|
func (p NoPrunePolicy) Prune(fs *zfs.DatasetPath, versions []zfs.FilesystemVersion) (keep, remove []zfs.FilesystemVersion, err error) {
|
|
keep = versions
|
|
remove = []zfs.FilesystemVersion{}
|
|
return
|
|
}
|