diff options
author | shishir gowda <gowda.shishir@gmail.com> | 2013-12-08 13:49:02 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-12-10 04:14:57 -0800 |
commit | a2826303ed16d5a347b9f5091674d09e9d766549 (patch) | |
tree | 9e8f61fba10ead3feb125aa2daee7c9d9d058ae8 /libglusterfs/src/graph-utils.h | |
parent | 1e40a57d1689b4943f67db5e249008d7f0969208 (diff) |
distribute: Rebalance should provide even disk space distribution
Earlier disk space check had an issue which didn't
provide the needed functionality to avoid migration
when the destination had lesser available space,
scenario we need to avoid is stated below :
During rebalance `migrate-data` - Destination subvol experiences
a `reduction` in 'blocks' of free space, at the same time source
subvol gains certain 'blocks' of free space. A valid check is
necessary here to avoid errorneous move to destination where
the space could be scantily available.
This patch provides a proper fix in place by subtracting
necessary file blocks from destination and adding those blocks
to source.
backporting fix http://review.gluster.org/5961
BUG: 982919
Original-author: Harshavardhana <harsha@harshavardhana.net>
Signed-off-by: shishir gowda <gowda.shishir@gmail.com>
Change-Id: If5808eaa89e66d7bcaeee7268fe3fe5b1b56f51d
Signed-off-by: shishir gowda <gowda.shishir@gmail.com>
Reviewed-on: http://review.gluster.org/6461
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/graph-utils.h')
0 files changed, 0 insertions, 0 deletions