[LTP] [PATCH] fanotify: Fix broken tests due to fanotify_events_supported_by_kernel()

Petr Vorel pvorel@suse.cz
Tue Nov 28 12:30:24 CET 2023


Hi Amir,

...
> > > > FYI, in this branch:
> > > > https://github.com/amir73il/ltp/commits/fanotify_fsid

> > FYI the first commit breaks at least vfat on fanotify13
> > # LTP_SINGLE_FS_TYPE=vfat ./fanotify13
> > ...
> > tst_test.c:1650: TINFO: === Testing on vfat ===
> > tst_test.c:1105: TINFO: Formatting /dev/loop1 with vfat opts='' extra opts=''
> > tst_test.c:1119: TINFO: Mounting /dev/loop1 to /tmp/LTP_fanM9wLom/mntpoint fstyp=vfat flags=0
> > fanotify13.c:152: TINFO: Test #0.1: FAN_REPORT_FID with mark flag: FAN_MARK_INODE
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > fanotify13.c:152: TINFO: Test #1.1: FAN_REPORT_FID with mark flag: FAN_MARK_INODE
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > fanotify13.c:152: TINFO: Test #2.1: FAN_REPORT_FID with mark flag: FAN_MARK_MOUNT
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > fanotify13.c:152: TINFO: Test #3.1: FAN_REPORT_FID with mark flag: FAN_MARK_MOUNT
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > fanotify13.c:152: TINFO: Test #4.1: FAN_REPORT_FID with mark flag: FAN_MARK_FILESYSTEM
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > fanotify13.c:152: TINFO: Test #5.1: FAN_REPORT_FID with mark flag: FAN_MARK_FILESYSTEM
> > fanotify13.c:157: TCONF: overlayfs not supported on vfat
> > tst_device.c:408: TINFO: umount('mntpoint') failed with EBUSY, try  1...
> > tst_device.c:412: TINFO: Likely gvfsd-trash is probing newly mounted fs, kill it to speed up tests.
> > tst_device.c:408: TINFO: umount('mntpoint') failed with EBUSY, try  2...
> > tst_device.c:408: TINFO: umount('mntpoint') failed with EBUSY, try  3...
> > ...
> > tst_device.c:408: TINFO: umount('mntpoint') failed with EBUSY, try 50...
> > tst_device.c:419: TWARN: Failed to umount('mntpoint') after 50 retries
> > tst_test.c:1650: TINFO: === Testing on exfat ===
> > tst_test.c:1105: TINFO: Formatting /dev/loop1 with exfat opts='' extra opts=''
> > tst_test.c:1119: TINFO: Mounting /dev/loop1 to /tmp/LTP_fanM9wLom/mntpoint fstyp=exfat flags=0
> > tst_test.c:1119: TINFO: Trying FUSE...
> > FUSE exfat 1.4.0 (libfuse2)
> > fuse: mount failed: Device or resource busy
> > tst_test.c:1119: TBROK: mount.exfat failed with 256


> I believe this breakage is a regression due to overlayfs bug in v6.7-rc1
> that was fixed by commit
> 37f32f526438 ("ovl: fix memory leak in ovl_parse_param()") in v6.7-rc2.

Indeed, it works on openSUSE 6.7.0-rc3-3.ge7296f9-default.

Thanks for info.

Kind regards,
Petr

> Thanks,
> Amir.


More information about the ltp mailing list