syscalls/fanotify15: TCONF also on EOPNOTSUPP
PATCH 1/1 syscalls/fanotify15: TCONF also on EOPNOTSUPP
instead of TBROK:
fanotify15.c:86: INFO: Test #0: FAN_REPORT_FID on filesystem including FAN_DELETE_SELF
fanotify15.c:96: BROK: fanotify_mark(3, FAN_MARK_ADD | FAN_MARK_FILESYSTEM, FAN_CREATE | FAN_DELETE | FAN_MOVE | FAN_MODIFY | FAN_ONDIR | 0x400, AT_FDCWD, mntpoint/test_dir) failed: EOPNOTSUPP (95)
is now reported:
fanotify15.c:86: INFO: Test #0: FAN_REPORT_FID on filesystem including FAN_DELETE_SELF fanotify15.c:93: CONF: FAN_REPORT_FID not supported on exfat filesystem
fanotify15.c:86: INFO: Test #0: FAN_REPORT_FID on filesystem including FAN_DELETE_SELF fanotify15.c:93: CONF: FAN_REPORT_FID not supported on ntfs filesystem
Found on 5.8.0 on openSUSE Tumbleweed.
---
Hi,
I suppose that EXDEV (in fanotify_test_fid()) is really error which should be caught as TBROK (unlike ENODEV and EOPNOTSUPP). Am I correct?
Kind regards,
Petr
testcases/kernel/syscalls/fanotify/fanotify15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/fanotify/fanotify15.c +1 -1
@@ -89,7 +89,7 @@ static void do_test(unsigned int number) FAN_CREATE | FAN_DELETE | FAN_MOVE | FAN_MODIFY | FAN_ONDIR, AT_FDCWD, TEST_DIR) == -1) { -if (errno ==ENODEV ) +if (errno ==ENODEV || errno ==EOPNOTSUPP )tst_brk (TCONF ,"FAN_REPORT_FID not supported on %s " "filesystem" , tst_device->fs_type);
Signature · 1 line
2.28.0
PATCH 1/1 syscalls/fanotify15: TCONF also on EOPNOTSUPP
Quoted 14 lines · Petr Vorel
instead of TBROK:
fanotify15.c:86: INFO: Test #0:FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELF
fanotify15.c:96: BROK: fanotify_mark(3,FAN_MARK_ADD|FAN_MARK_FILESYSTEM,FAN_CREATE|FAN_DELETE|FAN_MOVE|FAN_MODIFY|FAN_ONDIR|0x400,AT_FDCWD, mntpoint/test_dir) failed: EOPNOTSUPP (95)is now reported:
fanotify15.c:86: INFO: Test #0:FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELFfanotify15.c:93: CONF:FAN_REPORT_FIDnot supported on exfat filesystemfanotify15.c:86: INFO: Test #0:
FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELFfanotify15.c:93: CONF:FAN_REPORT_FIDnot supported on ntfs filesystemFound on 5.8.0 on openSUSE Tumbleweed.
Quoted 8 lines
Fixes 403f11f3a ("syscalls/fanotify15: verify fid for dirent events")Signed-off-by Petr Vorel <[email protected]>---
Hi,I suppose that EXDEV (in
fanotify_test_fid()) is really error which should be caught as TBROK (unlike ENODEV and EOPNOTSUPP). Am I correct?
No. EXDEV is also an indication of problematic filesystem.
You will get it if you try to setup the mark on a btrfs subvolume, which is not the root volume, because in that case the "fsid" information from event is not reliable.
Probably this is not going to happen in LTP, but still.
Good spotting.
Thanks,
Amir.
PATCH 1/1 syscalls/fanotify15: TCONF also on EOPNOTSUPP
Hi Amir,
Quoted 9 lines
Quoted 2 lines
I suppose that EXDEV (in
fanotify_test_fid()) is really error which should be caught as TBROK (unlike ENODEV and EOPNOTSUPP). Am I correct?No. EXDEV is also an indication of problematic filesystem.
You will get it if you try to setup the mark on a btrfs subvolume, which is not the root volume, because in that case the "fsid" information from event is not reliable.Probably this is not going to happen in LTP, but still.
Right, I'll add also check for EXDEV and merge with your Reviewed-by tag. Thanks for your review!
Quoted 4 lines
Good spotting.
Thanks,
Amir.
Kind regards,
Petr
PATCH 1/1 syscalls/fanotify15: TCONF also on EOPNOTSUPP
In reply to Amir GoldsteinHi Amir,
Quoted 24 lines · Petr Vorel
Quoted 14 lines
instead of TBROK:
fanotify15.c:86: INFO: Test #0:FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELF
fanotify15.c:96: BROK: fanotify_mark(3,FAN_MARK_ADD|FAN_MARK_FILESYSTEM,FAN_CREATE|FAN_DELETE|FAN_MOVE|FAN_MODIFY|FAN_ONDIR|0x400,AT_FDCWD, mntpoint/test_dir) failed: EOPNOTSUPP (95)is now reported:
fanotify15.c:86: INFO: Test #0:FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELFfanotify15.c:93: CONF:FAN_REPORT_FIDnot supported on exfat filesystemfanotify15.c:86: INFO: Test #0:
FAN_REPORT_FIDon filesystem includingFAN_DELETE_SELFfanotify15.c:93: CONF:FAN_REPORT_FIDnot supported on ntfs filesystemFound on 5.8.0 on openSUSE Tumbleweed.
Quoted 8 lines
Fixes 403f11f3a ("syscalls/fanotify15: verify fid for dirent events")Signed-off-by Petr Vorel <[email protected]>---
Hi,I suppose that EXDEV (in
fanotify_test_fid()) is really error which should be caught as TBROK (unlike ENODEV and EOPNOTSUPP). Am I correct?
Quoted 8 lines
No. EXDEV is also an indication of problematic filesystem.
You will get it if you try to setup the mark on a btrfs subvolume, which is not the root volume, because in that case the "fsid" information from event is not reliable.Probably this is not going to happen in LTP, but still.
Good spotting.
Merged commit where handling both EOPNOTSUPP and EXDEV. Thanks!
Quoted 2 lines
Thanks,
Amir.
Kind regards,
Petr