From owner-cvs-all@FreeBSD.ORG Sat Sep 13 20:22:54 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E95C106573A; Sat, 13 Sep 2008 20:22:53 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6D48FC16; Sat, 13 Sep 2008 20:22:53 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8DKMrSF024121; Sat, 13 Sep 2008 20:22:53 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8DKMrkN024120; Sat, 13 Sep 2008 20:22:53 GMT (envelope-from rodrigc@repoman.freebsd.org) Message-Id: <200809132022.m8DKMrkN024120@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rodrigc@repoman.freebsd.org using -f From: Craig Rodrigues Date: Sat, 13 Sep 2008 20:22:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/mount_nfs mount_nfs.8 mount_nfs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2008 20:22:54 -0000 rodrigc 2008-09-13 20:22:46 UTC FreeBSD src repository Modified files: sbin/mount_nfs mount_nfs.8 mount_nfs.c Log: SVN rev 183008 on 2008-09-13 20:22:46Z by rodrigc Instead of building up a "struct nfs_args" to pass to the kernel via nmount(), build up an iovec where each iovec member is an NFS mount option, and pass the iovec down to the kernel via nmount(). These options are then parsed in the kernel. This should make it easier to add new NFS mount options in future. Many, many thanks to Doug Rabson for taking my initial patches, and cleaning them up. In addition, Doug added a fallback_mount() function so that the newer mount_nfs program will work against older kernels, to facilitate upgrading/downgrading scenarios. Doug also re-wrote the mount_nfs.8 man page. Reviewed by: dfr Revision Changes Path 1.51 +216 -182 src/sbin/mount_nfs/mount_nfs.8 1.79 +406 -291 src/sbin/mount_nfs/mount_nfs.c