I've just noticed any of ext{2,3,4} filesystems i'm trying to create on 500G HDD don't use all available space (466G). I've also tried reiser3, xfs, jfs, btrfs and even vfat. All of them create fs of size 466G (as shown by df -h). However, ext* creates fs of 459G. Disabling reserved blocks increases space available to user, but size of fs is still 459G.
The same is for 1Tb HDD: 932G reiserfs, 917G ext4.
So, what is this 1.5% difference? Why it happens and is there the way to make ext fill whole volume?
UPD: All tests done on the same machine, on the same HDD etc. It doesn't matter how 466G differs from marketing 500G. The problem is it differs for different FS'.
About df - it shows total FS size, used size and free space. In this case I have:
for reiserfs:
/dev/sda1 466G 33M 466G 1% /mnt
for ext4:
/dev/sda1 459G 198M 435G 1% /mnt
If I turn root block reservation off, 435G changes to 459G - full size of fs (minus 198M). But fs itself is still 459G for ext4 and 466G for reiser!
UPD2: Filling volumes with real data via dd:
reiserfs:
fs:~# dd if=/dev/zero of=/mnt/1 dd: запись в «/mnt/1»: На устройстве кончилось место 975702649+0 записей считано 975702648+0 записей написано скопировано 499559755776 байт (500 GB), 8705,61 c, 57,4 MB/c
ext2 with blocks reservation turned off (mke2fs -m 0):
fs:~# dd if=/dev/zero of=/mnt/1 dd: запись в «/mnt/1»: На устройстве кончилось место 960356153+0 записей считано 960356152+0 записей написано скопировано 491702349824 байта (492 GB), 8870,01 c, 55,4 MB/c
Sorry for russian, but i've run it in default locale and repeating it is too long. It doesn't matter, dd output is obvious.
So, it turns out that mke2fs really creates smaller filesystem, than other mkfs's.
LANG=C foo
orLC_ALL=C foo