inode: convert to new API and merge into a single test
PATCH 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/inode01.c | 864 +++++---------------------------- testcases/kernel/fs/inode/inode02.c | 902 ----------------------------------- 5 files changed, 124 insertions(+), 1645 deletions(-)
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/inode01.c +124 -740
903 lines not on this page · raw message
testcases/kernel/fs/inode/inode02.c deleted +0 -902
902 lines not on this page · raw message
---
base-commit: 00ee4a27e72788b88c75b747761eb986d1d7b758
change-id: 20260716-rewrite_inode_testing_suite-d43c42684849
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
Quoted 3 lines · Andrea Cervesato
inode: convert to new API and merge into a single test
+CPPFLAGS += -DLINUX
The rewritten inode01.c has no #ifdef LINUX guards, and inode02.c is deleted. This CPPFLAGS line in the Makefile is now dead and should be removed in this patch.
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!
Quoted 9 lines
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_robindentries keep their numbers.
Quoted 7 lines
Signed-off-by Andrea Cervesato <[email protected]>--- runtest/fs | 1 - runtest/fs_readonly | 1 - testcases/kernel/fs/inode/.gitignore | 1 - testcases/kernel/fs/inode/inode01.c | 864 +++++---------------------------- testcases/kernel/fs/inode/inode02.c | 902 -----------------------------------
Just FYI diffs for big rewrites like this are much more readable if generated with the git -B switch.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Couple of things to improve:
- the test is called inode01 but we do not check that the inodes are unique, I guess that the test should build a simple hash table and do lookup (check for uniques) and then insert for each inode
- we should assert other stat fields such as .st_nlink
What about .all_filesystems, would it make sense to add that?
Also please generate v2 with -B.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp