Skip to contentSkip to conversation

xfs: skip copy fs test on large device

PATCH In review Zorro Lang 2 participants 2 messages Jul 6, 2018

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 xfs: skip copy fs test on large device

When test on large SCRATCH_DEV, copy a huge size XFS to TEST_DIR will fill the TEST_DIR soon, and xfs_copy process will be blocked there. Due to copy LARGE_SCRATCH_DEV won't add any more test coverage, so skip this kind of tests if LARGE_SCRATCH_DEV is yes.

---

Refer to "a82e9464 xfs: skip growfs test on large device", xfs_copy a huge size XFS will be blocked, so skip this kind of tests too.

Thanks,
Zorro

 tests/xfs/077 | 1 +
 tests/xfs/284 | 1 +
 2 files changed, 2 insertions(+)
tests/xfs/077 +1 -0
index 3eaa5ffd..02bcc9f7 100755
@@ -38,6 +38,7 @@ _supported_os Linux
 # xfs_copy does not support realtime devices
 _require_no_realtime
 _require_scratch
+_require_no_large_scratch_dev
 _require_xfs_crc
 _require_meta_uuid
 
tests/xfs/284 +1 -0
index fc51af0e..07f71031 100755
@@ -38,6 +38,7 @@ _supported_os Linux
 _require_no_realtime
 _require_test
 _require_scratch
+_require_no_large_scratch_dev
 
 function filter_mounted()
 {
Signature · 1 line
2.14.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Zorro Lang

When test on large SCRATCH_DEV, copy a huge size XFS to TEST_DIR will fill the TEST_DIR soon, and xfs_copy process will be blocked there. Due to copy LARGE_SCRATCH_DEV won't add any more test coverage, so skip this kind of tests if LARGE_SCRATCH_DEV is yes.

Seems reasonable.

Quoted 37 lines

---

Refer to "a82e9464 xfs: skip growfs test on large device", xfs_copy a huge size XFS will be blocked, so skip this kind of tests too.

Thanks,
Zorro

 tests/xfs/077 | 1 +
 tests/xfs/284 | 1 +
 2 files changed, 2 insertions(+)
tests/xfs/077 +1 -0
index 3eaa5ffd..02bcc9f7 100755
@@ -38,6 +38,7 @@ _supported_os Linux
 # xfs_copy does not support realtime devices
 _require_no_realtime
 _require_scratch
+_require_no_large_scratch_dev
 _require_xfs_crc
 _require_meta_uuid
 
tests/xfs/284 +1 -0
index fc51af0e..07f71031 100755
@@ -38,6 +38,7 @@ _supported_os Linux
 _require_no_realtime
 _require_test
 _require_scratch
+_require_no_large_scratch_dev
 
 function filter_mounted()
 {