Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdc6e2c8 authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust
Browse files

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: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent fdb66ff4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1166,7 +1166,7 @@ static int nfs_validate_mount_data(struct nfs_mount_data **options,


		status = nfs_try_mount(&args, mntfh);
		status = nfs_try_mount(&args, mntfh);
		if (status)
		if (status)
			return -EINVAL;
			return status;


		/*
		/*
		 * Translate to nfs_mount_data, which nfs_fill_super
		 * Translate to nfs_mount_data, which nfs_fill_super