[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>
This commit is contained in:
committed by
Linus Torvalds
parent
3ac51e741a
commit
6a4d44c1f1
@ -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;
|
||||
|
Reference in New Issue
Block a user