[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-nfs
Subject: [NFS] Re: [PATCH 1/2] VFS: New /proc file /proc/self/mountstats
From: Mike Waychison <mike () waychison ! com>
Date: 2005-03-23 17:42:31
Message-ID: loom.20050323T183257-779 () post ! gmane ! org
[Download RAW message or body]
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 - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic