Date: Fri, 3 Aug 2007 12:51:00 +0200 (CEST) From: Andre Albsmeier <Andre.Albsmeier@siemens.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/115165: [PATCH] add functionality of mount_nfs' -L -a -d options to amd Message-ID: <200708031051.l73Ap0Bd064476@curry.mchp.siemens.de> Resent-Message-ID: <200708031120.l73BK867006945@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708031051.l73Ap0Bd064476>