xfs: only check da node header padding on v5 filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Nov 2017 20:21:05 +0000 (12:21 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 17:10:45 +0000 (09:10 -0800)
commit4da4b10b5bde05d5b666405c74362a93da4b5ec4
treec5d972f8e3ed28b3eaaa71c9c3cff4fdf745d070
parenta605e86912ba6fc4b79084c286b1b45e753b72cc
xfs: only check da node header padding on v5 filesystems

It turns out that we only started zeroing a new da btree node's block
header on v5 filesystems.  Prior to that, we just wouldn't set anything
at all, which means that the pad field never got set and would retain
whatever happened to be in memory.

Therefore, we can only check the pad for zeroness on v5 filesystems.
shared/006 on a v4 filesystem exposes this scrub bug.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/dabtree.c