Updating dependency github.com/mistifyio/go-zfs to version v2.1.2-0.20190413222219-f784269be439+incompatible

This commit is contained in:
Davanum Srinivas
2020-03-24 13:29:27 -04:00
parent d1a1e86182
commit a850e2b914
11 changed files with 245 additions and 48 deletions

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

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