summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-06-01 19:37:27 +1000
committerNeilBrown <neilb@suse.de>2010-07-26 12:52:27 +1000
commit390ee602a142a93f2c7eb7bffee8e277058b8e0a (patch)
tree33a23748dd5ff4ea76b34ed3e458c6da91185376 /drivers/md/md.h
parente8bb9a839a26f076379e9cb9f46a879d210156f1 (diff)
downloadop-kernel-dev-390ee602a142a93f2c7eb7bffee8e277058b8e0a.zip
op-kernel-dev-390ee602a142a93f2c7eb7bffee8e277058b8e0a.tar.gz
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index cc80305..6e7e349 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 */
OpenPOWER on IntegriCloud