Errorneous block size calculation
Bug #180415 reported by
Pavel Mlčoch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: coreutils
df display this header
"Filesystem 1K-blocks Used Available Use% Mounted on"
but I`ve 4K blocksize too and value in this column is count of 4K blocks.
To post a comment you must log in.
I was about to file a bug report when I saw this.
I believe it should take the blocksize from dumpe2fs(8) or something, and go ahead and set the BLOCKSIZE env var.
Try:
$ BLOCKSIZE=4096 df
It gives correct values (apparently)
However it doesn't seem to affect 'df -h'/'du -h' -- funny!
Bundlers should apparently decide on setting BLOCK_SIZE or BLOCKSIZE (recommended) by default on install. Maybe on /etc/profile or something.