linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
Cc: Linux Kernel Mailing List
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Adding subroot information to /proc/mounts, or obtaining that through other means
Date: Wed, 20 Jun 2007 19:02:14 -0400	[thread overview]
Message-ID: <4679B1F6.6080408@oracle.com> (raw)
In-Reply-To: <4679B0C5.3030102-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2300 bytes --]

H. Peter Anvin wrote:
> Chuck Lever wrote:
>> The advantage is that it doesn't have strong user space dependencies on
>> its format like /proc/mounts does.
>>
>> If you have NFS mount points, you will see that it includes a great deal
>> of additional information about each mount.
> 
> OK, I see now:
> device raidtest:/export mounted on /net/raidtest/export with fstype nfs
> statvers=1.0
>         opts:
> rw,vers=3,rsize=131072,wsize=131072,acregmin=3,acregmax=60,acdirmin=30,acdirmax=60,hard,proto=tcp,timeo=600,retrans=2,sec=sys
>         age:    5
>         caps:   caps=0x9,wtmult=4096,dtsize=4096,bsize=0,namelen=255
>         sec:    flavor=1,pseudoflavor=1
>         events: 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
>         bytes:  0 0 0 0 0 0 0 0
>         RPC iostats version: 1.0  p/v: 100003/3 (nfs)
>         xprt:   tcp 686 0 2 0 5 8 8 0 8 0
>         per-op statistics
>                 NULL: 0 0 0 0 0 0 0 0
>              GETATTR: 2 2 0 264 224 1 0 1
>              SETATTR: 0 0 0 0 0 0 0 0
>               LOOKUP: 0 0 0 0 0 0 0 0
>               ACCESS: 1 1 0 116 120 0 0 0
>             READLINK: 0 0 0 0 0 0 0 0
>                 READ: 0 0 0 0 0 0 0 0
>                WRITE: 0 0 0 0 0 0 0 0
>               CREATE: 0 0 0 0 0 0 0 0
>                MKDIR: 0 0 0 0 0 0 0 0
>              SYMLINK: 0 0 0 0 0 0 0 0
>                MKNOD: 0 0 0 0 0 0 0 0
>               REMOVE: 0 0 0 0 0 0 0 0
>                RMDIR: 0 0 0 0 0 0 0 0
>               RENAME: 0 0 0 0 0 0 0 0
>                 LINK: 0 0 0 0 0 0 0 0
>              READDIR: 0 0 0 0 0 0 0 0
>          READDIRPLUS: 0 0 0 0 0 0 0 0
>               FSSTAT: 1 1 0 132 84 0 1 1
>               FSINFO: 1 1 0 132 80 0 0 0
>             PATHCONF: 0 0 0 0 0 0 0 0
>               COMMIT: 0 0 0 0 0 0 0 0
> 
> This format is just awful for parsing.  It's pretty clearly totally
> ad-hoc.  It's not even self-consistent (it uses different separators,
> etc, in the same file!)  It's reasonably compact for human consumption,
> but it doesn't show what the arrays mean.
> 
> Heck, XML would have been better than this mess...

Sigh.  So where where you when I asked for review time and again?

I have a couple of simple Python scripts that can parse this without any 
difficulty.

I resent your tone.  Quite a bit.

