Whamcloud - gitweb
mke2fs: don't fail creating the journal if /etc/mtab is missing
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Apr 2012 19:30:02 +0000 (12:30 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 5 Apr 2012 19:30:02 +0000 (12:30 -0700)
commit304e11c2c1878ef392095d10bf5e93f7ea7131e4
tree5de3e04e3d2f8d87d0ea667bf133656c5d55817c
parente64e6761aa22f31123a91206a5686526f7b9c6c0
mke2fs: don't fail creating the journal if /etc/mtab is missing

The ext2fs_add_journal_inode() function calls
ext2fs_check_mount_point(), which can fail if /etc/mtab is missing.
This causes mke2fs to fail in the middle of the file system format
process; mke2fs calls ext2fs_check_mount_point() already (and has
appropriate fallbacks that calls fails), so add a flag so that mke2fs
can request ext2fs_add_journal_inode() to skip trying to call
e2fsck_check_mount_point().

Addresses-Sourceforge-Bug: #3509398

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/mkjournal.c
misc/mke2fs.c