From b8a5974d3c0850358f6d035fa606d96b2d81134a Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Thu, 7 Dec 2023 20:40:11 +0100 Subject: [PATCH] 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/20231207194011.273027-4-pvorel@suse.cz/ Suggested-by: Cyril Hrubis Acked-by: Kent Overstreet Signed-off-by: Petr Vorel --- testcases/kernel/syscalls/statx/statx04.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/syscalls/statx/statx04.c b/testcases/kernel/syscalls/statx/statx04.c index 58296bd2435..c2ed52deb2e 100644 --- a/testcases/kernel/syscalls/statx/statx04.c +++ b/testcases/kernel/syscalls/statx/statx04.c @@ -96,8 +96,9 @@ static void setup(void) for (i = 0, expected_mask = 0; i < ARRAY_SIZE(attr_list); i++) expected_mask |= attr_list[i].attr; - /* STATX_ATTR_COMPRESSED not supported on XFS, TMPFS */ - if (!strcmp(tst_device->fs_type, "xfs") || !strcmp(tst_device->fs_type, "tmpfs")) + /* STATX_ATTR_COMPRESSED not supported on Bcachefs, TMPFS, XFS */ + if (!strcmp(tst_device->fs_type, "bcachefs") || !strcmp(tst_device->fs_type, "tmpfs") || + !strcmp(tst_device->fs_type, "xfs")) expected_mask &= ~STATX_ATTR_COMPRESSED; /* Attribute support was added to Btrfs statx() in kernel v4.13 */