mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstest: allow fsstress to use load factor where appropriate
1) Add _scale_fsstress_args function which transform arguments according to load factors 2) Let all non deterministic fsstress tests to use scaled arguments Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Reviewed-by: Rich Johnston <rjohnston@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
d14981fa53
commit
b84aade2f4
@@ -64,7 +64,9 @@ _stress_scratch()
|
||||
procs=3
|
||||
nops=1000
|
||||
# -w ensures that the only ops are ones which cause write I/O
|
||||
$FSSTRESS_PROG -d $SCRATCH_MNT -w -p $procs -n $nops $FSSTRESS_AVOID > /dev/null &
|
||||
FSSTRESS_ARGS=`_scale_fsstress_args -d $SCRATCH_MNT -w -p $procs \
|
||||
-n $nops $FSSTRESS_AVOID`
|
||||
$FSSTRESS_PROG $FSSTRESS_ARGS >> $seq.full &
|
||||
}
|
||||
|
||||
# real QA test starts here
|
||||
|
||||
Reference in New Issue
Block a user