]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_check: fix exit codes
authorMichael Sinz <michael.sinz@sinz.org>
Tue, 30 Dec 2008 17:32:51 +0000 (18:32 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Tue, 30 Dec 2008 17:32:51 +0000 (18:32 +0100)
commitf891d8c48f8402138b656498fb71259d4fff2a43
treeebec5cfc33adaeebf9a4ab78037dd929dbdea329
parentb9d2d4a296a516a6ed7f8aa0fc0afe34b590b7bb
xfs_check: fix exit codes

xfs_check returns success when the superblock magic is invalid - this makes it
return the serious error exit code (3) for this case, and the invalid arguments
exit code (1) if the arguments to xfs_check were wrong.

A glance at the code suggests that other xfs_check failures appear to return
the correct error codes.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Michael Sinz <michael.sinz@sinz.org>
db/check.c