common/xfs: refactor commands to select a particular xfs backing device
[xfstests-dev.git] / tests / xfs / 004
index 7633071cc4f07884e39935ba44df6979c48722f9..d3fb9c958cf496bc73e131e3ed9b62347c9706e1 100755 (executable)
@@ -31,7 +31,7 @@ _populate_scratch()
        # This test looks at specific behaviors of the xfs_db freesp command,
        # which reports on the contents of the free space btrees for the data
        # device.  Don't let anything get created on the realtime volume.
-       $XFS_IO_PROG -c 'chattr -t' $SCRATCH_MNT
+       _xfs_force_bdev data $SCRATCH_MNT
        dd if=/dev/zero of=$SCRATCH_MNT/foo count=200 bs=4096 >/dev/null 2>&1 &
        dd if=/dev/zero of=$SCRATCH_MNT/goo count=400 bs=4096 >/dev/null 2>&1 &
        dd if=/dev/zero of=$SCRATCH_MNT/moo count=800 bs=4096 >/dev/null 2>&1 &