Check that our observed refcount records have exact matches for what's
in the ondisk refcount btree, since they're supposed to match exactly.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
/* Compare each refcount observation against the btree's */
if (tmp.rc_startblock != rl_rec->rc_startblock ||
- tmp.rc_blockcount < rl_rec->rc_blockcount ||
- tmp.rc_refcount < rl_rec->rc_refcount)
+ tmp.rc_blockcount != rl_rec->rc_blockcount ||
+ tmp.rc_refcount != rl_rec->rc_refcount)
do_warn(
_("Incorrect reference count: saw (%u/%u) len %u nlinks %u; should be (%u/%u) len %u nlinks %u\n"),
agno, tmp.rc_startblock, tmp.rc_blockcount,