Skip to content

Commit b8a5974

Browse files
committed
statx04: Skip STATX_ATTR_COMPRESSED on Bcachefs
STATX_ATTR_COMPRESSED is not supported on Bcachefs, thus skip it (it's already skipped on tmpfs and XFS). Link: https://lore.kernel.org/ltp/[email protected]/ Suggested-by: Cyril Hrubis <[email protected]> Acked-by: Kent Overstreet <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
1 parent 67f1550 commit b8a5974

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testcases/kernel/syscalls/statx/statx04.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ static void setup(void)
9696
for (i = 0, expected_mask = 0; i < ARRAY_SIZE(attr_list); i++)
9797
expected_mask |= attr_list[i].attr;
9898

99-
/* STATX_ATTR_COMPRESSED not supported on XFS, TMPFS */
100-
if (!strcmp(tst_device->fs_type, "xfs") || !strcmp(tst_device->fs_type, "tmpfs"))
99+
/* STATX_ATTR_COMPRESSED not supported on Bcachefs, TMPFS, XFS */
100+
if (!strcmp(tst_device->fs_type, "bcachefs") || !strcmp(tst_device->fs_type, "tmpfs") ||
101+
!strcmp(tst_device->fs_type, "xfs"))
101102
expected_mask &= ~STATX_ATTR_COMPRESSED;
102103

103104
/* Attribute support was added to Btrfs statx() in kernel v4.13 */

0 commit comments

Comments
 (0)