This increases the max read/write size for nfsd from 8K to 32K.
This requires making NFSv2 return the right number in statfs
requests. NFSv3 already does that.
{
struct statfs *stat = &resp->stats;
- *p++ = htonl(8 * 1024); /* max transfer size */
+ *p++ = htonl(NFSSVC_MAXBLKSIZE); /* max transfer size */
*p++ = htonl(stat->f_bsize);
*p++ = htonl(stat->f_blocks);
*p++ = htonl(stat->f_bfree);
#define NFSSVC_MAXVERS 3
/*
- * Maximum blocksize supported by daemon currently at 8K
+ * Maximum blocksize supported by daemon currently at 32K
*/
-#define NFSSVC_MAXBLKSIZE 8192
+#define NFSSVC_MAXBLKSIZE (32*1024)
#ifdef __KERNEL__