[Bugs] [Bug 1187547] self-heal-algorithm with option "full" doesn't heal sparse files correctly
bugzilla at redhat.com
bugzilla at redhat.com
Tue Feb 3 13:25:10 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1187547
--- Comment #2 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9515 committed in release-3.6 by Raghavendra
Bhat (raghavendra at redhat.com)
------
commit f397d7edb85c1e4b78c4cac176dc8a0afe8cf9a8
Author: Ravishankar N <ravishankar at redhat.com>
Date: Fri Jan 23 11:12:54 2015 +0530
afr: Don't write to sparse regions of sink.
Backport of http://review.gluster.org/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: Id23d953fe2c8c64cde5ce3530b52ef91a7583891
BUG: 1187547
Signed-off-by: Ravishankar N <ravishankar at redhat.com>
Reviewed-on: http://review.gluster.org/9515
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list