Random Project

Free space monitoring could be wrong

Good script, it’s just I believe that free space should be monitored using something like “zfs list” because “zpool list” always shows more that actually available.
Right now zpool list says following on my system:
NAME SIZE ALLOC FREE
pool0 5.33T 4.27T 1.06T
But “zfs list” shows less:
NAME USED AVAIL
pool0 4.76T 494G