Re: [RFC patch 1/1] Track raid5/6 statistics.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 27, 2008 at 08:52:48AM -0500, Jody McIntyre wrote:

> I was thinking about your first suggestion but note that there is also
> /proc/diskstats as well as /sys/block/<dev>/stat.  The advantage of
> having everything in one file is that you only have to open one file
> when gathering statistics on many arrays, and /proc/mdstat already
> exists as a precedent.  I could add individual array statistics files as
> well if useful.

/proc contains a lot of legacy junk but nowadays the trend is that you
should not add new files under /proc that are not process-related.
Changing /proc/mdstat is IMHO out of question since it is part of the
user visible ABI and breaking that is a big no-no. So if you want all
info in a single file that pretty much leaves only debugfs.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux