[LTP] [PATCH] fanotify13: fix test failure when running iterations
Jan Kara
jack@suse.cz
Sat May 30 13:26:58 CEST 2026
On Thu 28-05-26 17:19:37, Amir Goldstein wrote:
> The test case for FAN_SELETE_SELF deletes the objects created in
> do_setup() so we need to re-create them for the next iteration.
>
> This bring up a problem with ext2 and filesystem that do not support
> RENAME_EXCHANGE because overlayfs fails to re-create objects over a
> whiteout.
>
> It is generally not interesting to test overlayfs over such base fs,
> but for now, let just exclude this type of base fs from the delete
> self event test case.
>
> Reported-by: AnonymeMeow <anonymemeow@gmail.com>
> Link: https://lore.kernel.org/linux-fsdevel/20260527195056.337081-1-anonymemeow@gmail.com/
> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
> ---
>
> Petr,
>
> The basic fix is taken from AnonymeMeow's patch.
>
> I applied a skip instead of fix for the issue with test_variant 3 on
> ext2 base fs.
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
One typo fix below:
> +#define TST_VARINAT_OVL_LOWER (tst_variant & 1)
^^^^ typo here
> +#define TST_VARIANT_OVL_WATCH (tst_variant > 2)
> +
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
More information about the ltp
mailing list