aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid/md_k.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2005-11-08 21:39:23 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 07:56:36 -0800
commiteae1701fbd264cfc7efbaf7cd4cd999760070e27 (patch)
tree6605cca37d4c605217b7accffe7f94f81d37f0dd /include/linux/raid/md_k.h
parent[PATCH] md: better handling of readerrors with raid5. (diff)
downloadlinux-dev-eae1701fbd264cfc7efbaf7cd4cd999760070e27.tar.xz
linux-dev-eae1701fbd264cfc7efbaf7cd4cd999760070e27.zip
[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>
Diffstat (limited to '')
-rw-r--r--include/linux/raid/md_k.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index ebce949b1443..a9b0e47a3d04 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -148,6 +148,8 @@ struct mddev_s
struct gendisk *gendisk;
+ struct kobject kobj;
+
/* Superblock information */
int major_version,
minor_version,