common/rc: teach _scratch_mkfs_sized to set a size on an xfs realtime volume
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Sep 2020 02:08:33 +0000 (19:08 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Sep 2020 17:09:06 +0000 (01:09 +0800)
commitc0eced58c6e1bd1ed548114e3ad050573fd3d3ce
tree915b5ffd0965f66f4f726674c1a389e21c291e6c
parent909f4322c62c7230b008af927a5d91ba1d1f199f
common/rc: teach _scratch_mkfs_sized to set a size on an xfs realtime volume

Generally speaking, tests that call _scratch_mkfs_sized are trying to
constrain a test's run time by formatting a filesystem that's smaller
than the device.  The current helper does this for the scratch device,
but it doesn't do this for the xfs realtime volume.

If fstests has been configured to create files on the realtime device by
default ("-d rtinherit=1) then those tests that want to run with a small
volume size will instead be running with a huge realtime device.  This
makes certain tests take forever to run, so apply the same sizing to the
rt volume if one exists.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc