mbox series

[0/6,v2] fanotify: Make feature tests operate against tested path

Message ID 20231130093533.10036-1-jack@suse.cz
Headers show
Series fanotify: Make feature tests operate against tested path | expand

Message

Jan Kara Nov. 30, 2023, 9:37 a.m. UTC
Hello,

some of the fanotify features are not available across all filesystems. Thus
depending on which path is used for placing fanotify mark the feature may or
may not be available. This leads to test failures when some feature is
supported in tmpdir but not on the tested filesystem. Convert all of the
fanotify feature tests to be performed on the path actually being used for
testing.

Changes since v1:
* Added Amir's reviewed by
* Fixed up bug in patch 1 leading to incorrect feature availability detection
* Added patch to print more details in error messages
* Changed FAN_CLASS_CONTENT to FAN_CLASS_NOTIF when testing whether a mark
  type is supported.


								Honza
Previous versions:
Link: http://lore.kernel.org/r/20231129114617.12660-1-jack@suse.cz # v1