From b1631cce648ee87e39b602899d77ad59a81acc66 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 27 Jan 2008 19:30:27 -0500 Subject: [PATCH] Create new filesystems with 256-byte inodes by default 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" --- misc/mke2fs.conf | 6 +++++- tests/m_large_file/expect.1 | 15 ++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/misc/mke2fs.conf b/misc/mke2fs.conf index 9e59123..171b6bc 100644 --- a/misc/mke2fs.conf +++ b/misc/mke2fs.conf @@ -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 diff --git a/tests/m_large_file/expect.1 b/tests/m_large_file/expect.1 index a863e96..5239acc 100644 --- a/tests/m_large_file/expect.1 +++ b/tests/m_large_file/expect.1 @@ -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: @@ -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 -- 1.8.3.1