]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix max block offset test
authorEric Sandeen <sandeen@sandeen.net>
Thu, 5 Feb 2015 23:25:13 +0000 (10:25 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 5 Feb 2015 23:25:13 +0000 (10:25 +1100)
commit7511a9cf1f6e5e49d5c86c6d0f8e1bccfff912a2
tree432907bbe378d2d01759dea66fcbde0b630f9f94
parent2116b6a6714586e6775fd20337efa54968d08250
xfs_repair: fix max block offset test

Eryu pointed out that in fstest xfs/071, we find corruption
reported at the end.  This test attempts to do IO at the
maximum possible offsets, and repair yields:

inode 1027 - extent offset too large - start 70, count 1, offset 2251799813685247
correcting nextents for inode 1027
bad data fork in inode 1027
would have cleared inode 1027

Repair is complaining that an extent *starts* at the maximum
block, but AFAICT, starting there is just fine, as long as
we also end there.  i.e. a one-block extent at the limit
is just fine.

So change the xfs_repair test to allow this situation.

Also, the warning text is a bit unclear, mixing in the physical
block w/ the logical block... rearrange that a little to make
it obvious.

Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dinode.c