summaryrefslogtreecommitdiffstats
path: root/include/linux/raid
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
parent4e5314b56a7ea11c7a5f2b8418992b2f49648a25 (diff)
downloadop-kernel-dev-eae1701fbd264cfc7efbaf7cd4cd999760070e27.zip
op-kernel-dev-eae1701fbd264cfc7efbaf7cd4cd999760070e27.tar.gz
[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 'include/linux/raid')
-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 ebce949..a9b0e47 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,
OpenPOWER on IntegriCloud