utils_solaris.go 663 B

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