Whamcloud - gitweb
mke2fs: fix creating a file system image w/o a pre-existing file
authorTheodore Ts'o <tytso@mit.edu>
Tue, 3 Aug 2021 01:08:01 +0000 (21:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Aug 2021 01:22:41 +0000 (21:22 -0400)
commit53464654bd33e58e3fff079f34261b823d839f3b
treeafdbd8cbbba865d70fc16defeb4e5d877ec2cdf0
parentea97af65c5194137cec7bd770b79cd601d2a92a0
mke2fs: fix creating a file system image w/o a pre-existing file

The mke2fs program should allow creating a file system image when an
explicit file system size is specified, even if the file doesn't yet
exist.  By deferring the call to check_plausible() in commit
942b00cb9d2f ("mke2fs: do not warn about a pre-existing partition
table when using a non-zero offset") this behaviour was broken.

Fix this regression by explicitly creating the file if the file system
size is specified.

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