diff options
author | NeilBrown <neilb@suse.de> | 2012-07-16 08:43:28 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-07-16 08:53:32 -0400 |
commit | 76908c3f14a12e865054ea5d6e4cad201c28839a (patch) | |
tree | 723919d08d2264b0e6de86d9fc8d3ad14569fd22 /tools/mountstats | |
parent | fd27c638898010438d404cd17120729ef1d680e2 (diff) | |
download | nfs-utils-76908c3f14a12e865054ea5d6e4cad201c28839a.tar.gz nfs-utils-76908c3f14a12e865054ea5d6e4cad201c28839a.tar.xz nfs-utils-76908c3f14a12e865054ea5d6e4cad201c28839a.zip |
mount.nfs: restore correct error status when umount fails
If nfs-utils is built without --enable-libmount-mount, then
an unmount that failed due to the filesystem being busy will
exit with '16' - EX_FILEIO.
Autofs apparently relies on this.
When built with --enable-libmount-mount, the same case will
exit with '32' - EX_FAIL. Normally this is reserved for
internal errors.
This patch restores the use of EX_FILEIO for errors from umount.
Reviewed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tools/mountstats')
0 files changed, 0 insertions, 0 deletions