common/xfs: refactor commands to select a particular xfs backing device
[xfstests-dev.git] / tests / xfs / 318
index a45301e25f70a6e6c62757d773ea34f9869fbfac..07b4f7f130fc8d88926be1495e4c7f32e9c6a577 100755 (executable)
@@ -28,12 +28,10 @@ _cleanup()
 . ./common/inject
 
 # real QA test starts here
-_supported_os Linux
 _supported_fs xfs
 _require_scratch
 _require_error_injection
 _require_xfs_io_error_injection "rmap_finish_one"
-_require_no_rtinherit
 
 rm -f $seqres.full
 
@@ -44,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