deprecating /proc/mdstat (was: Re: mdadm bad blocks list)

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

 



Hello Neil & *,

Zitat von NeilBrown <nfbrown@xxxxxxxxxx>:
[...]
I'd like to deprecate /proc/mdstat.  It is not really easy to extend.

while I understand that /proc/mdstat's format might be considered "frozen" as in "do not confuse old scripts by new formats", I'd hate to see /proc/mdstat go away without a similar replacement: calling "mdadm" (or any other CLI) to gather that information is unruly expensive when all you have to do is "watch cat /proc/mdstat" to manually monitor critical operations.

I'd recommend using "mdadm" to get status of an array, or examine file
in /sys.

If there's to be a "new mdstat" in /sys, I'd be fine with that. That would help migration for those "old scripts grep'ing /proc/mdstat" you rightfully care about.

I suggest to include a file format version information on line 1 "/sys/.../mdstat", that way any client parsing such an interface could verify the file format first, and bail out if it doesn't support the currently presented format.

With regards
Jens

--
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