Commit de1ae286 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] NFSERR_SERVERFAULT returned host-endian

->rp_status is network-endian and nobody byteswaps it before sending to
client; putting NFSERR_SERVERFAULT instead of nfserr_serverfault in there is
not nice...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9246585a
...@@ -1088,7 +1088,7 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str ...@@ -1088,7 +1088,7 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
sop->so_seqid = open->op_seqid; sop->so_seqid = open->op_seqid;
sop->so_confirmed = 0; sop->so_confirmed = 0;
rp = &sop->so_replay; rp = &sop->so_replay;
rp->rp_status = NFSERR_SERVERFAULT; rp->rp_status = nfserr_serverfault;
rp->rp_buflen = 0; rp->rp_buflen = 0;
rp->rp_buf = rp->rp_ibuf; rp->rp_buf = rp->rp_ibuf;
return sop; return sop;
...@@ -2583,7 +2583,7 @@ alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp, str ...@@ -2583,7 +2583,7 @@ alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
sop->so_seqid = lock->lk_new_lock_seqid + 1; sop->so_seqid = lock->lk_new_lock_seqid + 1;
sop->so_confirmed = 1; sop->so_confirmed = 1;
rp = &sop->so_replay; rp = &sop->so_replay;
rp->rp_status = NFSERR_SERVERFAULT; rp->rp_status = nfserr_serverfault;
rp->rp_buflen = 0; rp->rp_buflen = 0;
rp->rp_buf = rp->rp_ibuf; rp->rp_buf = rp->rp_ibuf;
return sop; return sop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment