All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Cc: Petr Vorel <pvorel@suse.cz>, Cyril Hrubis <chrubis@suse.cz>,
	Li Wang <liwang@redhat.com>,
	Richard Palethorpe <rpalethorpe@suse.com>,
	Jan Stancek <jstancek@redhat.com>,
	Xiao Yang <yangx.jy@fujitsu.com>,
	Yang Xu <xuyang2018.jy@fujitsu.com>,
	Kent Overstreet <kent.overstreet@linux.dev>,
	Brian Foster <bfoster@redhat.com>,
	linux-bcachefs@vger.kernel.org, fstests@vger.kernel.org,
	Amir Goldstein <amir73il@gmail.com>, Jan Kara <jack@suse.cz>
Subject: [PATCH v2 3/3] statx04: Skip STATX_ATTR_COMPRESSED on Bcachefs
Date: Thu,  7 Dec 2023 20:40:11 +0100	[thread overview]
Message-ID: <20231207194011.273027-4-pvorel@suse.cz> (raw)
In-Reply-To: <20231207194011.273027-1-pvorel@suse.cz>

STATX_ATTR_COMPRESSED is not supported on Bcachefs, thus skip it
(it's already skipped on tmpfs and XFS).

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2

 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 58296bd24..c2ed52deb 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 */
-- 
2.43.0


WARNING: multiple messages have this Message-ID (diff)
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Cc: Kent Overstreet <kent.overstreet@linux.dev>,
	linux-bcachefs@vger.kernel.org, Brian Foster <bfoster@redhat.com>,
	fstests@vger.kernel.org, Jan Kara <jack@suse.cz>,
	Richard Palethorpe <rpalethorpe@suse.com>
Subject: [LTP] [PATCH v2 3/3] statx04: Skip STATX_ATTR_COMPRESSED on Bcachefs
Date: Thu,  7 Dec 2023 20:40:11 +0100	[thread overview]
Message-ID: <20231207194011.273027-4-pvorel@suse.cz> (raw)
In-Reply-To: <20231207194011.273027-1-pvorel@suse.cz>

STATX_ATTR_COMPRESSED is not supported on Bcachefs, thus skip it
(it's already skipped on tmpfs and XFS).

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2

 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 58296bd24..c2ed52deb 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 */
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2023-12-07 19:40 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07 19:40 [PATCH v2 0/3] Add support bcachefs filesystem Petr Vorel
2023-12-07 19:40 ` [LTP] " Petr Vorel
2023-12-07 19:40 ` [PATCH v2 1/3] lib: Add Bcachefs magic Petr Vorel
2023-12-07 19:40   ` [LTP] " Petr Vorel
2024-01-12 13:18   ` Su Yue
2024-01-12 13:18     ` [LTP] " Su Yue
2024-01-12 13:58     ` Petr Vorel
2024-01-12 13:58       ` Petr Vorel
2023-12-07 19:40 ` [PATCH v2 2/3] lib: Add support bcachefs filesystem to .all_filesystems Petr Vorel
2023-12-07 19:40   ` [LTP] " Petr Vorel
2023-12-07 19:40 ` Petr Vorel [this message]
2023-12-07 19:40   ` [LTP] [PATCH v2 3/3] statx04: Skip STATX_ATTR_COMPRESSED on Bcachefs Petr Vorel
2023-12-13  2:46   ` Kent Overstreet
2024-01-04  3:32     ` [LTP] " Li Wang
2024-01-08 10:01     ` Cyril Hrubis
2024-01-08 10:01       ` [LTP] " Cyril Hrubis
2024-01-08 20:54       ` Kent Overstreet
2024-01-08 20:54         ` [LTP] " Kent Overstreet
2024-01-09 10:32         ` Cyril Hrubis
2024-01-09 10:32           ` [LTP] " Cyril Hrubis
2024-04-19 13:11           ` Cyril Hrubis
2024-04-19 13:11             ` Cyril Hrubis
2024-05-07  8:18             ` Petr Vorel
2024-05-07  8:18               ` Petr Vorel
2024-05-07 14:16               ` Kent Overstreet
2024-05-07 14:16                 ` Kent Overstreet
2024-05-07 17:03                 ` Petr Vorel
2024-05-07 17:03                   ` Petr Vorel
2023-12-12 14:48 ` [PATCH v2 0/3] Add support bcachefs filesystem Jan Kara
2023-12-12 14:48   ` [LTP] " Jan Kara
2023-12-13 16:51   ` Jan Kara
2023-12-13 16:51     ` [LTP] " Jan Kara
2024-01-08 10:14 ` Cyril Hrubis
2024-01-08 10:14   ` [LTP] " Cyril Hrubis
2024-01-08 20:04   ` Petr Vorel
2024-01-08 20:04     ` [LTP] " Petr Vorel
2024-01-11 14:05   ` [LTP] ENODEV on bcachefs on kernel < 6.7 [was: Re: [PATCH v2 0/3] Add support bcachefs filesystem] pvorel
2024-01-11 14:05     ` pvorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231207194011.273027-4-pvorel@suse.cz \
    --to=pvorel@suse.cz \
    --cc=amir73il@gmail.com \
    --cc=bfoster@redhat.com \
    --cc=chrubis@suse.cz \
    --cc=fstests@vger.kernel.org \
    --cc=jack@suse.cz \
    --cc=jstancek@redhat.com \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-bcachefs@vger.kernel.org \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    --cc=rpalethorpe@suse.com \
    --cc=xuyang2018.jy@fujitsu.com \
    --cc=yangx.jy@fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.