mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-22 06:41:17 +00:00
make maxinodes configureable for ext2
SVN-Revision: 6345
This commit is contained in:
parent
bc8f1f36cf
commit
fdea0fabd2
17
Config.in
17
Config.in
@ -103,10 +103,19 @@ comment "Image Options"
|
|||||||
|
|
||||||
source "target/linux/*/image/Config.in"
|
source "target/linux/*/image/Config.in"
|
||||||
|
|
||||||
config TARGET_ROOTFS_FSPART
|
config TARGET_ROOTFS_FSPART
|
||||||
int "Filesystem part size (in MB)"
|
int "Filesystem part size (in MB)"
|
||||||
depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
|
depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
|
||||||
default 16
|
default 16
|
||||||
|
help
|
||||||
|
Allows you to change the filesystem partition size
|
||||||
|
|
||||||
|
config TARGET_ROOTFS_MAXINODE
|
||||||
|
int "Maximum number of inodes in filesystem"
|
||||||
|
depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
|
||||||
|
default 1500
|
||||||
|
help
|
||||||
|
Allows you to change the maximum number of inodes in the filesystem
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
|
|||||||
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
|
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
|
||||||
|
|
||||||
define Image/mkfs/ext2
|
define Image/mkfs/ext2
|
||||||
$(STAGING_DIR)/bin/genext2fs -U -b $(E2SIZE) -I 1500 -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
|
$(STAGING_DIR)/bin/genext2fs -U -b $(E2SIZE) -I $(CONFIG_TARGET_ROOTFS_MAXINODE) -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
|
||||||
$(call Image/Build,ext2)
|
$(call Image/Build,ext2)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user