mistifyio / go-zfs

Go wrappers for ZFS commands
Apache License 2.0
128 stars 66 forks source link

Consider adding '-p' to dataset.GetProperty ZFS command to receive machine parseable numbers #62

Open simt2 opened 7 years ago

simt2 commented 7 years ago

When getting a size related attribute via dataset.GetProperty because is not a field of the dataset struct (e.g. refquota), it is returned with K, M, `G suffix. Bytes would probably be preferable in most cases and you could still convert them afterwards if you wanted to.