From owner-freebsd-hackers Sat Mar 24 18:36:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 9947837B719; Sat, 24 Mar 2001 18:36:30 -0800 (PST) (envelope-from bp@butya.kz) Received: by relay.butya.kz (Postfix, from userid 1000) id 57E2928E25; Sun, 25 Mar 2001 09:36:21 +0700 (ALMST) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id 447962866F; Sun, 25 Mar 2001 09:36:21 +0700 (ALMST) Date: Sun, 25 Mar 2001 09:36:21 +0700 (ALMST) From: Boris Popov To: Dima Dorfman Cc: Gerald Pfeifer , freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Subject: Re: Displaying options for current NFS mounts In-Reply-To: <20010324221539.A025A3E09@bazooka.unixfreak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 24 Mar 2001, Dima Dorfman wrote: > Implementing the above functionality in mount(8) isn't actually that > hard. We would need to export the filesystem-specific _args > structures (e.g., nfs_args, ffs_args) to the userland. If we do that, > mount(8) will be able to display all kinds of interesting, > filesystem-specific stuff (e.g., NFS version and transport, whether a > mounted CDROM is using Joilet, etc.). This probably a step in the wrong direction. In this way mount(8) should be aware about all types of filesystems and their flags/options/etc. May be fs (kernel part) can report these options as string to the given userland buffer ? It is not necessary to use existing statfs struct - now we have a very flexible VOP_GETEXTATTR() with corresponding syscall. > If some other people display intrest in this, and someone can suggest > a less ugly way of getting the definitions of _args into mount.h > (the only other way I can think of is to just move all of them from > /.h to mount.h permamently), I'll implement this stuff in the > other filesystems. Think about third party filesystems :) -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message