Add back ZFS snapshotter

Fix issue 10889

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2024-10-25 00:10:20 +09:00
parent 8c98e18a91
commit 778defa31f
30 changed files with 2674 additions and 10 deletions

19
vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go generated vendored Normal file
View File

@@ -0,0 +1,19 @@
//go:build solaris
// +build solaris
package zfs
import "strings"
var (
// List of ZFS properties to retrieve from zfs list command on a Solaris platform
dsPropList = []string{"name", "origin", "used", "available", "mountpoint", "compression", "type", "volsize", "quota", "referenced"}
dsPropListOptions = strings.Join(dsPropList, ",")
// List of Zpool properties to retrieve from zpool list command on a non-Solaris platform
zpoolPropList = []string{"name", "health", "allocated", "size", "free", "readonly", "dedupratio"}
zpoolPropListOptions = strings.Join(zpoolPropList, ",")
zpoolArgs = []string{"get", "-Hp", zpoolPropListOptions}
)