summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2013-09-17 19:16:50 -0700
committerAnand Avati <avati@redhat.com>2013-09-19 09:25:28 -0700
commit66747c96e6446da3da1c75ee7641fd75d1ed768c (patch)
tree229c141b9fa0d218712245e6321e611b45d698ed /xlators/nfs/server
parent7da8040d96ae16d6d2b6079ffd8cbcfe5d28aac4 (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. Change-Id: I9c7840716a4256ef614ffc0fbfd9f2b456ac28c8 BUG: 982919 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/5961 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <sgowda@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server')
0 files changed, 0 insertions, 0 deletions