From 0ff0362f978766d1c54b591d0713fd9adf5c9c22 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Thu, 29 Nov 2012 17:49:50 +0000 Subject: AA: build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of r34408. 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 Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34412 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- Config.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Config.in') diff --git a/Config.in b/Config.in index bd4f63ea43..19c8edfb9d 100644 --- a/Config.in +++ b/Config.in @@ -124,6 +124,13 @@ menu "Target Images" help Allows you to change the maximum number of inodes in the root filesystem + config TARGET_ROOTFS_RESERVED_PCT + int "Percentage of reserved blocks in root filesystem" + depends TARGET_ROOTFS_EXT4FS + default 5 + help + Allows you to change the percentage of reserved blocks in the root filesystem + endmenu menu "Global build settings" -- cgit v1.2.3