[LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

Bastian Bittorf bb at npl.de
Mon Nov 21 22:37:36 PST 2016


* John Crispin <john at phrozen.org> [21.11.2016 16:06]:
> 
> 
> On 21/11/2016 13:56, John Crispin wrote:
> > NAK, please dont fiddle with inode counts. change the blocksize or the
> > default mkfs_ext4 uses.

thanks for your input.

But i'am unsure now: when changing the blocksize ("CONFIG_TARGET_EXT4_BLOCKSIZE")
I have to override the user's choice and changing 'mkfs_ext4.c' directly
(e.g. auto-adjusting blocksize for <=16 megabytes) seems overkill and
we are moving away from the upstream implementation.

For making it more clear: we only have a problem when choosing small
partitions (e.g. 16mb, the default) with many packages installed. The patch
should prevent "No space left on device" (but there is enough free space!).

So what is better: just changing the default EXT4_BLOCKSIZE?
IMHO our problem _is_ the inode_count and not the blocksize, so
why not change that? Maybe only change it for small partitions or
give a 'lower threshold' of 2048?

bye, bastian



More information about the Lede-dev mailing list