Skip to contentSkip to conversation

inode: convert to new API and merge into a single test

PATCH Superseded Andrea Cervesato 3 participants 4 messages Jul 16 – Jul 21

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 1d753e0ddfdc0eee077a937cb6901a02a9e4aa48..3d0137ee738972000299fd1213a342ea9bacdcf7 100644
@@ -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
index dc70d28d8ad3b99d18dac022650b4e455fe0b954..c29c7e55177de59839cd8145aac32307d3c0ae01 100644
@@ -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
index 92d90357aff879c5611b65d36182ead624d91496..13f7f27fa97d19652e3f05d79306682b83eb2db2 100644
@@ -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
#1 lore raw

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
#2 lore raw
In reply to Andrea Cervesato

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_robind entries keep their numbers.

Quoted 7 lines
---
 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
#3 lore raw
In reply to Andrea Cervesato

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