[LTP] [PATCH] syscalls/ustat: Skip tests on Btrfs using TCONF

Cyril Hrubis chrubis@suse.cz
Thu Mar 19 17:33:30 CET 2026


Hi!
> The ustat(2) system call is known to fail with EINVAL on Btrfs because
> it uses anonymous device IDs for subvolumes, which the legacy syscall
> cannot resolve to a physical block device.
> 
> Currently, this results in a TFAIL, which causes false negatives in
> automated CI environments (e.g., SLES). This patch adds dynamic
> filesystem detection in setup() and uses tst_brk(TCONF, ...) to
> gracefully skip the test on Btrfs.

That's why the test has known-fail tag, but maybe it's time to accept
that ustat() is broken on Btrfs and it's not going to get fixed.

However we do have .skip_filesystems in tst_test structure exactly for
cases like that, so it should be used instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list