genext2fs.sh: improve number of blocks calculation
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 30 Dec 2010 22:10:21 +0000 (23:10 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 30 Dec 2010 22:10:21 +0000 (23:10 +0100)
commiteeea3ea6a88a8f1c7511abf0b429297a562e7d30
tree261405a6c1f2c42d9f876c7b473051fa2f58d8e6
parentf3931ca1a159530026adc3964fbb173f8113aef6
genext2fs.sh: improve number of blocks calculation

Closes #2929

Instead of just adding a fixed amount to the blocks used, try to
estimate the real space needed according to the filesystem structure
(bitmaps, inodes, blocks).

The side effect of this is that we no longer significantly overestimate
the size needed for small file systems.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
fs/ext2/genext2fs.sh