diff options
| author | Jochen Friedrich <jochen@scram.de> | 2003-01-12 20:41:49 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-01-12 20:41:49 -0800 |
| commit | af1dbde2b95674cd772e3a579ada507c298e89cb (patch) | |
| tree | 0ca9b4a0420a18b0fc11d37394080bf79019dfaf | |
| parent | fb4532b5018d6c423ec37045965f316dc33f145c (diff) | |
[PATCH] NFSv2 READDIR encoding fix
When mounting a Linux partition with NFSv2, READDIR fills in the last
cookie without properly byte-swapping it. The following READDIR will
fail, so the NFS client sees a truncated directory.
Fix it thus.
| -rw-r--r-- | fs/nfsd/nfsproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 2a5313309668..1388b77c86f0 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c @@ -482,7 +482,7 @@ nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, resp->count = resp->buffer - argp->buffer; if (resp->offset) - *resp->offset = (u32)offset; + *resp->offset = htonl(offset); fh_put(&argp->fh); return nfserr; |
