On Wed, Aug 13, 2014 at 01:53:32PM +0000, Thibault, Daniel wrote:
>
> The fix is easy: everywhere resize2fs reports '%llu blocks'
>(there are 4 such string fragments), state the block size used: '%llu
>(%dk) blocks'.
That's a good suggestion, thanks.
> It would also be more reassuring to the user if fractional block
>sizes were not rounded down (in the example above, the final file
>system size was not 450918 blocks but rather 450918.875 blocks or
>450918 and 7/8 blocks). Maybe the same '+' convention as fdisk
>should be used.
But we *do* round down the file system to whole blocks. In your
example, the final file system size is 450918 --- and the last 3584
bytes are not used by the file system. Remember, the file system size
is not necessarly the same as the partition size.
(And in some cases, the due to the minimum size needed for the block
group's inode table, sometimes the file system size can be
substantially smaller --- tens of kilobytes --- smaller than the
partition size.)
Cheers,
- Ted
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]