Skip to content

Fanotify tests for FAN_MARK_EVICTABLE

Amir Goldstein ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5syscalls/inotify12: Introduce test for inotify mask flagsruntest/syscalls testcases/kernel/syscalls/inotify/.gitignore testcases/kernel/syscalls/inotify/inotify12.c+170 -07 replies
2/5syscalls/fanotify23: Introduce FAN_MARK_EVICTABLE testruntest/syscalls testcases/kernel/syscalls/fanotify/.gitignore testcases/kernel/syscalls/fanotify/fanotify.h +1 more+264 -04 replies
3/5syscalls/fanotify10: Watch directory that is not the mount pathtestcases/kernel/syscalls/fanotify/fanotify10.c+16 -125 replies
4/5syscalls/fanotify10: Mount cycle between test casestestcases/kernel/syscalls/fanotify/fanotify10.c+18 -71 reply
5/5syscalls/fanotify10: Add test cases for evictable ignore marktestcases/kernel/syscalls/fanotify/fanotify10.c+78 -012 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchPetr VorelJan KaraAmir Goldstein
1/5R-b R-b
2/5R-b
3/5
4/5R-b
5/5R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [LTP] [PATCH 0/5] Fanotify tests for FAN_MARK_EVICTABLE

Hi Petr,

FAN_MARK_EVICTABLE feature was merge in v5.19-rc1.

Here are the tests for it.

inotify12 is a test for an unrelated fix.

Note that fanotify23 is run on ext2.
That is because, I could not find a way to reliably evict an inode on any filesystem and the rain dance I did with vfs_cache_pressure and drop_caches works reliably with ext2 on my test setup.

If that turns out not to work on other systems, we will need to re-think of a more aggressive way to force inode eviction.

Thanks,
Amir.

Amir Goldstein (5):
syscalls/inotify12: Introduce test for inotify mask flags syscalls/fanotify23: Introduce FAN_MARK_EVICTABLE test syscalls/fanotify10: Watch directory that is not the mount path syscalls/fanotify10: Mount cycle between test cases syscalls/fanotify10: Add test cases for evictable ignore mark

 runtest/syscalls                              |   2 +
 testcases/kernel/syscalls/fanotify/.gitignore |   1 +
 testcases/kernel/syscalls/fanotify/fanotify.h |   4 +
 .../kernel/syscalls/fanotify/fanotify10.c     | 131 +++++++--
 .../kernel/syscalls/fanotify/fanotify23.c     | 258 ++++++++++++++++++
 testcases/kernel/syscalls/inotify/.gitignore  |   1 +
 testcases/kernel/syscalls/inotify/inotify12.c | 168 ++++++++++++
 7 files changed, 546 insertions(+), 19 deletions(-)
 create mode 100644 testcases/kernel/syscalls/fanotify/fanotify23.c
 create mode 100644 testcases/kernel/syscalls/inotify/inotify12.c
Signature · 5 lines
2.25.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp