Skip to contentSkip to conversation

generic/629: add missing copy_range command check

PATCH In review Chao Yu 2 participants 2 messages Mar 29, 2021

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/1 generic/629: add missing copy_range command check

Otherwise, if xfs_io doesn't support this command, it will report that filesystem fails on this testcase.

---
 tests/generic/629 | 1 +
 1 file changed, 1 insertion(+)
tests/generic/629 +1 -0
index ad86ab5bb0c0..13d433a4e470 100755
@@ -36,6 +36,7 @@ _cleanup()
 _supported_fs generic
 _require_dm_target error
 _require_xfs_io_command "chattr" "s"
+_require_xfs_io_command "copy_range"
 _require_scratch
 
 rm -f $seqres.full
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Chao Yu

Otherwise, if xfs_io doesn't support this command, it will report that filesystem fails on this testcase.

Yep, thanks for catching this.

--D

Quoted 19 lines
---
 tests/generic/629 | 1 +
 1 file changed, 1 insertion(+)
tests/generic/629 +1 -0
index ad86ab5bb0c0..13d433a4e470 100755
@@ -36,6 +36,7 @@ _cleanup()
 _supported_fs generic
 _require_dm_target error
 _require_xfs_io_command "chattr" "s"
+_require_xfs_io_command "copy_range"
 _require_scratch
 
 rm -f $seqres.full
Signature · 1 line
2.29.2