[PATCH] fix inode ratio warning message in mke2fs (minor nit)
Eric Sandeen <[email protected]>
| Newsgroups | gmane.comp.file-systems.ext2.devel |
|---|---|
| Message-ID | <[email protected]> |
Minor deal, but... [root@localhost e2fsprogs-1.38]# misc/mke2fs -i 67108864 /dev/loop0 mke2fs 1.38 (30-Jun-2005) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 104 inodes, 102400 blocks ... [root@localhost e2fsprogs-1.38]# (works) [root@localhost e2fsprogs-1.38]# misc/mke2fs -i 67108865 /dev/loop0 mke2fs: invalid inode ratio 67108865 (min 1024/max 65536) (fails) sooo 67108864 works but 65536 is the max...? Patch makes the warning message consistent w/ the (larger) value allowed by the code. -Eric ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Ext2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ext2-devel
fix_inode_ratio_warning
(text/plain, 447 B)
Index: e2fsprogs-1.38/misc/mke2fs.c
===================================================================
--- e2fsprogs-1.38.orig/misc/mke2fs.c
+++ e2fsprogs-1.38/misc/mke2fs.c
@@ -1035,7 +1035,7 @@ static void PRS(int argc, char *argv[])
com_err(program_name, 0,
_("invalid inode ratio %s (min %d/max %d)"),
optarg, EXT2_MIN_BLOCK_SIZE,
- EXT2_MAX_BLOCK_SIZE);
+ EXT2_MAX_BLOCK_SIZE * 1024);
exit(1);
}
break;