Otavio Salvador <[EMAIL PROTECTED]> wrote: > Jim Meyering <[EMAIL PROTECTED]> writes: > >> mkpartfs ext2 2 10 would erroneously report "file system too small" >> for some small (single-group) partitions. It would also fail to >> report "file system too small" in some cases, and instead continue >> on to into inode-allocation code where it'd report "File system >> full!" >> * libparted/fs/ext2/ext2_mkfs.c (compute_block_counts): New function, >> factored out of... >> (ext2_mkfs): ...here. Call compute_block_counts rather than >> open-coded it. When decrementing numblocks, call >> compute_block_counts >> again, to recompute all of the derived values. >> Require at least 14 free blocks in a 16-inode-per-group partition. >> * tests/t1500-small-ext2.sh: New file. Test for the above. >> * tests/Makefile.am (TESTS): Add t1500-small-ext2.sh. > > All this looks good but I'd like to ask if you might try to write a
Thanks for the quick feedback. > test also on the library unittesting so we can know if the library > isn't broken again too... > > Can you try? That would not be a good way to spend my limited time. Besides, why bother? The above test exercises the affected code already, and since no one will be changing the public command-line interface any time soon, it should be more than enough to keep the bug from resurfacing. _______________________________________________ parted-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/parted-devel

