[LTP] [PATCH] syscalls: file_attr05: skip ntfs filesystem

Cyril Hrubis chrubis@suse.cz
Thu Apr 9 10:27:57 CEST 2026


Hi!
> LTP mounts ntfs via ntfs-3g (FUSE) rather than the kernel ntfs3
> driver. ntfs-3g's ntfs_ioctl() returns EINVAL for any unhandled
> ioctl, including FS_IOC_FSSETXATTR, so file_setattr() returns
> EINVAL instead of the expected EOPNOTSUPP.
> 
> Add "ntfs" to skip_filesystems for the same reason "fuse" is
> already skipped.

The "fuse" in skiplist should match all fuse based filesystems. We pass
the skip_filesystems pointer to tst_get_supported_fs_types() in
lib/tst_supported_fs_types.c. If "fuse" is present there we enable
skip_fuse flag nad pass it to fs_could_be_used() function. In the
fs_could_be_used() we check if filesystem is implemented by fuse and
then skip it accordingly.

When I run the test I see:

...
tst_supported_fs_types.c:165: TINFO: Skipping FUSE based ntfs as requested by the test
...

So likely something else is at play here. Are you sure you are dealing
with a fuse based ntfs or with the kernel based implementation?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list