diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2018-10-18 11:37:43 +0300 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2018-10-18 19:36:35 +0300 |
commit | 5ebaf80bc8d5826edcc2d1cea26a7d5a4b8f01dd (patch) | |
tree | 0e166faec3a57e864b364e3bbfd944b996998c36 /drivers/md/md-cluster.h | |
parent | 7564beda19b3646d781934d04fc382b738053e6f (diff) | |
download | linux-5ebaf80bc8d5826edcc2d1cea26a7d5a4b8f01dd.tar.xz |
md-cluster: introduce resync_info_get interface for sanity check
Since the resync region from suspend_info means one node
is reshaping this area, so the position of reshape_progress
should be included in the area.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-cluster.h')
-rw-r--r-- | drivers/md/md-cluster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-cluster.h b/drivers/md/md-cluster.h index 9bd753a6a94e..a78e3021775d 100644 --- a/drivers/md/md-cluster.h +++ b/drivers/md/md-cluster.h @@ -14,6 +14,7 @@ struct md_cluster_operations { int (*leave)(struct mddev *mddev); int (*slot_number)(struct mddev *mddev); int (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi); + void (*resync_info_get)(struct mddev *mddev, sector_t *lo, sector_t *hi); int (*metadata_update_start)(struct mddev *mddev); int (*metadata_update_finish)(struct mddev *mddev); void (*metadata_update_cancel)(struct mddev *mddev); |