Skip to contentSkip to conversation

generic/740: move checking for a scratch device up

PATCH In review Christoph Hellwig 3 participants 3 messages Jun 13, 2025 – Jun 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/740: move checking for a scratch device up

Commit 3ae8a19f97d0 ("generic/740: enable by default") moved these checks down accidentally. Move them back up to make the test exit gracefully when no scratch device is provided.

---
 tests/generic/740 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/generic/740 +3 -3
index c0a634f2302b..ce55200f7bc3 100755
@@ -21,13 +21,13 @@ _exclude_fs jfs
 _exclude_fs ocfs2
 _exclude_fs udf
 
+_require_scratch_nocheck
+_require_no_large_scratch_dev
+
 _require_block_device "${SCRATCH_DEV}"
 # not all the FS support zoned block device
 _require_non_zoned_device "${SCRATCH_DEV}"
 
-_require_scratch_nocheck
-_require_no_large_scratch_dev
-
 echo "Silence is golden."
 for fs in `echo ${MKFS_PROG}.* | sed -e "s:${MKFS_PROG}.::g"`
 do
Signature · 1 line
2.47.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Christoph Hellwig

Commit 3ae8a19f97d0 ("generic/740: enable by default") moved these checks down accidentally. Move them back up to make the test exit gracefully when no scratch device is provided.

Looks fine,

--D

Quoted 29 lines
---
 tests/generic/740 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/generic/740 +3 -3
index c0a634f2302b..ce55200f7bc3 100755
@@ -21,13 +21,13 @@ _exclude_fs jfs
 _exclude_fs ocfs2
 _exclude_fs udf
 
+_require_scratch_nocheck
+_require_no_large_scratch_dev
+
 _require_block_device "${SCRATCH_DEV}"
 # not all the FS support zoned block device
 _require_non_zoned_device "${SCRATCH_DEV}"
 
-_require_scratch_nocheck
-_require_no_large_scratch_dev
-
 echo "Silence is golden."
 for fs in `echo ${MKFS_PROG}.* | sed -e "s:${MKFS_PROG}.::g"`
 do
Signature · 1 line
2.47.2
Reviewed-by
#2 lore raw
Quoted 9 lines · Darrick J. Wong
Quoted 5 lines · Christoph Hellwig

Commit 3ae8a19f97d0 ("generic/740: enable by default") moved these checks down accidentally. Move them back up to make the test exit gracefully when no scratch device is provided.

Looks fine,

Weird, I didn't get this patch in my mailbox, I just got your reply.

Quoted 22 lines

--D

Quoted 19 lines
---
 tests/generic/740 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/generic/740 +3 -0
index c0a634f2302b..ce55200f7bc3 100755
@@ -21,13 +21,13 @@ _exclude_fs jfs
 _exclude_fs ocfs2
 _exclude_fs udf
 
+_require_scratch_nocheck
+_require_no_large_scratch_dev
+
 _require_block_device "${SCRATCH_DEV}"
 # not all the FS support zoned block device
 _require_non_zoned_device "${SCRATCH_DEV}"
 
Quoted 2 lines

tests/generic/740 _exclude_fs jfs · line 29

Quoted 2 lines
tests/generic/740 +0 -2
-_require_scratch_nocheck
-_require_no_large_scratch_dev

This change looks better than latest version, thanks for fixing it :)

Quoted 9 lines
Quoted 8 lines
tests/generic/740 +0 -1
-
 echo "Silence is golden."
 for fs in `echo ${MKFS_PROG}.* | sed -e "s:${MKFS_PROG}.::g"`
 do
Signature · 1 line
2.47.2