[LTP] [PATCH 2/6] fanotify: Provide fanotify_mark_supported_on_fs()

Jan Kara jack@suse.cz
Thu Nov 30 10:06:50 CET 2023


On Wed 29-11-23 16:47:56, Amir Goldstein wrote:
> On Wed, Nov 29, 2023 at 1:54 PM Jan Kara <jack@suse.cz> wrote:
> >
> > Provide helper checking whether a mark is supported on a filesystem
> > since some marks need not be available on all filesystems (e.g. btrfs
> > subvolumes). Also convert REQUIRE_MARK_TYPE_SUPPORTED_BY_KERNEL() and
> > its only user to use this new function.
> >
> > Signed-off-by: Jan Kara <jack@suse.cz>
...
> > +static inline int fanotify_mark_supported_on_fs(uint64_t flag, const char *fname)
> > +{
> > +       return fanotify_flags_supported_on_fs(FAN_CLASS_CONTENT, flag, FAN_ACCESS, fname);
> 
> Why not FAN_CLASS_NOTIF?

Cut'n'paste from somewhere ;) Fixed. Thanks!

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR


More information about the ltp mailing list