Skip to content

Commit

Permalink
NFS: Return a real error code from mount(2)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Sep 1, 2007
1 parent fdb66ff commit fdc6e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdc6e2c

Please sign in to comment.