tools: genext2fs: add support for blocksize != 1024
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Jun 2014 12:43:46 +0000 (12:43 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Jun 2014 12:43:46 +0000 (12:43 +0000)
commit7713a94e3ed54f5053b9758ef6b1e09348cf8018
tree5e8127f47766a36ca113143151c372a5abce66a4
parenta4e2d3fd0ac214c4e364e0e909d83a77da8b1837
tools: genext2fs: add support for blocksize != 1024

This patch series is extracted from
http://ftp.de.debian.org/debian/pool/main/g/genext2fs/genext2fs_1.4.1-4.debian.tar.gz

The patches are used in Debian for quite a long time, so I assume that
this is solid material. At least, my Ubuntu host fsck.ext4 does not bark :-)

The goal is to allow building filesystems with larger blocksizes instead of the
current default of 1k. This should improve performance and lifetime when the
filesystem is stored e.g. on a SD card (on Raspberry Pi/I2SE Duckbill for example)
which uses internal flash memory. Writing to flash memory is slow because writing
the data of one block results in erasing a whole erase block of the flash memory.
Thus it is preferable to align the filesystem block size on a flash device with
the erase blocksize, or at least bring it closer to the later one, to avoid
unnecessary write amplification.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40921 3c298f89-4303-0410-b956-a3cf2f4a3e73
tools/genext2fs/patches/100-c99_scanf.patch [new file with mode: 0644]
tools/genext2fs/patches/200-autoconf.patch [new file with mode: 0644]
tools/genext2fs/patches/300-blocksize-creator.patch [new file with mode: 0644]
tools/genext2fs/patches/400-byteswap_fix.patch [new file with mode: 0644]