Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 May 2001 08:32:36 +0200 (CEST)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        Boris Popov <bp@butya.kz>, Peter Pentchev <roam@orbitel.bg>, Bruce Evans <bde@zeta.org.au>, <freebsd-hackers@freebsd.org>, <freebsd-fs@freebsd.org>, <phk@freebsd.org>
Subject:   Re: Displaying options for current NFS mounts 
Message-ID:  <Pine.BSF.4.33.0105080748110.77586-100000@deneb.dbai.tuwien.ac.at>
In-Reply-To: <20010325222920.D1E863E09@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bp@butya.kz> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105080748110.77586-100000>