]> err.no Git - linux-2.6/commitdiff
NFS: Return a real error code from mount(2)
authorChuck Lever <chuck.lever@oracle.com>
Wed, 29 Aug 2007 21:58:59 +0000 (17:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 1 Sep 2007 14:14:39 +0000 (10:14 -0400)
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>
fs/nfs/super.c

index 66a223b22a8079e9e0b067442e7b6ed1e32b4f77..9cd0828010cff7a7e41f4438af6f62593a3513cf 100644 (file)
@@ -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