make maxinodes configureable for ext2
authorpavlov <pavlov@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Feb 2007 22:35:08 +0000 (22:35 +0000)
committerpavlov <pavlov@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Feb 2007 22:35:08 +0000 (22:35 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6345 3c298f89-4303-0410-b956-a3cf2f4a3e73

Config.in
include/image.mk

index 2efd1ce..65c7dc6 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -103,10 +103,19 @@ comment "Image Options"
 
 source "target/linux/*/image/Config.in"
 
-       config TARGET_ROOTFS_FSPART
-               int "Filesystem part size (in MB)"
-               depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
-               default 16
+    config TARGET_ROOTFS_FSPART
+        int "Filesystem part size (in MB)"
+        depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
+        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
 
index 4f638f0..ec0512f 100644 (file)
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
   E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
   
   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)
   endef
 endif
This page took 0.026006 seconds and 4 git commands to generate.