Skip to contentSkip to conversation

e2fsprogs: remove duplicate default values in mke2fs.conf

PATCH In review Xose Vazquez Perez 2 participants 2 messages Feb 11, 2017 – Feb 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e2fsprogs: remove duplicate default values in mke2fs.conf

---
 misc/mke2fs.conf.in | 3 ---
 1 file changed, 3 deletions(-)
misc/mke2fs.conf.in +0 -3
index 812f7c74..3d612594 100644
@@ -12,11 +12,9 @@
 	}
 	ext4 = {
 		features = has_journal,extent,huge_file,flex_bg,uninit_bg,64bit,dir_nlink,extra_isize
-		inode_size = 256
 	}
 	ext4dev = {
 		features = has_journal,extent,huge_file,flex_bg,uninit_bg,inline_data,64bit,dir_nlink,extra_isize
-		inode_size = 256
 		options = test_fs=1
 	}
 	small = {
@@ -47,6 +45,5 @@
 		blocksize = -1
 	}
 	hurd = {
-	     blocksize = 4096
 	     inode_size = 128
 	}
Signature · 1 line
2.11.1
#1 lore raw

misc/mke2fs.conf.in line 20

Quoted 12 lines · Xose Vazquez Perez
misc/mke2fs.conf.in +0 -2
@@ -12,11 +12,9 @@
 	}
 	ext4 = {
 		features = has_journal,extent,huge_file,flex_bg,uninit_bg,64bit,dir_nlink,extra_isize
-		inode_size = 256
 	}
 	ext4dev = {
 		features = has_journal,extent,huge_file,flex_bg,uninit_bg,inline_data,64bit,dir_nlink,extra_isize
-		inode_size = 256
 		options = test_fs=1
 	}
 	small = {

These are duplicate values (although they don't do any harm).

misc/mke2fs.conf.in line 49

Quoted 7 lines
misc/mke2fs.conf.in +0 -1
@@ -47,6 +45,5 @@
 		blocksize = -1
 	}
 	hurd = {
-	     blocksize = 4096
 	     inode_size = 128
 	}

This value *is* required. The Hurd has a re-implementation of the ext2/3/4 file system, which is very limited. One of its limitations is the block size must be equal to the page size (and it only works on
x86.) So the "blocksize = 4096" is required so that:

	mke2fs -o hurd /tmp/foo.img 1024

will use a 4k block size even for small file systems.

- Ted