[LTP] [PATCH] syscalls/ustat: Skip tests on Btrfs using TCONF
Disha Goel
disgoel@linux.ibm.com
Mon Mar 23 09:43:04 CET 2026
On 19/03/26 10:03 pm, Cyril Hrubis wrote:
> 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.
>
Hi Cyril,
Thank you for the review.
I will refactor both ustat01 and ustat02 to use .skip_filesystems and
send a v2.
--
Regards,
Disha
More information about the ltp
mailing list