On Wed, May 31, 2000 at 01:31:20PM -0500, Ted Kline wrote:
> >
> > On Wed, May 31, 2000 at 12:37:11PM -0500, Steve Lord wrote:
> > > >
> > > > XFS stats have been in the system for a long time; now they
> > > > can be printed by:
> > > >
> > > > cat /proc/sys/fs/xfs_stats
> > > >
> > >
> > > Ted,
> > >
> > > probably /proc/fs/xfs/xfs_stats is a better place to put this, /proc/sys
> > > tends to consist of things which control kernel tunables.
> >
> > Also the format is hard to parse by a program. I'm sure someone somewhere
> > will later curse you for that ;)
> >
> > -Andi
> >
>
> I'm open to moving it, /proc/fs/xfs/.. is a little more difficult, but
> not much, I think we need to create the ..xfs.. directory..
>
> How about 2 files? One good for human eyes & xfs_stats.raw for "more
> machine readable?
For machine readable /proc/sys is actually good again (using the sysctl.h
infrastructure with one read only file / variable)
I guess that would be overkill though, a simple file e.g. in the format
of /proc/cpuinfo that is friendly to both human and machine is probably
enough.
-Andi
|