12:04: resize2fs: unclear/incorrect units in size report

Bug #1494625 reported by TJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
e2fsprogs (Ubuntu)
New
Undecided
Unassigned

Bug Description

'man resize2fs' claims "If no units are specified, the units of the size parameter shall be the filesystem blocksize of the filesystem" but makes no mention of the units used in the minimum size report. The tool itself makes no mention of units.

Many users would assume the value was in bytes, or possibly KB.

Despite the fact that the operating deals in file-system block-size units the output appears to be in units of 512-byte sectors.

$ sudo dumpe2fs /dev/fujiVG/home | grep 'Block size'
dumpe2fs 1.42 (29-Nov-2011)
Block size: 4096

$ sudo resize2fs -P /dev/fujiVG/home
resize2fs 1.42 (29-Nov-2011)
Estimated minimum size of the filesystem: 5124061

$ df /home
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/fujiVG-home 30963708 2438852 26952120 9% /home
$ df -B 4096 /home
Filesystem 4K-blocks Used Available Use% Mounted on
/dev/mapper/fujiVG-home 7740927 609713 6738030 9% /home
$ df -B 512 /home
Filesystem 512B-blocks Used Available Use% Mounted on
/dev/mapper/fujiVG-home 61927416 4877704 53904240 9% /home

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.