Fix PR/2126; recognize mount option readdirsize. In addition, if rsize is

specified and readdirsize is not, make readdirsize use the value of rsize.
This commit is contained in:
christos 1996-03-06 00:21:21 +00:00
parent 9779dee0b1
commit 7758c3b701

View File

@ -38,7 +38,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)nfs_ops.c 8.1 (Berkeley) 6/6/93";*/
static char *rcsid = "$Id: nfs_ops.c,v 1.5 1996/02/19 20:57:48 christos Exp $";
static char *rcsid = "$Id: nfs_ops.c,v 1.6 1996/03/06 00:21:21 christos Exp $";
#endif /* not lint */
#include "am.h"
@ -552,6 +552,15 @@ mntfs *mf;
if (nfs_args.rsize = hasmntval(&mnt, "rsize"))
nfs_args.flags |= NFSMNT_RSIZE;
#ifdef NFSMNT_READDIRSIZE
if (nfs_args.readdirsize = hasmntval(&mnt, "readdirsize")) {
nfs_args.flags |= NFSMNT_READDIRSIZE;
} else if (nfs_args.rsize) {
nfs_args.readdirsize = nfs_args.rsize;
nfs_args.flags |= NFSMNT_READDIRSIZE;
}
#endif
if (nfs_args.wsize = hasmntval(&mnt, "wsize"))
nfs_args.flags |= NFSMNT_WSIZE;