mistifyio/go-zfs

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

simt2 opened this issue · 0 comments

simt2 commented

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.