Skip to contentSkip to conversation

generic/420: skip test for ocfs2

PATCH In review Su Yue 2 participants 2 messages Jan 6, 2025 OCFS2

lore
Share & tools
lore

Su Yue

author
#0 lore raw

PATCH 1/1 generic/420: skip test for ocfs2

ocfs2 doesn't support fallocate with mode=FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE so skip it.

---
 tests/generic/420 | 1 +
 1 file changed, 1 insertion(+)
tests/generic/420 +1 -0
index edd9655fd3a3..e67442f8979b 100755
@@ -15,6 +15,7 @@ _begin_fstest auto quick punch
 
 
 # Modify as appropriate.
+_supported_fs ^ocfs2
 _require_test
 _require_xfs_io_command fpunch
 
Signature · 1 line
2.47.1
#1 lore raw
Quoted 13 lines · Su Yue

ocfs2 doesn't support fallocate with mode=FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE so skip it.

---
 tests/generic/420 | 1 +
 1 file changed, 1 insertion(+)
tests/generic/420 +0 -0
index edd9655fd3a3..e67442f8979b 100755

tests/generic/420 _begin_fstest auto quick punch · line 20

Quoted 6 lines
tests/generic/420 +1 -0
@@ -15,6 +15,7 @@ _begin_fstest auto quick punch
 
 
 # Modify as appropriate.
+_supported_fs ^ocfs2
 _require_test
 _require_xfs_io_command fpunch

_require_xfs_io_command should be checking for hole punch support. If that doesn't work we'll need to fix it instead of throwing in undocumented blacklisting of file system types.