Whamcloud - gitweb
mke2fs: improve the error message when a non-existent file is specified
authorTheodore Ts'o <tytso@mit.edu>
Mon, 25 Aug 2014 03:54:37 +0000 (23:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Aug 2014 03:54:37 +0000 (23:54 -0400)
commitce2e295d7bccb30dfce212d7d694df41c8980e2e
tree457985b565099ea90e45e74faac62f62ecc37252
parent9ac2930cc9abb0ddca55afead3929e6816c8f353
mke2fs: improve the error message when a non-existent file is specified

If the user does not specify the file system size, and the file does
not exist, give an error message like this:

   The file /tmp/foo.img does not exist and no size was specified.

instead of this:

    Creating regular file /tmp/foo.img
    mke2fs: Device size reported to be zero.  Invalid partition specified, or
    partition table wasn't reread after running fdisk, due to
    a modified partition being busy and in use.  You may need to reboot
    to re-read your partition table.

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