]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: add optional 'reason' for illegal_option
authorJan Tulak <jtulak@redhat.com>
Tue, 10 May 2016 07:16:07 +0000 (17:16 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 10 May 2016 07:16:07 +0000 (17:16 +1000)
commitaa3034d47661ebb87cb99ad148dd516f608d6463
treed9fcb1b5bdfd71f6d63af02e8afa9b69acd546f6
parent6de2e6c07b3b9607bdaa993e7cc74bf06be5726f
mkfs: add optional 'reason' for illegal_option

Allow us to tell the user what exactly is wrong with the specified
options.  For example, that the value is too small, instead of just
generic "bad option."

[dchinner: fix whitespace, simplify illegal option message ]

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
mkfs/xfs_mkfs.c