[LTP] [PATCH 3/6] fanotify: Switch event and mark tests to *_on_fs() variant
Petr Vorel
pvorel@suse.cz
Wed Nov 29 14:46:39 CET 2023
Hi Jan, Amir,
> Switch event availability and mark type availability tests to be
> performed on the filesystem actually used for testing instead of on the
> current directory. This is more reliable as not all filesystems support
> the same set of features.
Jan, unfortunately this commit breaks fanotify09 and fanotify10 on SLES15 based kernels:
# ./fanotify09
tst_device.c:97: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1106: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.46.4 (18-Aug-2021)
tst_test.c:1120: TINFO: Mounting /dev/loop0 to /tmp/LTP_fanRt2Q1k/fs_mnt fstyp=ext2 flags=0
tst_test.c:1690: TINFO: LTP version: 20230929-156-gf7f69b7ef
tst_test.c:1576: TINFO: Timeout per run is 0h 00m 30s
fanotify.h:210: TBROK: fanotify_mark (3, FAN_MARK_ADD, ..., AT_FDCWD, fs_mnt) failed: EINVAL (22)
...
# ./fanotify10
tst_device.c:97: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1106: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.46.4 (18-Aug-2021)
tst_test.c:1120: TINFO: Mounting /dev/loop0 to /tmp/LTP_fanTNt5os/fs_mnt fstyp=ext2 flags=0
tst_test.c:1690: TINFO: LTP version: 20230929-156-gf7f69b7ef
tst_test.c:1576: TINFO: Timeout per run is 0h 00m 30s
fanotify.h:210: TBROK: fanotify_mark (3, FAN_MARK_ADD, ..., AT_FDCWD, fs_mnt) failed: EINVAL (22)
fanotify10.c:948: TWARN: unlink(fs_mnt/testdir/testfile) failed: ENOENT (2)
fanotify10.c:949: TWARN: rmdir(fs_mnt/testdir/testdir2) failed: ENOENT (2)
fanotify10.c:950: TWARN: rmdir(fs_mnt/testdir) failed: ENOENT (2)
fanotify10.c:951: TWARN: rmdir(mntpoint) failed: ENOENT (2)
...
I suppose the problem is somewhere in fanotify_flags_supported_on_fs(), i.e. in
the first commit. It works well on Tumbleweed, which uses latest official stable
kernel.
Can you please have look on the issue?
Kind regards,
Petr
More information about the ltp
mailing list