Re: clone ioctl bug with inline extents

Sage Weil
Tue, 09 Aug 2011 19:10:35 -0000

On Tue, 9 Aug 2011, Sage Weil wrote:
> Hi all,
>
> I''m hitting a problem cloning inline extents that I
haven''t had much
> success tracking down.  It''s simple enough to reproduce:
>
>  echo 1111111111111111111111111111 > src
>  echo 2 > dst
>  clone_range src 0 29 dst 0
>  cmp src dst       # fails! dst is size 29 but contains
"2\n\0\0\0\0..."

<facepalm>, ok, this was just a matter of the ioctl code not dropping the
old page cache pages.  I''m not sure how we didn''t notice that
for so long!

sage
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html