mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Use configured XFS_IO_PROG binary
We should use XFS_IO_PROG variable rather than calling xfs_io directly and relying on teh path to pick up the correct binary for the test. Merge of master-melb:xfs-cmds:30993a by kenmcd. Use XFS_IO_PROG, not xfs_io.
This commit is contained in:
@@ -64,36 +64,36 @@ _test_eof_hole()
|
||||
{
|
||||
# on a BB boundary
|
||||
rm -f $testfile
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c 'truncate 100k' \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
|
||||
# on an odd byte boundary => 1 short of boundary
|
||||
rm -f $testfile
|
||||
boundary_minus1=`expr 100 \* 1024 - 1`
|
||||
echo "boundary_minus1 = $boundary_minus1"
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c "truncate $boundary_minus1" \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
|
||||
# on an odd byte boundary => 1 over boundary
|
||||
rm -f $testfile
|
||||
boundary_plus1=`expr 100 \* 1024 + 1`
|
||||
echo "boundary_plus1 = $boundary_plus1"
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c "truncate $boundary_plus1" \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
}
|
||||
|
||||
@@ -101,39 +101,39 @@ _test_eof_unwritten_extent()
|
||||
{
|
||||
# on a BB boundary
|
||||
rm -f $testfile
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c 'resvsp 0 100k' \
|
||||
-c 'truncate 100k' \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
|
||||
# on an odd byte boundary => 1 short of boundary
|
||||
rm -f $testfile
|
||||
boundary_minus1=`expr 100 \* 1024 - 1`
|
||||
echo "boundary_minus1 = $boundary_minus1"
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c "resvsp 0 $boundary_minus1" \
|
||||
-c "truncate $boundary_minus1" \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
|
||||
# on an odd byte boundary => 1 over boundary
|
||||
rm -f $testfile
|
||||
boundary_plus1=`expr 100 \* 1024 + 1`
|
||||
echo "boundary_plus1 = $boundary_plus1"
|
||||
xfs_io -f -d \
|
||||
$XFS_IO_PROG -f -d \
|
||||
-c "resvsp 0 $boundary_plus1" \
|
||||
-c "truncate $boundary_plus1" \
|
||||
-c 'pwrite -b 50k 0 50k' \
|
||||
-c 'pread -b 200k 0 200k' \
|
||||
$testfile | _filter_io
|
||||
xfs_io -c 'bmap -vp' $testfile | _filter_bmap
|
||||
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
|
||||
echo ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user