projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d67fa4d
)
NFSv4: handle nfs4_get_referral failure
author
Dominique Martinet
<
[email protected]
>
Thu, 4 Jun 2015 15:04:17 +0000
(17:04 +0200)
committer
Trond Myklebust
<
[email protected]
>
Wed, 10 Jun 2015 22:28:02 +0000
(18:28 -0400)
nfs4_proc_lookup_common is supposed to return a posix error, we have to
handle any error returned that isn't errno
Reported-by: Olga Kornievskaia <
[email protected]
>
Signed-off-by: Frank S. Filz <
[email protected]
>
Signed-off-by: Dominique Martinet <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 55e1e3af23a3d3f2313f977b185eb8c3f8ccbc6d..d689ea37be8484b5d38b10078528656b6352aa6e 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-3355,6
+3355,8
@@
static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir,
goto out;
case -NFS4ERR_MOVED:
err = nfs4_get_referral(client, dir, name, fattr, fhandle);
+ if (err == -NFS4ERR_MOVED)
+ err = nfs4_handle_exception(NFS_SERVER(dir), err, &exception);
goto out;
case -NFS4ERR_WRONGSEC:
err = -EPERM;