[Ocfs2-devel] [PATCH] ocfs2: Fix start offset to ocfs2_zero_range_for_truncate()
Andrew Morton
akpm at linux-foundation.org
Wed Sep 14 15:43:24 PDT 2016
On Thu, 11 Aug 2016 16:12:27 -0700 Ashish Samant <ashish.samant at oracle.com> wrote:
> If we do fallocate with punch hole option on a reflink, with start offset
> on a cluster boundary and end offset somewhere in another cluster, we
> dont COW the first cluster starting at the start offset. But in this
> case, we were wrongly passing this cluster to
> ocfs2_zero_range_for_truncate() to zero out.
>
> Fix this by skipping this cluster in such a scenario.
How serious is this bug? It sounds like a data-corrupting error? As
such, this is a high priority fix and it should be backported into the
-stable kernels?
Please always include such info when fixing bugs.
More information about the Ocfs2-devel
mailing list