On Thu, Jan 30, 2020 at 03:47:35PM -0500, Josef Bacik wrote:
> When writing my test for the i_size patches, I noticed that I was not
> actually failing without my patches as I should have been. This is
> because we assume the first extent we find is the first valid spot, so
> we don't actually add a hole entry if there is no extent at offset 0.
> Fix this by setting our extent_start and extent_end to 0 so we can
> properly catch the corruption.
>
> Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
This patch does not pass tests:
[TEST/fsck] 020-extent-ref-cases
failed: /labs/dsterba/gits/btrfs-progs/btrfs check ./keyed_data_ref_with_shared_leaf.img.restored
test failed for case 020-extent-ref-cases