mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: fix call sites that used xfs_io directly
Convert those few remaining call sites to use the XFS_IO_PROG env var. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
16ef0843f2
commit
3fcfdba403
+2
-2
@@ -59,7 +59,7 @@ _scratch_mount >> $seqres.full 2>&1
|
||||
|
||||
# set the reserved block pool to almost empty for XFS
|
||||
if [ "$FSTYP" = "xfs" ]; then
|
||||
xfs_io -x -c "resblks 4" $SCRATCH_MNT >> $seqres.full 2>&1
|
||||
$XFS_IO_PROG -x -c "resblks 4" $SCRATCH_MNT >> $seqres.full 2>&1
|
||||
fi
|
||||
|
||||
FILES=1000
|
||||
@@ -71,7 +71,7 @@ for i in `seq 0 1 $FILES`; do
|
||||
# tripped over.
|
||||
(
|
||||
sleep 5
|
||||
xfs_io -f -c "truncate 10485760" $SCRATCH_MNT/testfile.$i
|
||||
$XFS_IO_PROG -f -c "truncate 10485760" $SCRATCH_MNT/testfile.$i
|
||||
dd if=/dev/zero of=$SCRATCH_MNT/testfile.$i bs=4k conv=notrunc
|
||||
) > /dev/null 2>&1 &
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user