aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-23 22:00:37 +0200
committerGitHub <noreply@github.com>2022-09-23 22:00:37 +0200
commit40e8bcb8482f2a1f60b93524ceda05770d20739e (patch)
tree4a6dcc11e2bf7eba044e25c3d2b0500ac4cef0c5 /vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go
parent4d475ae87bd67cc94f89d6ed63c0b06ac84315a1 (diff)
parentf5e83f684952d1f97eeb59a3d1c42000be980505 (diff)
downloadpodman-40e8bcb8482f2a1f60b93524ceda05770d20739e.tar.gz
podman-40e8bcb8482f2a1f60b93524ceda05770d20739e.tar.bz2
podman-40e8bcb8482f2a1f60b93524ceda05770d20739e.zip
Merge pull request #15900 from rhatdan/VENDOR
Update vendor of containers(image, common, buildah, storage)
Diffstat (limited to 'vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go')
-rw-r--r--vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go b/vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go
new file mode 100644
index 000000000..c6bf6d87a
--- /dev/null
+++ b/vendor/github.com/mistifyio/go-zfs/v3/utils_solaris.go
@@ -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", "-p", zpoolPropListOptions}
+)