The man page for df(1) says that with -H, it'll "se unit suffixes...based on powers of 1024" while with -h it'll "se unit suffixes based on powers of 1000", but it seems like it's the other way around:
Am I missing something?
Code:
# zfs create -o refquota=64000 storage/test # 64 KB = 64 * 1000
# df -b storage/test # 512 * 125 = 64000
Filesystem 512-blocks Used Avail Capacity Mounted on
storage/test 125 71 54 57% /storage/test
# df -H storage/test # should be 1 KB = 1024 ??
Filesystem Size Used Avail Capacity Mounted on
storage/test 64k 36k 27k 57% /storage/test
# df -h storage/test # should be 1 KB = 1000 ??
Filesystem Size Used Avail Capacity Mounted on
storage/test 62k 35k 27k 57% /storage/test
# df -k storage/test
Filesystem 1024-blocks Used Avail Capacity Mounted on
storage/test 62 35 27 57% /storage/test