From owner-freebsd-hackers Mon Mar 26 7:56: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from roaming.cacheboy.net (roaming.cacheboy.net [203.56.168.69]) by hub.freebsd.org (Postfix) with ESMTP id B298D37B718; Mon, 26 Mar 2001 07:55:57 -0800 (PST) (envelope-from adrian@roaming.cacheboy.net) Received: (from adrian@localhost) by roaming.cacheboy.net (8.11.1/8.11.1) id f2Q9xmx48656; Mon, 26 Mar 2001 11:59:48 +0200 (CEST) (envelope-from adrian) Date: Mon, 26 Mar 2001 11:59:43 +0200 From: Adrian Chadd To: Boris Popov Cc: Peter Pentchev , Bruce Evans , Dima Dorfman , Gerald Pfeifer , freebsd-hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Displaying options for current NFS mounts Message-ID: <20010326115942.A48621@roaming.cacheboy.net> References: <20010325113649.D36335@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bp@butya.kz on Sun, Mar 25, 2001 at 05:49:14PM +0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 25, 2001, Boris Popov wrote: > On Sun, 25 Mar 2001, Peter Pentchev wrote: > > > > > Or could mount(8) invoke a couple of sysctl's to get a string representation > > of each mountpoint's mount options? > > > > This is not a bikeshed, but sysctl is the wrong interface to do > this. Use VFSs/VOPs instead. This isn't a big problem with passing string > from kernel to userland. .. (god knows when this'll get through, as I'm writing this email whilst waiting for a flight at Heathrow Airport..) I've been considering mapping the mount options into a string and having that passed down into VFS_MOUNT. However, the real solution right now is to make mount_$FSTYPE -p work. Then mount can just wrap mount_$FSTYPE, just like fsck / fsck_$FSTYPE does. The only thing preventing me from doing it right now is the lack of Copious Free Time(tm) :) -- Adrian Chadd "Programming is like sex: One mistake and you have to support for a lifetime." -- rec.humor.funny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message