FS/XFS testing framework
 help / color / mirror / Atom feed
From: Zorro Lang <zlang@kernel.org>
To: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Cc: "fstests@vger.kernel.org" <fstests@vger.kernel.org>,
	 "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"slava@dubeyko.com" <slava@dubeyko.com>
Subject: Re: Should we consider disable generic/563 for file systems that do not support cgroup2?
Date: Sat, 18 Jul 2026 00:19:52 +0800	[thread overview]
Message-ID: <alpUADtQccA2zmWh@zlang-mailbox> (raw)
In-Reply-To: <ff1c0710cbb31f8ebf51457c0629a496ea6f658e.camel@ibm.com>

On Fri, Jul 10, 2026 at 07:10:43PM +0000, Viacheslav Dubeyko wrote:
> Hello,
> 
> As far as I can see, the generic/563 test is dedicated to cgroup v2
> functionality. And several file systems fails to execute the test:
> 
> sudo ./check generic/563
> FSTYP         -- hfsplus
> PLATFORM      -- Linux/x86_64 hfsplus-testing-0001 7.2.0-rc1+ #55 SMP
> PREEMPT_DYNAMIC Fri Jul 10 11:21:38 PDT 2026
> MKFS_OPTIONS  -- /dev/loop51
> MOUNT_OPTIONS -- /dev/loop51 /mnt/scratch
> 
> generic/563        - output mismatch (see xfstests-
> dev/results//generic/563.out.bad)
>     --- tests/generic/563.out	2026-04-07 14:19:04.785079940 -0700
>     +++ xfstests-dev/results//generic/563.out.bad	2026-07-10
> 11:33:14.231562955 -0700
>     @@ -4,11 +4,13 @@
>      write is in range
>      write -> read/write
>      read is in range
>     -write is in range
>     +write has value of 0
>     +write is NOT in range 15938355.2 .. 17616076.8
>      read is in range
>     ...
>     (Run 'diff -u xfstests-dev/tests/generic/563.out xfstests-
> dev/results//generic/563.out.bad'  to see the entire diff)
> Ran: generic/563
> Failures: generic/563
> Failed 1 of 1 tests
> 
> sudo ./check generic/563
> FSTYP         -- vfat
> PLATFORM      -- Linux/x86_64 hfsplus-testing-0001 7.2.0-rc1+ #55 SMP
> PREEMPT_DYNAMIC Fri Jul 10 11:21:38 PDT 2026
> MKFS_OPTIONS  -- /dev/loop51
> MOUNT_OPTIONS -- /dev/loop51 /mnt/scratch
> 
> generic/563        - output mismatch (see xfstests-
> dev/results//generic/563.out.bad)
>     --- tests/generic/563.out	2026-04-07 14:19:04.785079940 -0700
>     +++ xfstests-dev/results//generic/563.out.bad	2026-07-10
> 11:36:02.221320239 -0700
>     @@ -1,14 +1,19 @@
>      QA output created by 563
>      read/write
>     -read is in range
>     +read has value of 22014464
>     +read is NOT in range 15938355.2 .. 17616076.8
>      write is in range
>      write -> read/write
>     ...
>     (Run 'diff -u xfstests-dev/tests/generic/563.out xfstests-
> dev/results//generic/563.out.bad'  to see the entire diff)
> Ran: generic/563
> Failures: generic/563
> Failed 1 of 1 tests
> 
> sudo ./check generic/563
> FSTYP         -- nilfs2
> PLATFORM      -- Linux/x86_64 hfsplus-testing-0001 7.2.0-rc1+ #55 SMP
> PREEMPT_DYNAMIC Fri Jul 10 11:21:38 PDT 2026
> MKFS_OPTIONS  -- /dev/loop51
> MOUNT_OPTIONS -- /dev/loop51 /mnt/scratch
> 
> generic/563        - output mismatch (see xfstests-
> dev/results//generic/563.out.bad)
>     --- tests/generic/563.out	2026-04-07 14:19:04.785079940 -0700
>     +++ xfstests-dev/results//generic/563.out.bad	2026-07-10
> 11:37:57.633280743 -0700
>     @@ -1,14 +1,18 @@
>      QA output created by 563
>      read/write
>      read is in range
>     -write is in range
>     +write has value of 0
>     +write is NOT in range 15938355.2 .. 17616076.8
>      write -> read/write
>     ...
>     (Run 'diff -u xfstests-dev/tests/generic/563.out xfstests-
> dev/results//generic/563.out.bad'  to see the entire diff)
> Ran: generic/563
> Failures: generic/563
> Failed 1 of 1 tests
> 
> Should file system (like HFS/HFS+, for example) implement cgroup2 support to
> pass the  generic/563 successfully? Is it generic enough test-case? Should we
> consider disable generic/563 for file systems that do not support cgroup2?

Hi Viacheslav,

I completely understand your frustration. The "generic" test suite in fstests
isn't a universal requirement document, so I can't really answer whether HFS+
should support cgroup2 or not..

File systems that are not supported by fstests good enough, frequently run into
false failures. When facing a test that is "destined" to fail on a specific
$FSTYP, you have below options (maybe more):

1. You can add this specific test (e.g., generic/563) to your daily local test
   exclusion list, refer to the -e or -E options with the ./check script.

2. You can modify the test case to explicitly skip a specific $FSTYP using the
   _exclude_fs helper, along with a short comment explaining why.

3. You can use or implement a _require_ function to check if a specific feature
   is supported, which will gracefully _notrun the test if it's missing. While
   _require_cgroup2() already exists, its granularity is currently too coarse to
   _notrun for HFS. You might want to consider refining it or introducing a new
   helper to help file systems like HFS+ _notrun properly.

I hope my reply help to clear something for you, please let me know if you have
any further questions.

Thanks,
Zorro

> 
> Thanks,
> Slava.

  reply	other threads:[~2026-07-17 16:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10 19:10 Should we consider disable generic/563 for file systems that do not support cgroup2? Viacheslav Dubeyko
2026-07-17 16:19 ` Zorro Lang [this message]
2026-07-17 17:42   ` Viacheslav Dubeyko
2026-07-19 14:02   ` Theodore Tso
2026-07-19 15:57     ` Zorro Lang
2026-07-19 16:52       ` Theodore Tso
2026-07-19 19:15         ` Zorro Lang
2026-07-20  8:07           ` Christoph Hellwig

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=alpUADtQccA2zmWh@zlang-mailbox \
    --to=zlang@kernel.org \
    --cc=Slava.Dubeyko@ibm.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=slava@dubeyko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox