diff options
author | NeilBrown <neilb@suse.de> | 2005-11-09 00:39:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:38 -0500 |
commit | 007583c9253fed363a0bd71b039e9b40a0f6855e (patch) | |
tree | f47d3fd94830ae2c09d7d821e8a57ba46ecb13bc /include/linux/raid/md_k.h | |
parent | 31399d9e56abeec4d819f07eefc97f30b5d5ed75 (diff) |
[PATCH] md: change raid5 sysfs attribute to not create a new directory
There isn't really a need for raid5 attributes to be an a subdirectory,
so this patch moves them from
/sys/block/mdX/md/raid5/attribute
to
/sys/block/mdX/md/attribute
This suggests that all md personalities should co-operate about
namespace usage, but that shouldn't be a problem.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/md_k.h')
-rw-r--r-- | include/linux/raid/md_k.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index cb8b44d1588b..4169c11e5451 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -282,6 +282,13 @@ struct mdk_personality_s | |||
282 | }; | 282 | }; |
283 | 283 | ||
284 | 284 | ||
285 | struct md_sysfs_entry { | ||
286 | struct attribute attr; | ||
287 | ssize_t (*show)(mddev_t *, char *); | ||
288 | ssize_t (*store)(mddev_t *, const char *, size_t); | ||
289 | }; | ||
290 | |||
291 | |||
285 | static inline char * mdname (mddev_t * mddev) | 292 | static inline char * mdname (mddev_t * mddev) |
286 | { | 293 | { |
287 | return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; | 294 | return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; |