[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 291 bytes --]

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel/
version:2.1
end:vcard


  parent reply	other threads:[~2007-06-20 23:02 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 20:57 Adding subroot information to /proc/mounts, or obtaining that through other means H. Peter Anvin
2007-06-20 21:03 ` Al Viro
2007-06-20 21:20   ` H. Peter Anvin
     [not found]     ` <46799A31.10301-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-21 16:20       ` Ram Pai
     [not found]         ` <1182442837.3342.13.camel-kj2lFfaA5cHMbYB6QlFGEg@public.gmane.org>
2007-06-21 16:29           ` H. Peter Anvin
     [not found]             ` <467AA76F.9090107-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-21 17:20               ` Ram Pai
2007-06-21 17:31           ` H. Peter Anvin
     [not found]             ` <467AB5EE.3030909-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-21 17:43               ` H. Peter Anvin
2007-06-22  6:44             ` Ram Pai
     [not found]               ` <1182494654.2812.22.camel-kj2lFfaA5cHMbYB6QlFGEg@public.gmane.org>
2007-06-22  7:06                 ` H. Peter Anvin
2007-06-22  7:34                   ` Ram Pai
2007-06-22  7:51                     ` H. Peter Anvin
     [not found]                       ` <20070625214640.GC29058@ram.us.ibm.com>
2007-06-25 22:00                         ` [RFC PATCH 1/1] VFS: Augment /proc/mount with subroot and shared-subtree Ram Pai
     [not found]                           ` <1182808816.2816.7.camel-kj2lFfaA5cHMbYB6QlFGEg@public.gmane.org>
2007-06-26  8:01                             ` Karel Zak
2007-06-26 14:34                               ` H. Peter Anvin
2007-06-30  9:44                           ` Christoph Hellwig
2007-06-30 12:56                             ` H. Peter Anvin
     [not found]                               ` <468652E2.4050901-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-07-11 10:24                                 ` Christoph Hellwig
2007-07-11 15:42                                   ` Ram Pai
     [not found]                         ` <20070625214640.GC29058-kj2lFfaA5cHMbYB6QlFGEg@public.gmane.org>
2007-07-16 18:46                           ` [RFC2 " Ram Pai
     [not found]   ` <20070620210343.GQ21478-rfM+Q5joDG/XmaaqVzeoHQ@public.gmane.org>
2007-06-20 22:24     ` Adding subroot information to /proc/mounts, or obtaining that through other means Karel Zak
     [not found]       ` <20070620222437.GY7226-CxBs/XhZ2BtHjqfyn1fVYA@public.gmane.org>
2007-06-20 22:39         ` H. Peter Anvin
2007-06-21 16:13     ` H. Peter Anvin
2007-06-21 16:49       ` Serge E. Hallyn
     [not found]         ` <20070621164907.GB28311-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-06-21 16:51           ` H. Peter Anvin
2007-06-20 22:33   ` Chuck Lever
     [not found]     ` <4679AB39.4010909-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2007-06-20 22:41       ` H. Peter Anvin
     [not found]         ` <4679AD0F.3040207-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-20 22:48           ` Chuck Lever
2007-06-20 22:57             ` H. Peter Anvin
     [not found]               ` <4679B0C5.3030102-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-20 23:02                 ` Chuck Lever [this message]
2007-06-28 14:53   ` Pavel Machek
     [not found]     ` <20070628145308.GD5339-+ZI9xUNit7I@public.gmane.org>
2007-06-28 15:36       ` H. Peter Anvin
     [not found] ` <467994BD.6000403-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-20 22:05   ` Karel Zak
2007-06-20 22:07     ` H. Peter Anvin
     [not found]     ` <20070620220551.GX7226-CxBs/XhZ2BtHjqfyn1fVYA@public.gmane.org>
2007-06-20 22:41       ` Dr. David Alan Gilbert
2007-06-20 22:46         ` H. Peter Anvin
     [not found]           ` <4679AE5E.4050001-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-21 19:14             ` Hans-Peter Jansen
     [not found]               ` <200706212114.25705.hpj-2x7n3sizJbFeoWH0uzbU5w@public.gmane.org>
2007-06-21 19:19                 ` H. Peter Anvin
2007-06-20 22:55 ` Nix
2007-06-21 10:45   ` Miklos Szeredi
     [not found]     ` <E1I1KA8-0007Fu-00-VFwzv6uONVrxNFs70CDYszOMxtEWgIxa@public.gmane.org>
2007-06-21 19:42       ` Nix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4679B1F6.6080408@oracle.com \
    --to=chuck.lever-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
    --cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).