File: utils_notsolaris.go

package info (click to toggle)
golang-go-zfs 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, experimental, forky, sid, trixie
  • size: 212 kB
  • sloc: makefile: 17
file content (19 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//go:build !solaris
// +build !solaris

package zfs

import "strings"

var (
	// List of ZFS properties to retrieve from zfs list command on a non-Solaris platform.
	dsPropList = []string{"name", "origin", "used", "available", "mountpoint", "compression", "type", "volsize", "quota", "referenced", "written", "logicalused", "usedbydataset"}

	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", "fragmentation", "freeing", "leaked"}

	zpoolPropListOptions = strings.Join(zpoolPropList, ",")
	zpoolArgs            = []string{"get", "-p", zpoolPropListOptions}
)