mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
fs/ext2: add options for extra space and extra inodes
Add two options to the ext2 filesystem, one to add extra free space, one to add extra free inodes. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Cc: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
7057555d00
commit
301c18e123
@@ -45,13 +45,29 @@ config BR2_TARGET_ROOTFS_EXT2_LABEL
|
||||
string "filesystem label"
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
|
||||
int "size in blocks (leave at 0 for auto calculation)"
|
||||
int "exact size in blocks (leave at 0 for auto calculation)"
|
||||
default 0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_INODES
|
||||
int "inodes (leave at 0 for auto calculation)"
|
||||
int "exact number of inodes (leave at 0 for auto calculation)"
|
||||
default 0
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS
|
||||
int "extra size in blocks" if BR2_TARGET_ROOTFS_EXT2_BLOCKS = 0
|
||||
default 0
|
||||
help
|
||||
Enter here the number of extra blocks of free space you
|
||||
want on your filesystem. By default, Buildroot will not
|
||||
leave much space free.
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES
|
||||
int "extra inodes" if BR2_TARGET_ROOTFS_EXT2_INODES = 0
|
||||
default 0
|
||||
help
|
||||
Enter here the number of extra free inodes you want on
|
||||
your filesystem. By default, Buildroot will not leave
|
||||
many free inodes.
|
||||
|
||||
config BR2_TARGET_ROOTFS_EXT2_RESBLKS
|
||||
int "reserved blocks percentage"
|
||||
default 0
|
||||
|
||||
@@ -9,10 +9,12 @@ EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
||||
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
|
||||
endif
|
||||
EXT2_OPTS += -B $(BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS)
|
||||
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
|
||||
EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
|
||||
endif
|
||||
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
|
||||
|
||||
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
|
||||
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
|
||||
|
||||
Reference in New Issue
Block a user