Whamcloud - gitweb
Create new filesystems with 256-byte inodes by default
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Jan 2008 00:30:27 +0000 (19:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Jan 2008 00:30:27 +0000 (19:30 -0500)
This makes it easier to upgrade to ext4 in the future, and it speeds
up extended attributes handling --- important on SELinux systems!

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.conf
tests/m_large_file/expect.1

index 9e59123..171b6bc 100644 (file)
@@ -1,15 +1,19 @@
 [defaults]
        base_features = sparse_super,filetype,resize_inode,dir_index
        blocksize = 4096
-       inode_ratio = 8192
+       inode_size = 256
+       inode_ratio = 16384
 
 [fs_types]
        small = {
                blocksize = 1024
+               inode_size = 128
                inode_ratio = 4096
        }
        floppy = {
                blocksize = 1024
+               inode_size = 128
+               inode_ratio = 8192
        }
        news = {
                inode_ratio = 4096
index a863e96..5239acc 100644 (file)
@@ -1,3 +1,4 @@
+Warning: 256-byte inodes not usable on older systems
 Filesystem label=
 OS type: Linux
 Block size=4096 (log=2)
@@ -20,7 +21,7 @@ Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
-test_filesys: 11/64 files (9.1% non-contiguous), 15/16384 blocks
+test_filesys: 11/64 files (9.1% non-contiguous), 17/16384 blocks
 Exit status is 0
 
 Filesystem volume name:   <none>
@@ -35,7 +36,7 @@ Filesystem OS type:       Linux
 Inode count:              64
 Block count:              16384
 Reserved block count:     819
-Free blocks:              16369
+Free blocks:              16367
 Free inodes:              53
 First block:              0
 Block size:               4096
@@ -44,13 +45,13 @@ Reserved GDT blocks:      3
 Blocks per group:         32768
 Fragments per group:      32768
 Inodes per group:         64
-Inode blocks per group:   2
+Inode blocks per group:   4
 Mount count:              0
 Check interval:           15552000 (6 months)
 Reserved blocks uid:      0
 Reserved blocks gid:      0
 First inode:              11
-Inode size:              128
+Inode size:              256
 Default directory hash:   tea
 
 
@@ -58,7 +59,7 @@ Group 0: (Blocks 0-16383)
   Primary superblock at 0, Group descriptors at 1-1
   Reserved GDT blocks at 2-4
   Block bitmap at 5 (+5), Inode bitmap at 6 (+6)
-  Inode table at 7-8 (+7)
-  16369 free blocks, 53 free inodes, 2 directories
-  Free blocks: 15-16383
+  Inode table at 7-10 (+7)
+  16367 free blocks, 53 free inodes, 2 directories
+  Free blocks: 17-16383
   Free inodes: 12-64