]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: add flag -e to modify exit code for corrected errors
authorJan Tulak <jtulak@redhat.com>
Tue, 27 Mar 2018 02:27:31 +0000 (21:27 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Mar 2018 02:27:31 +0000 (21:27 -0500)
commit7c3e94a3001292946521fb4cfac841e9ac32691b
tree2e6859dfaee013d61139a903fa65752a359e366c
parent4aa3c02fde3547b24707d379f8d994c8e41208c4
xfs_repair: add flag -e to modify exit code for corrected errors

xfs_repair without -n ends with a return code 0 if it finished ok,
no matter if there were some errors in the fs, or not. The new flag
-e means that we can avoid screenscraping and parsing text output to
detect if an error was found (and corrected).

If something could not be corrected or in any other case than the "found
something but fixed it all," the behaviour with this flag is unchanged.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
[sandeen: make -e and -n exclusivity clear in manpage synopsis]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
man/man8/xfs_repair.8
repair/xfs_repair.c