Skip to contentSkip to conversation

f2fs/015,016: add missing _require_scratch checks

PATCH In review Prabhakar Pujeri 2 participants 2 messages Sep 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs/015,016: add missing _require_scratch checks

Both tests run _scratch_mkfs in a loop without first requiring a scratch device, so they fail messily instead of skipping when no scratch device is configured.

---
 tests/f2fs/015 | 1 +
 tests/f2fs/016 | 1 +
 2 files changed, 2 insertions(+)
tests/f2fs/015 +1 -0
index 54cada4a..75ae91f2 100755
@@ -12,6 +12,7 @@ _begin_fstest auto quick mount
 _require_kernel_config CONFIG_F2FS_FS_XATTR
 _require_kernel_config CONFIG_F2FS_FS_POSIX_ACL
 _require_kernel_config CONFIG_F2FS_FAULT_INJECTION
+_require_scratch
 
 options=(
 #	mount_option			mkfs_option
tests/f2fs/016 +1 -0
index a6df827d..e0857e0a 100755
@@ -15,6 +15,7 @@ _require_kernel_config CONFIG_F2FS_FS_LZORLE
 _require_kernel_config CONFIG_F2FS_FS_LZ4
 _require_kernel_config CONFIG_F2FS_FS_LZ4HC
 _require_kernel_config CONFIG_F2FS_FS_ZSTD
+_require_scratch
 
 options=(
 #	mount_option			mkfs_option
Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw

Oh, there's one more "add _require_scratch" related patch :)

Quoted 1 line · Prabhakar Pujeri

Both tests run _scratch_mkfs in a loop without first requiring a scratch device, so they fail messily instead of skipping when no scratch device is configured.

This line is too long. I can help to change that when I merge it. Or *if you have more* similar patches, I can wait for your next combined patch or patchset.

Quoted 34 lines
---
 tests/f2fs/015 | 1 +
 tests/f2fs/016 | 1 +
 2 files changed, 2 insertions(+)
tests/f2fs/015 +1 -0
index 54cada4a..75ae91f2 100755
@@ -12,6 +12,7 @@ _begin_fstest auto quick mount
 _require_kernel_config CONFIG_F2FS_FS_XATTR
 _require_kernel_config CONFIG_F2FS_FS_POSIX_ACL
 _require_kernel_config CONFIG_F2FS_FAULT_INJECTION
+_require_scratch
 
 options=(
 #	mount_option			mkfs_option
tests/f2fs/016 +1 -0
index a6df827d..e0857e0a 100755
@@ -15,6 +15,7 @@ _require_kernel_config CONFIG_F2FS_FS_LZORLE
 _require_kernel_config CONFIG_F2FS_FS_LZ4
 _require_kernel_config CONFIG_F2FS_FS_LZ4HC
 _require_kernel_config CONFIG_F2FS_FS_ZSTD
+_require_scratch
 
 options=(
 #	mount_option			mkfs_option
Signature · 1 line
2.55.0