common/xfs: refactor commands to select a particular xfs backing device
[xfstests-dev.git] / tests / generic / 449
index 21b920bf6a50f79410cdd7bbb1b68f12a357aaa2..2a5065f64bba21b7c47fa515b57cf70247230a4f 100755 (executable)
@@ -35,15 +35,19 @@ rm -f $seqres.full
 
 # Modify as appropriate.
 _supported_fs generic
-_supported_os Linux
 _require_scratch
 _require_test
 _require_acls
-_require_attrs
+_require_attrs trusted
 
 _scratch_mkfs_sized $((256 * 1024 * 1024)) >> $seqres.full 2>&1
 _scratch_mount || _fail "mount failed"
 
+# This is a test of xattr behavior when we run out of disk space for xattrs,
+# so make sure the pwrite goes to the data device and not the rt volume.
+test "$FSTYP" = "xfs" && \
+       _xfs_force_bdev data $SCRATCH_MNT
+
 TFILE=$SCRATCH_MNT/testfile.$seq
 
 # Create the test file and choose its permissions