[PATCH v8 04/13] fstests: add _require_fanotify_function
Anand Jain <[email protected]> Sat, 25 Jul 2026 15:39:01 +0800
| Newsgroups | org.kernel.vger.fstests,net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-btrfs,org.kernel.vger.linux-ext4,org.kernel.vger.linux-xfs |
|---|---|
| Message-ID | <d8fb7f5c0d67cf01249e8fc4807e963cc1a353d0.1784949155.git.asj@kernel.org> |
fanotify support may not be compiled into the kernel. Add _require_fanotify_function to skip tests when fanotify is disabled. Signed-off-by: Anand Jain <[email protected]> --- common/rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/rc b/common/rc index 53e5d9d43af6..21b516accdf7 100644 --- a/common/rc +++ b/common/rc @@ -6329,6 +6329,13 @@ _require_max_file_range_blocks() esac } +_require_fanotify_function() +{ + if $FSNOTIFYWAIT_PROG 2>&1 | grep -q "Function not implemented"; then + _notrun "Need CONFIG_FANOTIFY and CONFIG_FANOTIFY_ACCESS_PERMISSIONS to be enabled" + fi +} + _require_fanotify_ioerrors() { local x -- 2.43.0