summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>2006-03-27 01:17:55 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 08:44:59 -0800
commit6a4d44c1f1108d6c9e8850e8cf166aaba0e56eae (patch)
tree4e0b59ca2b4959e1593cbcdec4b90ec0d9041126 /include/linux
parent3ac51e741a46af7a20f55e79d3e3aeaa93c6c544 (diff)
downloadblackbird-op-linux-6a4d44c1f1108d6c9e8850e8cf166aaba0e56eae.tar.gz
blackbird-op-linux-6a4d44c1f1108d6c9e8850e8cf166aaba0e56eae.zip
[PATCH] dm/md dependency tree in sysfs: holders/slaves subdirectory
Creating "slaves" and "holders" directories in /sys/block/<disk> and creating "holders" directory under /sys/block/<disk>/<partition> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> Cc: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index fd647fde5ec1..eea61cc8fac1 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -78,6 +78,9 @@ struct hd_struct {
sector_t start_sect;
sector_t nr_sects;
struct kobject kobj;
+#ifdef CONFIG_SYSFS
+ struct kobject *holder_dir;
+#endif
unsigned ios[2], sectors[2]; /* READs and WRITEs */
int policy, partno;
};
@@ -114,6 +117,10 @@ struct gendisk {
int number; /* more of the same */
struct device *driverfs_dev;
struct kobject kobj;
+#ifdef CONFIG_SYSFS
+ struct kobject *holder_dir;
+ struct kobject *slave_dir;
+#endif
struct timer_rand_state *random;
int policy;
OpenPOWER on IntegriCloud