| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
package zfs |
| 5 |
|
| 6 |
import "strings" |
| 7 |
|
| 8 |
var ( |
| 9 |
|
| 10 |
dsPropList = []string{"name", "origin", "used", "available", "mountpoint", "compression", "type", "volsize", "quota", "referenced", "written", "logicalused", "usedbydataset"} |
| 11 |
|
| 12 |
dsPropListOptions = strings.Join(dsPropList, ",") |
| 13 |
|
| 14 |
|
| 15 |
zpoolPropList = []string{"name", "health", "allocated", "size", "free", "readonly", "dedupratio", "fragmentation", "freeing", "leaked"} |
| 16 |
|
| 17 |
zpoolPropListOptions = strings.Join(zpoolPropList, ",") |
| 18 |
zpoolArgs = []string{"get", "-p", zpoolPropListOptions} |
| 19 |
) |