2005-03-23 18:32:37

by Mike Waychison

[permalink] [raw]
Subject: Re: [PATCH 1/2] VFS: New /proc file /proc/self/mountstats

Hi Chuck,

Chuck Lever <cel <at> citi.umich.edu> writes:

>
> Create a new file under /proc/self, called mountstats, where mounted file
> systems can export information (configuration options, performance counters,
> and so on). Use a mechanism similar to /proc/mounts and s_ops->show_options.
>

> diff -X /home/cel/src/linux/dont-diff -Naurp 00-stock/fs/namespace.c
01-mountstats/fs/namespace.c

...

> +struct seq_operations mountstats_op = {
> + .start = ms_start,
> + .next = ms_next,
> + .stop = ms_stop,

You can use m_start, m_next and m_stop here instead of copying and pasting the
routines. Otherwise looks fine.

Mike Waychison








-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs