inode: convert to new API and merge into a single test
PATCH v3 1/1 inode: convert to new API and merge into a single test
From: Andrea Cervesato <[email protected]>
The inode01 and inode02 tests shared the same directory/file tree engine and differed only in tree dimensions and in whether the workload ran in a single process or across several parallel workers.
inode01 now covers both scenarios, so inode02 is removed together with its entries in runtest/fs, runtest/fs_readonly and the .gitignore. Note this drops inode02 as a test id; its runtest/fs_readonly slot is left as a gap so unrelated test_robind entries keep their numbers.
--- runtest/fs | 1 - runtest/fs_readonly | 1 - testcases/kernel/fs/inode/.gitignore | 1 - testcases/kernel/fs/inode/Makefile | 2 - testcases/kernel/fs/inode/inode01.c | 1042 +++++++------------------- testcases/kernel/fs/inode/inode02.c | 902 ---------------------- 6 files changed, 263 insertions(+), 1686 deletions(-) rewrite testcases/kernel/fs/inode/inode01.c (98%) delete mode 100644 testcases/kernel/fs/inode/inode02.c
runtest/fs +0 -1
@@ -43,7 +43,6 @@ fs_inod01 fs_inod $TMPDIR 10 10 10 linker01 linktest.sh openfile01 openfile -f10 -t10 inode01 inode01 -inode02 inode02 stream01 stream01 stream02 stream02 stream03 stream03
runtest/fs_readonly +0 -1
@@ -37,7 +37,6 @@ test_robind36 test_robind.sh -c "rwtest -N iogen01 -i 120s -s read,write -Da -Dv test_robind37 test_robind.sh -c "fs_inod . 10 10 1" test_robind38 test_robind.sh -c "openfile -f10 -t10" test_robind39 test_robind.sh -c "inode01" -test_robind40 test_robind.sh -c "inode02" test_robind41 test_robind.sh -c "stream01" test_robind42 test_robind.sh -c "stream02" test_robind43 test_robind.sh -c "stream03"
testcases/kernel/fs/inode/.gitignore +0 -1
@@ -1,2 +1 @@ /inode01 -/inode02
testcases/kernel/fs/inode/Makefile +0 -2
@@ -24,6 +24,4 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -CPPFLAGS += -DLINUX - include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/inode/inode01.c +263 -779
1,042 lines not on this page · raw message
testcases/kernel/fs/inode/inode02.c deleted +0 -902
902 lines not on this page · raw message
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
testcases/kernel/fs/inode/inode01.c line 105
Quoted 4 lines · Andrea Cervesato
inode: convert to new API and merge into a single test
testcases/kernel/fs/inode/inode01.c +2
-0+for (i =0 ; i < tc->repetitions; i++) { +SAFE_READ (1 , fd, buf, len);
The literal 1 is used for the len_strict argument here instead of the symbolic SAFE_READ_ALL. A few lines below, SAFE_READ_ANY and SAFE_WRITE_ALL are used as named constants elsewhere in the same file, so this reads as a minor inconsistency rather than a magic number choice.
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its findings are genuine. If you find issues with the review, please comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Andrea Cervesato via ltp
AppliedMerged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp