aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuoqing Jiang <[email protected]>2017-03-01 16:42:39 +0800
committerShaohua Li <[email protected]>2017-03-16 16:55:50 -0700
commitb98938d16a108d0201d54b8db1337dac71aebfdd (patch)
tree2005c989bfe629751fa7349d808cd541695a1930 /tools/perf/scripts/python
parent7da3d203330305695f38302c076ee0d32c005ede (diff)
md-cluster: introduce cluster_check_sync_size
Support resize is a little complex for clustered raid, since we need to ensure all the nodes share the same knowledge about the size of raid. We achieve the goal by check the sync_size which is in each node's bitmap, we can only change the capacity after cluster_check_sync_size returns 0. Also, get_bitmap_from_slot is added to get a slot's bitmap. And we exported some funcs since they are used in cluster_check_sync_size(). We can also reuse get_bitmap_from_slot to remove redundant code existed in bitmap_copy_from_slot. Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions