|
@@ -146,13 +146,13 @@ nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp,
|
|
* status, 17 words for fattr, and 1 word for the byte count.
|
|
* status, 17 words for fattr, and 1 word for the byte count.
|
|
*/
|
|
*/
|
|
|
|
|
|
- if (NFSSVC_MAXBLKSIZE < argp->count) {
|
|
|
|
|
|
+ if (NFSSVC_MAXBLKSIZE_V2 < argp->count) {
|
|
printk(KERN_NOTICE
|
|
printk(KERN_NOTICE
|
|
"oversized read request from %u.%u.%u.%u:%d (%d bytes)\n",
|
|
"oversized read request from %u.%u.%u.%u:%d (%d bytes)\n",
|
|
NIPQUAD(rqstp->rq_addr.sin_addr.s_addr),
|
|
NIPQUAD(rqstp->rq_addr.sin_addr.s_addr),
|
|
ntohs(rqstp->rq_addr.sin_port),
|
|
ntohs(rqstp->rq_addr.sin_port),
|
|
argp->count);
|
|
argp->count);
|
|
- argp->count = NFSSVC_MAXBLKSIZE;
|
|
|
|
|
|
+ argp->count = NFSSVC_MAXBLKSIZE_V2;
|
|
}
|
|
}
|
|
svc_reserve(rqstp, (19<<2) + argp->count + 4);
|
|
svc_reserve(rqstp, (19<<2) + argp->count + 4);
|
|
|
|
|
|
@@ -553,7 +553,7 @@ static struct svc_procedure nfsd_procedures2[18] = {
|
|
PROC(none, void, void, none, RC_NOCACHE, ST),
|
|
PROC(none, void, void, none, RC_NOCACHE, ST),
|
|
PROC(lookup, diropargs, diropres, fhandle, RC_NOCACHE, ST+FH+AT),
|
|
PROC(lookup, diropargs, diropres, fhandle, RC_NOCACHE, ST+FH+AT),
|
|
PROC(readlink, readlinkargs, readlinkres, none, RC_NOCACHE, ST+1+NFS_MAXPATHLEN/4),
|
|
PROC(readlink, readlinkargs, readlinkres, none, RC_NOCACHE, ST+1+NFS_MAXPATHLEN/4),
|
|
- PROC(read, readargs, readres, fhandle, RC_NOCACHE, ST+AT+1+NFSSVC_MAXBLKSIZE/4),
|
|
|
|
|
|
+ PROC(read, readargs, readres, fhandle, RC_NOCACHE, ST+AT+1+NFSSVC_MAXBLKSIZE_V2/4),
|
|
PROC(none, void, void, none, RC_NOCACHE, ST),
|
|
PROC(none, void, void, none, RC_NOCACHE, ST),
|
|
PROC(write, writeargs, attrstat, fhandle, RC_REPLBUFF, ST+AT),
|
|
PROC(write, writeargs, attrstat, fhandle, RC_REPLBUFF, ST+AT),
|
|
PROC(create, createargs, diropres, fhandle, RC_REPLBUFF, ST+FH+AT),
|
|
PROC(create, createargs, diropres, fhandle, RC_REPLBUFF, ST+FH+AT),
|