From owner-freebsd-fs@FreeBSD.ORG Sat Jan 29 00:10:58 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8994D1065673 for ; Sat, 29 Jan 2011 00:10:58 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by mx1.freebsd.org (Postfix) with ESMTP id C4B5C8FC15 for ; Sat, 29 Jan 2011 00:10:57 +0000 (UTC) Received: from edge01.upcmail.net ([192.168.13.236]) by viefep15-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110129001056.BPGS1633.viefep15-int.chello.at@edge01.upcmail.net>; Sat, 29 Jan 2011 01:10:56 +0100 Received: from pinky ([213.46.23.80]) by edge01.upcmail.net with edge id 1CAs1g00n1jgp3H01CAurE; Sat, 29 Jan 2011 01:10:56 +0100 X-SourceIP: 213.46.23.80 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "Marco van Tol" , "Rick Macklem" References: <496514462.1056535.1296256105160.JavaMail.root@erie.cs.uoguelph.ca> Date: Sat, 29 Jan 2011 01:10:52 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <496514462.1056535.1296256105160.JavaMail.root@erie.cs.uoguelph.ca> User-Agent: Opera Mail/11.01 (Win32) X-Cloudmark-Analysis: v=1.1 cv=JvXQbuMnWGQeb488dJ7w43Du7THgE+O7ieb9U20/rjk= c=1 sm=0 a=FrWdF4c4Z5wA:10 a=bgpUlknNv7MA:10 a=kj9zAlcOel0A:10 a=BOkMkCL_MedZw7oRCcIA:9 a=jkVLrHDAuUwi-Jkmqq84AaF-JzoA:4 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: FreeBSD FS Subject: Re: runtime nfs mount options for existing mounts X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 00:10:58 -0000 On Sat, 29 Jan 2011 00:08:25 +0100, Rick Macklem wrote: >> >> How would I find out about the current mount options for an existing >> NFS >> mount on an NFS client? >> >> For example, if I mount an NFS file system using: >> mount -t nfs -o rw,rsize=32768,wsize=32768,readahead=2 rhost:path node >> >> Suppose time goes by and I forgot what I used to mount the filesystem, >> how can I find out what the rsize, wsize and readahead are for the >> existing mount? >> >> (On another OS the settings are printed when just typing mount without >> any other options, which I find usefull in some circumstances) >> > I don't think you can get this stuff out of the FreeBSD kernel right now. > (I was hoping someone else was going to answer, but no one did:-) > > As to whether or not it should, I think it would be a nice feature, but > I've got a lot of other stuff on my plate right now. > > I think it would take some sort of extension to the nmount(2) syscall or > maybe a new syscall + noew VFS_xxx() op. > > I can say that, if someone else came up with the syscall/VFS changes, I > could easily implement a function in the NFS client that generates the > name/value pairs like nmount() uses. (There is currently a function that > basically does that for the old mount() and I think a slightly modified > version of that would do it. However, I haven't actually tried it.:-) > > Anyone feel like an nmount() related project to do this? > > rick Linux gives this with nfsstat -m. Also when wsize/rsize is negotiated between server/client you can see the used value with that. Ronald.