summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-08-29 17:58:59 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-09-01 10:14:39 -0400
commitfdc6e2c8c0dc0ac702fca0b802f5d9ae99a54bb6 (patch)
tree2576d28a27019a9ba7118a2291985599a44e2cc4 /fs/nfs
parentfdb66ff4ace3c4e18809b9b71dfcce1692143147 (diff)
downloadop-kernel-dev-fdc6e2c8c0dc0ac702fca0b802f5d9ae99a54bb6.zip
op-kernel-dev-fdc6e2c8c0dc0ac702fca0b802f5d9ae99a54bb6.tar.gz
NFS: Return a real error code from mount(2)
Don't filter the return code from the in-kernel rpcbind or NFS mount clients. Return the real error code so that callers of the new NFS text-based mount API can apply a useful retry strategy. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 66a223b2..9cd0828 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1166,7 +1166,7 @@ static int nfs_validate_mount_data(struct nfs_mount_data **options,
status = nfs_try_mount(&args, mntfh);
if (status)
- return -EINVAL;
+ return status;
/*
* Translate to nfs_mount_data, which nfs_fill_super
OpenPOWER on IntegriCloud