e2fsprogs/misc
Ashish Sangwan fd73a1d254 mke2fs: calculate journal blocks just after fs initialize
We can calculate journal blocks as soon as blocksize is set.
It will help to figure out wrong journal blocks count earlier.
This will save some un-necessary initialization.

Without patch output =>
mke2fs /dev/sdc1 -J size=1048576
mke2fs 1.42.7 (21-Jan-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61312 inodes, 244936 blocks
12246 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=251658240
8 block groups
32768 blocks per group, 32768 fragments per group
7664 inodes per group
Superblock backups stored on blocks:
	32768, 98304, 163840, 229376

Allocating group tables: done
Writing inode tables: done

The requested journal size is 268435456 blocks; it must be
between 1024 and 10240000 blocks.  Aborting.

With patch output =>
mke2fs /dev/sdc1 -J size=1048576
mke2fs 1.42.7 (21-Jan-2013)

The requested journal size is 268435456 blocks; it must be
between 1024 and 10240000 blocks.  Aborting.

Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2013-06-20 22:53:49 -04:00
..
Makefile.in Update misc/Makefile.in using "make depend" 2013-01-16 14:09:21 -05:00
badblocks.8.in badblocks: update man page's description of the -v option 2011-09-15 19:33:34 -04:00
badblocks.c misc: fix gcc -Wall warnings 2013-05-19 20:03:48 -04:00
base_device.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
base_device.tst ChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h: 2000-12-03 06:33:56 +00:00
blkid.8.in blkid: On the man page, show option arguments in the descriptions. 2008-08-14 13:29:50 -04:00
blkid.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
chattr.1.in chattr: clarify that the compression flags are not supported by ext4 2013-05-13 09:10:16 -04:00
chattr.c chattr: allow clearing the extent flag 2013-02-22 22:23:05 -05:00
dumpe2fs.8.in dumpe2fs.8.in: add man page warning about mounted file systems 2011-10-08 13:50:10 -04:00
dumpe2fs.c dumpe2fs: print journal's s_errno field if it is non-zero 2012-05-31 19:18:18 -04:00
e2freefrag.8.in e2freefrag: Update manpage to include e2fsprogs version and release date 2009-08-22 23:41:49 -04:00
e2freefrag.c e2freefrag: use 64-bit rbtree bitmaps 2012-10-04 23:30:23 -04:00
e2freefrag.h e2freefrag: Improve output to include be more like xfs_db's freesp -s 2009-07-24 18:33:46 -04:00
e2image.8.in e2image: man: fix typo 2013-04-21 23:21:32 -04:00
e2image.c e2image: fix crash when using e2image -I with a 64-bit file system 2013-06-15 20:52:08 -04:00
e2initrd_helper.c Fix gcc -Wall nits 2013-01-01 13:28:27 -05:00
e2label.8.in Update man pages to include ext4 in the synposis, instead of just "ext2/ext3" 2009-05-30 12:34:28 -04:00
e2label.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
e2undo.8.in Add e2undo command 2008-04-27 19:42:05 -04:00
e2undo.c e2undo: cast dptr to blk64_t to retrieve block number 2011-11-18 22:14:24 -05:00
e4defrag.8.in e4defrag: update man page about -c option 2010-12-13 09:59:07 -05:00
e4defrag.c e4defrag: handle device symlinks 2012-07-28 17:53:48 -04:00
filefrag.8.in filefrag: improvements to filefrag FIEMAP handling 2012-12-29 22:41:41 -05:00
filefrag.c misc: fix gcc -Wall warnings 2013-05-19 20:03:48 -04:00
findfs.8.in Update version string for WIP release. 2002-08-18 03:38:15 -04:00
findsuper.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
fsck.8.in Make fsck ignore mounted filesystems if given the -M option 2008-02-17 17:35:46 -05:00
fsck.c fsck: don't include sys/signal.h for portability reasons 2012-04-05 15:21:49 -07:00
fsck.h Fix miscellaneous gcc -Wall warnings 2008-03-17 23:17:13 -04:00
ismounted.c misc: cleanup unused variables on MacOS 2012-12-29 17:28:37 -05:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
logsave.8.in * Add support for the -a and -s options to logsave. 2003-04-16 14:05:06 -04:00
logsave.c logsave: fix fd leak which could cause logsave to hang 2012-07-23 18:45:23 -04:00
lsattr.1.in chattr.1.in: Clarify man page. 2004-01-31 20:27:36 -05:00
lsattr.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
mke2fs-hurd.conf Add "big" and "huge" types to mke2fs.conf 2011-10-03 23:46:17 -04:00
mke2fs.8.in mke2fs: don't set root dir UID/GID automatically 2013-06-15 21:51:33 -04:00
mke2fs.c mke2fs: calculate journal blocks just after fs initialize 2013-06-20 22:53:49 -04:00
mke2fs.conf.5.in mke2fs: clarify mke2fs and mke2fs.conf man pages 2013-06-15 21:19:39 -04:00
mke2fs.conf.in mke2fs.conf: allow use of a custom mke2fs.conf file 2012-03-26 21:36:20 -07:00
mklost+found.8.in chattr.1.in: Clarify man page. 2004-01-31 20:27:36 -05:00
mklost+found.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
nls-enable.h Fix more spelling errors found by translators and add pluralization 2011-10-09 17:54:23 -04:00
partinfo.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
profile-to-c.awk Compile the default mke2fs.conf into mke2fs program 2007-07-04 14:27:30 -04:00
tune2fs.8.in Fix spelling typo's in man pages for tune2fs and mke2fs 2012-07-14 19:58:06 -04:00
tune2fs.c misc: fix gcc -Wall warnings 2013-05-19 20:03:48 -04:00
util.c mke2fs: set s_max_mnt_count to -1 by default 2011-09-28 23:20:56 -04:00
util.h mke2fs: set s_max_mnt_count to -1 by default 2011-09-28 23:20:56 -04:00
uuidd.8.in Fix the pathname of /var/lib/uuidd/uuidd.pid in uuidd man page. 2008-01-19 18:13:14 -05:00
uuidd.c Fix more spelling errors found by translators and add pluralization 2011-10-09 17:54:23 -04:00
uuidd.rc Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
uuidgen.1.in Fix typo and clarify the uuidgen man page 2007-08-20 21:46:19 -04:00
uuidgen.c uuidgen: don't use set_com_err_gettext() 2011-10-05 15:03:59 -04:00