[PATCH] md: initial sysfs support for md

Start using kobjects in mddevs, and provide a couple of simple attributes
(level and disks).  Attributes live in
  /sys/block/mdX/md/attr-name

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:23 -08:00
committed by Linus Torvalds
parent 4e5314b56a
commit eae1701fbd
2 changed files with 87 additions and 1 deletions

View File

@@ -148,6 +148,8 @@ struct mddev_s
struct gendisk *gendisk;
struct kobject kobj;
/* Superblock information */
int major_version,
minor_version,