common/xfs: refactor commands to select a particular xfs backing device
[xfstests-dev.git] / tests / xfs / 318
index 83b858ea1acb6ec1ee267a46b4c396866e6ca081..07b4f7f130fc8d88926be1495e4c7f32e9c6a577 100755 (executable)
@@ -28,7 +28,6 @@ _cleanup()
 . ./common/inject
 
 # real QA test starts here
-_supported_os Linux
 _supported_fs xfs
 _require_scratch
 _require_error_injection
@@ -43,6 +42,10 @@ echo "Format filesystem"
 _scratch_mkfs >/dev/null 2>&1
 _scratch_mount >> $seqres.full
 
+# This test depends on specific behaviors of the data device, so create all
+# files on it.
+_xfs_force_bdev data $SCRATCH_MNT
+
 echo "Create files"
 touch $SCRATCH_MNT/file1