summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.h
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-02-09 08:31:10 +0530
committerNiels de Vos <ndevos@redhat.com>2015-02-12 04:09:13 -0800
commitb6c37bd9954fb3b7aee79dbe453f875b70a03e71 (patch)
tree318f009f98c40f105c6f321711d48e7d4e8d5d73 /xlators/features/quota/src/quota.h
parent6e4e21c689c2e4b96a564afb2f0a3972e7829a53 (diff)
afr: Don't write to sparse regions of sink.
Corresponding afr-v2 fix: http://review.gluster.org/#/c/9480/ 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: Iade957e4173c87e45a2881df501ba2ad3eb1a172 BUG: 1190633 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/9611 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/features/quota/src/quota.h')
0 files changed, 0 insertions, 0 deletions