]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: test fix for an agbno overflow in __xfs_getfsmap_datadev
authorDarrick J. Wong <djwong@kernel.org>
Wed, 23 Aug 2023 01:02:39 +0000 (18:02 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 1 Sep 2023 19:28:50 +0000 (03:28 +0800)
commit9445d70f0fd62dbf010df5c2b96810b6ec77c943
tree3194d1b4d61cb30b4dbd37473dbd5388a1069e52
parentd3bbcf20d8a26f51b6a94b7c05f8eb88cd8a500d
fstests: test fix for an agbno overflow in __xfs_getfsmap_datadev

Dave Chinner reported that xfs/273 fails if the AG size happens to be an
exact power of two.  I traced this to an agbno integer overflow when the
current GETFSMAP call is a continuation of a previous GETFSMAP call, and
the last record returned was non-shareable space at the end of an AG.

This is the regression test for that bug.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/600 [new file with mode: 0755]
tests/xfs/600.out [new file with mode: 0644]