From owner-freebsd-current@FreeBSD.ORG Wed Jun 2 14:01:06 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1388A106567A; Wed, 2 Jun 2010 14:01:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D93E28FC0C; Wed, 2 Jun 2010 14:01:05 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 8A37846B17; Wed, 2 Jun 2010 10:01:05 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id B8F9D8A025; Wed, 2 Jun 2010 10:01:04 -0400 (EDT) From: John Baldwin To: Craig Rodrigues Date: Wed, 2 Jun 2010 09:10:13 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <201006011125.00062.jhb@freebsd.org> <20100602084748.GA68872@crodrigues.org> In-Reply-To: <20100602084748.GA68872@crodrigues.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006020910.13261.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 02 Jun 2010 10:01:04 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-current@freebsd.org, Ivan Voras Subject: Re: SUJ and "mount" reporting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2010 14:01:06 -0000 On Wednesday 02 June 2010 4:47:48 am Craig Rodrigues wrote: > On Tue, Jun 01, 2010 at 11:25:00AM -0400, John Baldwin wrote: > > My understanding of nmount() is that that is what it does now. However, not > > everything is fully updated for nmount(). struct nfsargs is still passed in > > as a blob value with the key "nfsargs" for example. > > This is not true any more. Doug Rabson and I modified > src/usr.sbin/mount_nfs so that it passes individual string options > via nmount() down to the kernel, which then parses the string options. > > Doug added a fallback_mount() function which reverts to the > old behavior of passing a blob with key "nfsargs" for older kernels. > > The Berkeley amd is the next big NFS mount client which needs > to be updated to use nmount().....but that code is messy. :) It seems that the options are still not listed in 'mount' output however. Is userland able to easily query the list of options that are set on a mountpoint? -- John Baldwin