[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 <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
NeilBrown authored and Linus Torvalds committed 2005-11-09 07:56:37 -08:00
1 parent 86e6ffdd24
commit 3f294f4fb6
2 files changed
+152 -32

No files matched your search

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