utils_notsolaris.go 713 B

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