1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:55:55 +02:00

make maxinodes configureable for ext2

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6345 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov 2007-02-22 22:35:08 +00:00
parent 5c73c11052
commit 335f3c13a9
2 changed files with 14 additions and 5 deletions

View File

@ -107,6 +107,15 @@ source "target/linux/*/image/Config.in"
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

View File

@ -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