]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: add EX_SUCCESS exit code
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 15:28:33 +0000 (11:28 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 25 Sep 2007 01:50:15 +0000 (11:50 +1000)
commitd54d1389284570b163f6aa12622d15c6b6ecea17
treeee3787c4dfedd35469cc9ca512241690ce1a5a0c
parentbda03ca689ff8b410a778299e5c6f4a14fcc85f8
mount.nfs: add EX_SUCCESS exit code

We've had some recent trouble, especially in the umount code, that appears
to be due to functions returning a 1 or a 0 return code when they should be
returning a mount exit code (such as EX_FAIL) or a 0.

To help clearly distinguish these two classes of functions, define an
EX_SUCCESS exit code, which is equal to zero.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
support/include/xcommon.h