e2fsprogs/e2fsprogs-1.38-inode_size.patch

41 lines
1.2 KiB
Diff

--- misc/mke2fs.8.in
+++ misc/mke2fs.8.in
@@ -30,6 +30,10 @@
.I bytes-per-inode
]
[
+.B \-I
+.I inode-size
+]
+[
.B \-j
]
[
@@ -217,7 +221,14 @@
be smaller than the blocksize of the filesystem, since then too many
inodes will be made. Be warned that is not possible to expand the number
of inodes on a filesystem after it is created, so be careful deciding the
-correct value for this parameter.
+correct value for this parameter.
+.TP
+.BI \-I " inode-size"
+Specify the inode size. The default inode-size used by
+.B mke2fs
+is 128.
+.I inode-size
+can be 128, 256, 512 or 1024. This value generally shouldn't be changed!
.TP
.B \-j
Create the filesystem with an ext3 journal. If the
--- misc/mke2fs.c
+++ misc/mke2fs.c
@@ -94,7 +94,7 @@
static void usage(void)
{
fprintf(stderr, _("Usage: %s [-c|-t|-l filename] [-b block-size] "
- "[-f fragment-size]\n\t[-i bytes-per-inode] [-j] [-J journal-options]"
+ "[-f fragment-size]\n\t[-i bytes-per-inode] [-I inode-size] [-j] [-J journal-options]"
" [-N number-of-inodes]\n\t[-m reserved-blocks-percentage] "
"[-o creator-os] [-g blocks-per-group]\n\t[-L volume-label] "
"[-M last-mounted-directory] [-O feature[,...]]\n\t"