On 10/11/18 1:59 AM, Shaohua Li wrote:
On Tue, Oct 09, 2018 at 10:59:42AM +0800, Guoqing Jiang wrote:
To support add disk under grow mode, we need to resize
all the bitmaps of each node before reshape, so that we
can ensure all nodes have the same view of the bitmap of
the clustered raid.
So after the master node resized the bitmap, it broadcast
a message to other slave nodes, and it checks the size of
each bitmap are same or not by compare pages. We can only
continue the reshaping after all nodes update the bitmap
to the same size (by checking the pages), otherwise revert
bitmap size to previous value.
The resize_bitmaps interface and BITMAP_RESIZE message are
introduced in md-cluster.c for the purpose.
Reviewed-by: NeilBrown <neilb@xxxxxxxx>
Signed-off-by: Guoqing Jiang <gqjiang@xxxxxxxx>
which tree are the patches against? There are several compiling errors.
My bad, I missed some places which should change bitmap_resize
to md_bitmap_resize.
I will send the updated patch and other patches should not be affected.
Thanks,
Guoqing