diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2011-06-08 00:51:30 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 07:11:31 +0200 |
commit | 076f968b37f0232d883749da8f5031df5dea7ade (patch) | |
tree | aa1c58756c3754abe657be36b4720a16d5c41858 /drivers/md/md.h | |
parent | MD: raid1 changes to allow use by device mapper (diff) | |
download | linux-076f968b37f0232d883749da8f5031df5dea7ade.tar.xz linux-076f968b37f0232d883749da8f5031df5dea7ade.zip |
MD: add sync_super to mddev_t struct
Add the 'sync_super' function pointer to MD array structure (struct mddev_s)
If device-mapper (dm-raid.c) is to define its own on-disk superblock and be
able to load it, there must still be a way for MD to initiate superblock
updates. The simplest way to make this happen is to provide a pointer in
the MD array structure that can be set by device-mapper (or other module)
with a function to do this. If the function has been set, it will be used;
otherwise, the method with be looked up via 'super_types' as usual.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 0b1fd3f1d85b..5e35535ab7c3 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -330,6 +330,7 @@ struct mddev_s atomic_t flush_pending; struct work_struct flush_work; struct work_struct event_work; /* used by dm to report failure event */ + void (*sync_super)(mddev_t *mddev, mdk_rdev_t *rdev); }; |