diff options
author | NeilBrown <neilb@suse.de> | 2010-06-01 11:37:27 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-07-26 04:52:27 +0200 |
commit | 390ee602a142a93f2c7eb7bffee8e277058b8e0a (patch) | |
tree | 33a23748dd5ff4ea76b34ed3e458c6da91185376 /drivers/md/md.h | |
parent | md: split out md_rdev_init (diff) | |
download | linux-390ee602a142a93f2c7eb7bffee8e277058b8e0a.tar.xz linux-390ee602a142a93f2c7eb7bffee8e277058b8e0a.zip |
md: export various start/stop interfaces
export entry points for starting and stopping md arrays.
This will be used by a module to make md/raid5 work under
dm.
Also stop calling md_stop_writes from md_stop, as that won't
work well with dm - it will want to call the two separately.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index cc8030543e82..6e7e3495f6e4 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -487,5 +487,12 @@ extern void md_integrity_add_rdev(mdk_rdev_t *rdev, mddev_t *mddev); extern int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale); extern void restore_bitmap_write_access(struct file *file); +extern void mddev_init(mddev_t *mddev); +extern int md_run(mddev_t *mddev); +extern void md_stop(mddev_t *mddev); +extern void md_stop_writes(mddev_t *mddev); extern void md_rdev_init(mdk_rdev_t *rdev); + +extern void mddev_suspend(mddev_t *mddev); +extern void mddev_resume(mddev_t *mddev); #endif /* _MD_MD_H */ |