xfs/187: don't rely on FSCOUNTS for free space data
authorDarrick J. Wong <djwong@kernel.org>
Mon, 11 Apr 2022 22:54:22 +0000 (15:54 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 Apr 2022 12:10:51 +0000 (20:10 +0800)
commitd7ac035cfeecc4e3b264bae781aa4eedfd01bf03
tree331a43f84dbcf99989d7d227a274302e315a6d7d
parentc025dcf35b47e8d6139554e585e2f7124505c1dd
xfs/187: don't rely on FSCOUNTS for free space data

Currently, this test relies on the XFS_IOC_FSCOUNTS ioctl to return
accurate free space information.  It doesn't.  Convert it to use statfs,
which uses the accurate versions of the percpu counters.  Obviously,
this only becomes a problem when we convert the free rtx count to use
(sloppier) percpu counters instead of the (more precise and previously
buggy) ondisk superblock counts.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/187