]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/273: use _get_file_block_size
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Jan 2022 18:37:35 +0000 (10:37 -0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 25 Jan 2022 15:54:15 +0000 (23:54 +0800)
This test calculates the amount of free space on a filesystem and uses
the block size to spread the work of filling the free space among a
bunch of threads.  Unfortunately, the test /should/ be using the
allocation unit size, not the fs block size, which is why this test
fails on configurations such as XFS realtime with a 28k extent size.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Leah Rumancik <leah.rumancik@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/273

index b5458a7731790af933852f5fd1b308af30ddadfd..f86dae9b809509f794b4d2e80794633a8f1391f8 100755 (executable)
@@ -87,8 +87,8 @@ _do_workload()
 {
        _pids=""
        _pid=1
-       block_size=$(_get_block_size $SCRATCH_MNT)
-       
+       block_size=$(_get_file_block_size $SCRATCH_MNT)
+
        _threads_set
        _file_create $block_size