[PATCH] md: add kobject/sysfs support to raid5

/sys/block/mdX/md/raid5/
contains raid5-related attributes.
Currently
  stripe_cache_size
is number of entries in stripe cache, and is settable.
  stripe_cache_active
is number of active entries, and in only readable.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
NeilBrown 2005-11-08 21:39:25 -08:00 committed by Linus Torvalds
parent 86e6ffdd24
commit 3f294f4fb6
2 changed files with 152 additions and 32 deletions

View file

@ -228,6 +228,7 @@ struct raid5_private_data {
* Cleared when a sync completes.
*/
struct kobject kobj;
/*
* Free stripes pool
*/