bin/115165: [PATCH] add functionality of mount_nfs' -L -a -d
options to amd
Andre Albsmeier
Andre.Albsmeier at siemens.com
Fri Aug 3 11:20:08 UTC 2007
>Number: 115165
>Category: bin
>Synopsis: [PATCH] add functionality of mount_nfs' -L -a -d options to amd
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 03 11:20:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Andre Albsmeier
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD FreeBSD 6.2-STABLE #1: Wed Aug 1 15:06:22 CEST 2007
>Description:
NFS can be tuned very well by using the mount_nfs options mentioned
above. However, currently it is not possible to instruct amd to
use these options when mounting NFS volumes.
>How-To-Repeat:
Try to tell amd to use the options mentioned above.
>Fix:
This patch adds the amd options readahead=X, dumbtimr and nolockd
to amd. It also replaces the patch in PR# 85204 which only adds
the readahead feature.
--- contrib/amd/libamu/mount_fs.c.ORI 2006-04-12 09:02:19.000000000 +0200
+++ contrib/amd/libamu/mount_fs.c 2007-08-03 10:06:27.000000000 +0200
@@ -583,6 +583,20 @@
nap->flags |= MNT2_NFS_OPT_FSNAME;
#endif /* MNT2_NFS_OPT_FSNAME */
+ nap->readahead = hasmntval(mntp, "readahead");
+#ifdef MNT2_NFS_OPT_READAHEAD
+ if (nap->readahead)
+ nap->flags |= MNT2_NFS_OPT_READAHEAD;
+#endif /* MNT2_NFS_OPT_READAHEAD */
+
+#ifdef MNT2_NFS_OPT_DUMBTIMR
+ if (hasmntopt(mntp, "dumbtimr") != NULL)
+ nap->flags |= MNT2_NFS_OPT_DUMBTIMR;
+#endif /* MNT2_NFS_OPT_DUMBTIMR */
+
+ if (hasmntopt(mntp, "nolockd") != NULL)
+ nap->flags |= NFSMNT_NOLOCKD;
+
nap->rsize = hasmntval(mntp, MNTTAB_OPT_RSIZE);
#ifdef MNT2_NFS_OPT_RSIZE
if (nap->rsize)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list