[LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
Petr Vorel
pvorel@suse.cz
Tue Dec 1 15:44:05 CET 2026
Hi Amir,
thanks for the test. LGTM, I'll have a deeper look next week (we have hackweek
in SUSE).
...
> +#if defined(HAVE_NAME_TO_HANDLE_AT)
very nit: #ifdef HAVE_NAME_TO_HANDLE_AT
> +
> +#else
> + TST_TEST_TCONF("System does not have required name_to_handle_at() support");
Can't we use name_to_handle_at() fallback from include/lapi/name_to_handle_at.h
to run the syscall directly? It will quit with TCONF on old kernels without that
syscall.
Kind regards,
Petr
> +#endif
> +#else
> + TST_TEST_TCONF("System does not have required fanotify support");
> +#endif
More information about the ltp
mailing list