summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-inode-write.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-01-23 11:12:54 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-01-30 04:02:43 -0800
commit0f84f8e8048367737a2dd6ddf0c57403e757441d (patch)
treeec5a1e4764cefb06d6c4d85367750fb219720121 /xlators/cluster/afr/src/afr-inode-write.c
parente8eff5cf350b24ad628de8092d7927eab1e23c32 (diff)
afr: Don't write to sparse regions of sink.
Problem: When data-self-heal-algorithm is set to 'full', shd just reads from source and writes to sink. If source file happened to be sparse (VM workloads), we end up actually writing 0s to the corresponding regions of the sink causing it to lose its sparseness. Fix: If the source file is sparse, and the data read from source and sink are both zeros for that range, skip writing that range to the sink. Change-Id: I787b06a553803247f43a40c00139cb483a22f9ca BUG: 1166020 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/9480 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-write.c')
0 files changed, 0 insertions, 0 deletions