xfs/556: call _require_dm_target later
PATCH 1/2 xfs/556: call _require_dm_target later
_require_dm_target tries to use $SCRATCH_DEV, so move it after we've established that the configuration has a valid $SCRATCH_DEV.
--- tests/xfs/556 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/556 +1 -1
@@ -25,10 +25,10 @@ _cleanup() # real QA test starts here _supported_fs xfs -_require_dm_target error _require_scratch _require_scratch_xfs_crc _require_scrub +_require_dm_target error filter_scrub_errors() { _filter_scratch | sed \
Signature · 1 line
2.39.2
PATCH 2/2 xfs: add missing _require_scratch calls
Add _require_scratch to a bunch of test that were using $SCRATCH_DEV without that check.
--- tests/xfs/184 | 1 + tests/xfs/192 | 1 + tests/xfs/200 | 1 + tests/xfs/204 | 1 + tests/xfs/232 | 1 + 5 files changed, 5 insertions(+)
tests/xfs/184 +1 -0
@@ -19,6 +19,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflink
tests/xfs/192 +1 -0
@@ -19,6 +19,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflink
tests/xfs/200 +1 -0
@@ -21,6 +21,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflink
tests/xfs/204 +1 -0
@@ -21,6 +21,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflink
tests/xfs/232 +1 -0
@@ -30,6 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_xfs_io_command "cowextsize" _require_scratch_reflink
Signature · 1 line
2.39.2
Re: [PATCH 2/2] xfs: add missing _require_scratch calls
Quoted 17 lines · Christoph Hellwig
Add
_require_scratchto a bunch of test that were using $SCRATCH_DEV without that check.Signed-off-by Christoph Hellwig <[email protected]>--- tests/xfs/184 | 1 + tests/xfs/192 | 1 + tests/xfs/200 | 1 + tests/xfs/204 | 1 + tests/xfs/232 | 1 + 5 files changed, 5 insertions(+)tests/xfs/184 +0
-0
tests/xfs/184 _begin_fstest auto quick clone fiemap unshare · line 24
Quoted 6 lines
tests/xfs/184 +1
-0@@ -19,6 +19,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink
Oops. That _require_scratch_delalloc could've gone beneath the _require_scratch_reflink to take advantage of the _require_scratch call in _require_scratch_reflink.
That said ... maybe _require_scratch_* calls should require the caller to have _require_scratch'd beforehand? And perhaps all _require_scratch_* functions should complain if ${RESULT_DIR}/require_scratch doesn't already exist.
For this patch, though, everything looks fine:
--D
Quoted 52 lines
tests/xfs/184 +0
-0_require_cp_reflinktests/xfs/192 +1
-0@@ -19,6 +19,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflinktests/xfs/200 +1
-0@@ -21,6 +21,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflinktests/xfs/204 +1
-0@@ -21,6 +21,7 @@ _begin_fstest auto quick clone fiemap unshare # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_scratch_reflink _require_cp_reflinktests/xfs/232 +1
-0@@ -30,6 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs +_require_scratch _require_scratch_delalloc _require_xfs_io_command "cowextsize" _require_scratch_reflinkSignature · 1 line
2.39.2
Re: [PATCH 2/2] xfs: add missing _require_scratch calls
Quoted 4 lines · Darrick J. Wong
Quoted 3 lines
+_require_scratch
_require_scratch_delalloc
_require_scratch_reflink
Quoted 8 lines
Oops. That
_require_scratch_delalloccould've gone beneath the_require_scratch_reflinkto take advantage of the_require_scratchcall in_require_scratch_reflink.That said ... maybe _require_scratch_* calls should require the caller to have _require_scratch'd beforehand? And perhaps all _require_scratch_* functions should complain if ${RESULT_DIR}/require_scratch doesn't already exist.
Either having a _require_scratch in all _require_scratch_* helpers or none sounds sensible to me, having it in some and nother others is rather confusing. Any preferences?
Re: [PATCH 2/2] xfs: add missing _require_scratch calls
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · Darrick J. Wong
Quoted 3 lines
+_require_scratch
_require_scratch_delalloc
_require_scratch_reflinkOops. That
_require_scratch_delalloccould've gone beneath the_require_scratch_reflinkto take advantage of the_require_scratchcall in_require_scratch_reflink.
Quoted 8 lines
Quoted 4 lines
That said ... maybe _require_scratch_* calls should require the caller to have _require_scratch'd beforehand? And perhaps all _require_scratch_* functions should complain if ${RESULT_DIR}/require_scratch doesn't already exist.
Either having a
_require_scratchin all _require_scratch_* helpers or none sounds sensible to me, having it in some and nother others is rather confusing. Any preferences?
IMIO, every test should be calling _require_scratch explicitly, and only once. The _require_scratch_XXX functions should complain if you haven't called _require_scratch.
--D
Quoted 4 lines · Christoph Hellwig
_require_dm_targettries to use $SCRATCH_DEV, so move it after we've established that the configuration has a valid $SCRATCH_DEV.Signed-off-by Christoph Hellwig <[email protected]>
Oops, thanks for catching that.
--D
Quoted 23 lines
--- tests/xfs/556 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/xfs/556 +1
-1@@ -25,10 +25,10 @@ _cleanup() # real QA test starts here _supported_fs xfs -_require_dm_target error _require_scratch _require_scratch_xfs_crc _require_scrub +_require_dm_target error filter_scrub_errors() { _filter_scratch | sed \Signature · 1 line
2.39.2