{{define "content"}} {{template "flash" .}} {{with .Data}} {{if .S.PoolsErr}}
{{.S.PoolsErr}}
{{end}} {{$form := .Form}} {{range .S.Pools}}

{{.Name}} {{.Health}}

size {{bytes .Size}}
allocated {{bytes .Alloc}} ({{.CapPct}}%)
free {{bytes .Free}}
fragmentation {{.FragPct}}%
last scrub {{if .LastScrub}}{{dtp .LastScrub}} ({{agop .LastScrub}}){{else}}never{{end}}
errors {{if .Errors}}{{.Errors}}{{else}}—{{end}}
{{if .Scan}}

scan: {{.Scan}}

{{end}} {{if .Status}}

status: {{.Status}}

{{end}} {{if .Action}}

action: {{.Action}}

{{end}}
{{range .Vdevs}} {{end}}
vdevStateReadWriteCksum
{{.Name}} {{if .State}}{{.State}}{{end}} {{.Read}}{{.Write}}{{.Cksum}} {{.Note}}
New dataset in {{.Name}}

Creates {{.Name}}/<name> (parents are created too), mounts it at /{{.Name}}/<name> and chowns the mountpoint to the owner.

{{else}}

No ZFS pools found.

{{end}}

Datasets

{{range .Datasets}}{{end}}
DatasetMountpointUsedReferencedAvailable
{{.Name}}{{.Mountpoint}} {{bytes .Used}}{{bytes .Refer}}{{bytes .Avail}} {{if hasPrefix .Mountpoint "/"}}share… {{end}}{{if .CanDestroy}}
destroy…
{{end}}

Only empty datasets (no data, no children, no snapshots) can be destroyed here.

{{end}} {{end}}