diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-11-29 17:37:15 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-11-29 17:37:15 +0000 |
commit | 2dfb18cc0b07ab93fbb71802ad7681af031c9ec3 (patch) | |
tree | caf9d6edbfa621a282bf9bb2bc04d8a7dd4294b9 /target/linux/generic/config-3.6 | |
parent | 3728865f2715a722c6d3ca26aa5bb3078086d082 (diff) | |
download | master-187ad058-2dfb18cc0b07ab93fbb71802ad7681af031c9ec3.tar.gz master-187ad058-2dfb18cc0b07ab93fbb71802ad7681af031c9ec3.tar.bz2 master-187ad058-2dfb18cc0b07ab93fbb71802ad7681af031c9ec3.zip |
build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted space
The genext2fs tool will 'reserve' 5% of the image size by default,
apparently by creating a huge lost+found directory. In fact it seemed to
be much more than 5% in practice — I saw an image with 8MiB used, and
recovered about 2MiB of it by deleting the 'empty' lost+found directory:
/dev/loop0 48377 8482 37438 19% /mnt/spare
# rmdir lost+found/
/dev/loop0 48377 6014 39906 14% /mnt/spare
This makes it configurable, but leaves it at the genext2fs default
of 5% for now. It should probably be changed to default to zero, but
that can be a separate patch.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34408 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/config-3.6')
0 files changed, 0 insertions, 0 deletions