]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: scrub while appending to a file
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 21 Jun 2017 21:58:22 +0000 (14:58 -0700)
committerEryu Guan <eguan@redhat.com>
Mon, 3 Jul 2017 12:25:01 +0000 (20:25 +0800)
commit1b6d979780d398f438cba59a68baa62aa5eb324a
tree7ed10c3777b67cb1425f9804c1d309f084b8d011
parentc28b406918d48604e33375bec85c58b2c48296e9
xfs: scrub while appending to a file

It turns out that there was a bug in xfs_bmap_count_blocks wherein
the block count returned would count or not count delalloc blocks
depending on the fork format.  This is a bug that is easily exposed
via scrub, so check the output of that function here -- the buggy
version of the function produces online fsck errors.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/423 [new file with mode: 0755]
tests/xfs/423.out [new file with mode: 0644]
tests/xfs/group