Skip to content

Commit fdc6e2c

Browse files
chuckleverTrond Myklebust
authored andcommitted
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>
1 parent fdb66ff commit fdc6e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ static int nfs_validate_mount_data(struct nfs_mount_data **options,
11661166

11671167
status = nfs_try_mount(&args, mntfh);
11681168
if (status)
1169-
return -EINVAL;
1169+
return status;
11701170

11711171
/*
11721172
* Translate to nfs_mount_data, which nfs_fill_super

0 commit comments

Comments
 (0)