From owner-freebsd-hackers Mon May 7 23:33: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 4087F37B423; Mon, 7 May 2001 23:32:58 -0700 (PDT) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from deneb (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.11.1/8.11.1) with ESMTP id f486WaM22998; Tue, 8 May 2001 08:32:37 +0200 (MET DST) Date: Tue, 8 May 2001 08:32:36 +0200 (CEST) From: Gerald Pfeifer To: Dima Dorfman Cc: Boris Popov , Peter Pentchev , Bruce Evans , , , Subject: Re: Displaying options for current NFS mounts In-Reply-To: <20010325222920.D1E863E09@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 What happened to this patch/this discussion? To remind everyone, the issue was to print specific file-system specific mount options as in dima@spike% /sbin/mount -vt nfs pid295@spike:/host on /host (nfs, v2, udp, hard, intr) pid295@spike:/st on /st (nfs, v2, udp, hard, intr) instead of just dima@spike% /sbin/mount -vt nfs pid295@spike:/host on /host (nfs) pid295@spike:/st on /st (nfs) Gerald On Sun, 25 Mar 2001, Dima Dorfman wrote: >Boris Popov writes: >> 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. > > I like your idea of using the extattr interface. It isn't a perfect > match, since ideally this would be a VFS operation, but it works quite > well. The only modifications required are to mount(8) to try to get > this attribute, and then to any filesystem which wishes to support it. > > Below is a patch which makes the necessary changes to mount(8), and > adds support for this to NFS. It's amazingly simple, and doesn't > interfere with anything else (i.e., you don't have to rebuild half the > world to use it). The only thing I don't like is that the "mountopts" > and "mountopts_verbose" constants aren't macroized, but that can be > easily solved (I just didn't know where to put them). With it, > mount(8) outputs stuff like this: > > dima@spike% /sbin/mount -vt nfs > pid295@spike:/host on /host (nfs, v2, udp, hard, intr) > pid295@spike:/st on /st (nfs, v2, udp, hard, intr) > bazooka:/a on /.amd/bazooka/host/a (nfs, nodev, nosuid, v3, tcp, hard, intr) > bazooka:/b on /.amd/bazooka/host/b (nfs, nodev, nosuid, v3, tcp, hard, intr) > > Comments? Suggestions? > > Thanks in advance > > Dima Dorfman > dima@unixfreak.org > > P.S. Would anyone have a fit if I wrote man pages for > extattr_get_file, extattr_set_file, and extattr_delete_file? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message