Skip to content

syscalls/ustat: Skip tests on Btrfs using TCONF#1294

Open
disgoel wants to merge 1 commit intolinux-test-project:masterfrom
disgoel:ustat
Open

syscalls/ustat: Skip tests on Btrfs using TCONF#1294
disgoel wants to merge 1 commit intolinux-test-project:masterfrom
disgoel:ustat

Conversation

@disgoel
Copy link

@disgoel disgoel commented Mar 11, 2026

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.

Changes

  • Added sys/vfs.h for statfs support.
  • Implemented Btrfs magic number detection in setup().
  • Used tst_brk(TCONF, ...) to skip the test if Btrfs is detected.

Verified on:

  • SLES (Btrfs): Result is now TCONF (Skipped)
  • RHEL (XFS): Result remains TPASS

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.

Signed-off-by: Disha Goel <disgoel@linux.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant