]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: Set a clean output in case of invalid inode size
authorCarlos Maiolino <cmaiolino@redhat.com>
Mon, 16 Apr 2012 20:56:56 +0000 (20:56 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-125.americas.sgi.com>
Wed, 26 Sep 2012 17:58:37 +0000 (12:58 -0500)
Remove an unnecessary usage() call after a mkfs failure due an invalid inode
size.
A call to usage() at this point confuses the output message which may cause the
user to think it used wrong arguments to mkfs, instead of an invalid inode size.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
mkfs/xfs_mkfs.c

index d636549e27513eacd14a09da3423382fda9a1695..be931e34fd57a5291fe4fd28ba4933f6ff8c49e7 100644 (file)
@@ -1898,7 +1898,7 @@ _("block size %d cannot be smaller than logical sector size %d\n"),
                        fprintf(stderr,
        _("allowable inode size with %d byte blocks is between %d and %d\n"),
                                blocksize, XFS_DINODE_MIN_SIZE, maxsz);
-               usage();
+               exit(1);
        }
 
        /* if lsu or lsunit was specified, automatically use v2 logs */