* [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG
@ 2026-03-11 4:14 Darrick J. Wong
2026-03-12 7:00 ` Christoph Hellwig
2026-03-13 17:55 ` Zorro Lang
0 siblings, 2 replies; 4+ messages in thread
From: Darrick J. Wong @ 2026-03-11 4:14 UTC (permalink / raw)
To: zlang; +Cc: fstests, linux-xfs
From: Darrick J. Wong <djwong@kernel.org>
QA reports that xfs/62[3-8] fail because they didn't install
xfsprogs-xfs_scrub package and this test requires xfs_scrub(8).
Add the missing _require call, and update the README so that anyone
running fstests on RHEL/Fedora actually get all the necessary
components to do a full test of XFS.
Cc: <fstests@vger.kernel.org> # v2024.06.27
Fixes: 4de8fd7860a2bb ("scrub: test correction of directory tree corruptions")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
README | 2 +-
tests/xfs/623 | 3 +--
tests/xfs/624 | 3 +--
tests/xfs/625 | 3 +--
tests/xfs/626 | 3 +--
tests/xfs/627 | 3 +--
tests/xfs/628 | 1 +
7 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/README b/README
index 211e273115f08f..36684cc6572d4b 100644
--- a/README
+++ b/README
@@ -126,7 +126,7 @@ Fedora
$ sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \
gdbm-devel git indent kernel-devel libacl-devel libaio-devel \
libcap-devel libtool liburing-devel libuuid-devel lvm2 make psmisc \
- python3 quota sed sqlite udftools xfsprogs
+ python3 quota sed sqlite udftools xfsprogs xfsprogs-xfs_scrub
2. Install packages for the filesystem(s) being tested:
diff --git a/tests/xfs/623 b/tests/xfs/623
index aff3f903660fa7..7f79ccbcbf7f14 100755
--- a/tests/xfs/623
+++ b/tests/xfs/623
@@ -16,8 +16,7 @@ _begin_fstest auto online_repair
. ./common/fuzzy
. ./common/populate
-
-# Modify as appropriate.
+_require_scrub
_require_xfs_db_command "link"
_require_xfs_db_command "unlink"
_require_scratch
diff --git a/tests/xfs/624 b/tests/xfs/624
index e63cfcc6e7ba82..09a922c8d18c8a 100755
--- a/tests/xfs/624
+++ b/tests/xfs/624
@@ -16,8 +16,7 @@ _begin_fstest auto online_repair
. ./common/fuzzy
. ./common/populate
-
-# Modify as appropriate.
+_require_scrub
_require_xfs_db_command "link"
_require_xfs_db_command "unlink"
_require_scratch
diff --git a/tests/xfs/625 b/tests/xfs/625
index 23013f195c9e7f..2654216b67aa11 100755
--- a/tests/xfs/625
+++ b/tests/xfs/625
@@ -16,8 +16,7 @@ _begin_fstest auto online_repair
. ./common/fuzzy
. ./common/populate
-
-# Modify as appropriate.
+_require_scrub
_require_xfs_db_command "link"
_require_xfs_db_command "unlink"
_require_scratch
diff --git a/tests/xfs/626 b/tests/xfs/626
index c424819cede6e1..3b4cdca4fe4e24 100755
--- a/tests/xfs/626
+++ b/tests/xfs/626
@@ -16,8 +16,7 @@ _begin_fstest auto online_repair
. ./common/fuzzy
. ./common/populate
-
-# Modify as appropriate.
+_require_scrub
_require_xfs_db_command "link"
_require_xfs_db_command "unlink"
_require_scratch
diff --git a/tests/xfs/627 b/tests/xfs/627
index 411a7603317058..fc54199b4a95de 100755
--- a/tests/xfs/627
+++ b/tests/xfs/627
@@ -16,8 +16,7 @@ _begin_fstest auto online_repair
. ./common/fuzzy
. ./common/populate
-
-# Modify as appropriate.
+_require_scrub
_require_xfs_db_command "link"
_require_xfs_db_command "unlink"
_require_scratch
diff --git a/tests/xfs/628 b/tests/xfs/628
index c77d67db358983..e003f41999f401 100755
--- a/tests/xfs/628
+++ b/tests/xfs/628
@@ -17,6 +17,7 @@ _begin_fstest scrub fsstress_scrub
. ./common/inject
. ./common/xfs
+_require_scrub
_require_scratch
_require_xfs_stress_scrub
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG 2026-03-11 4:14 [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG Darrick J. Wong @ 2026-03-12 7:00 ` Christoph Hellwig 2026-03-13 17:55 ` Zorro Lang 1 sibling, 0 replies; 4+ messages in thread From: Christoph Hellwig @ 2026-03-12 7:00 UTC (permalink / raw) To: Darrick J. Wong; +Cc: zlang, fstests, linux-xfs Looks good: Reviewed-by: Christoph Hellwig <hch@lst.de> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG 2026-03-11 4:14 [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG Darrick J. Wong 2026-03-12 7:00 ` Christoph Hellwig @ 2026-03-13 17:55 ` Zorro Lang 2026-03-13 23:45 ` Darrick J. Wong 1 sibling, 1 reply; 4+ messages in thread From: Zorro Lang @ 2026-03-13 17:55 UTC (permalink / raw) To: Darrick J. Wong; +Cc: fstests, linux-xfs On Tue, Mar 10, 2026 at 09:14:43PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@kernel.org> > > QA reports that xfs/62[3-8] fail because they didn't install > xfsprogs-xfs_scrub package and this test requires xfs_scrub(8). > Add the missing _require call, and update the README so that anyone > running fstests on RHEL/Fedora actually get all the necessary > components to do a full test of XFS. > > Cc: <fstests@vger.kernel.org> # v2024.06.27 > Fixes: 4de8fd7860a2bb ("scrub: test correction of directory tree corruptions") > Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> > --- > README | 2 +- > tests/xfs/623 | 3 +-- > tests/xfs/624 | 3 +-- > tests/xfs/625 | 3 +-- > tests/xfs/626 | 3 +-- > tests/xfs/627 | 3 +-- > tests/xfs/628 | 1 + > 7 files changed, 7 insertions(+), 11 deletions(-) > > diff --git a/README b/README > index 211e273115f08f..36684cc6572d4b 100644 > --- a/README > +++ b/README > @@ -126,7 +126,7 @@ Fedora > $ sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \ > gdbm-devel git indent kernel-devel libacl-devel libaio-devel \ > libcap-devel libtool liburing-devel libuuid-devel lvm2 make psmisc \ > - python3 quota sed sqlite udftools xfsprogs > + python3 quota sed sqlite udftools xfsprogs xfsprogs-xfs_scrub Sure, Reviewed-by: Zorro Lang <zlang@redhat.com> I’m thinking we could split this package list into "necessary" dependencies and "optional" ones. The "necessary" dependencies would include all packages required for building and basic execution of xfstests, while missing "optional" dependencies would simply result in certain cases being notrun. Any thoughts on this :) Thanks, Zorro > > 2. Install packages for the filesystem(s) being tested: > > diff --git a/tests/xfs/623 b/tests/xfs/623 > index aff3f903660fa7..7f79ccbcbf7f14 100755 > --- a/tests/xfs/623 > +++ b/tests/xfs/623 > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > . ./common/fuzzy > . ./common/populate > > - > -# Modify as appropriate. > +_require_scrub > _require_xfs_db_command "link" > _require_xfs_db_command "unlink" > _require_scratch > diff --git a/tests/xfs/624 b/tests/xfs/624 > index e63cfcc6e7ba82..09a922c8d18c8a 100755 > --- a/tests/xfs/624 > +++ b/tests/xfs/624 > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > . ./common/fuzzy > . ./common/populate > > - > -# Modify as appropriate. > +_require_scrub > _require_xfs_db_command "link" > _require_xfs_db_command "unlink" > _require_scratch > diff --git a/tests/xfs/625 b/tests/xfs/625 > index 23013f195c9e7f..2654216b67aa11 100755 > --- a/tests/xfs/625 > +++ b/tests/xfs/625 > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > . ./common/fuzzy > . ./common/populate > > - > -# Modify as appropriate. > +_require_scrub > _require_xfs_db_command "link" > _require_xfs_db_command "unlink" > _require_scratch > diff --git a/tests/xfs/626 b/tests/xfs/626 > index c424819cede6e1..3b4cdca4fe4e24 100755 > --- a/tests/xfs/626 > +++ b/tests/xfs/626 > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > . ./common/fuzzy > . ./common/populate > > - > -# Modify as appropriate. > +_require_scrub > _require_xfs_db_command "link" > _require_xfs_db_command "unlink" > _require_scratch > diff --git a/tests/xfs/627 b/tests/xfs/627 > index 411a7603317058..fc54199b4a95de 100755 > --- a/tests/xfs/627 > +++ b/tests/xfs/627 > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > . ./common/fuzzy > . ./common/populate > > - > -# Modify as appropriate. > +_require_scrub > _require_xfs_db_command "link" > _require_xfs_db_command "unlink" > _require_scratch > diff --git a/tests/xfs/628 b/tests/xfs/628 > index c77d67db358983..e003f41999f401 100755 > --- a/tests/xfs/628 > +++ b/tests/xfs/628 > @@ -17,6 +17,7 @@ _begin_fstest scrub fsstress_scrub > . ./common/inject > . ./common/xfs > > +_require_scrub > _require_scratch > _require_xfs_stress_scrub > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG 2026-03-13 17:55 ` Zorro Lang @ 2026-03-13 23:45 ` Darrick J. Wong 0 siblings, 0 replies; 4+ messages in thread From: Darrick J. Wong @ 2026-03-13 23:45 UTC (permalink / raw) To: Zorro Lang; +Cc: fstests, linux-xfs On Sat, Mar 14, 2026 at 01:55:29AM +0800, Zorro Lang wrote: > On Tue, Mar 10, 2026 at 09:14:43PM -0700, Darrick J. Wong wrote: > > From: Darrick J. Wong <djwong@kernel.org> > > > > QA reports that xfs/62[3-8] fail because they didn't install > > xfsprogs-xfs_scrub package and this test requires xfs_scrub(8). > > Add the missing _require call, and update the README so that anyone > > running fstests on RHEL/Fedora actually get all the necessary > > components to do a full test of XFS. > > > > Cc: <fstests@vger.kernel.org> # v2024.06.27 > > Fixes: 4de8fd7860a2bb ("scrub: test correction of directory tree corruptions") > > Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> > > --- > > README | 2 +- > > tests/xfs/623 | 3 +-- > > tests/xfs/624 | 3 +-- > > tests/xfs/625 | 3 +-- > > tests/xfs/626 | 3 +-- > > tests/xfs/627 | 3 +-- > > tests/xfs/628 | 1 + > > 7 files changed, 7 insertions(+), 11 deletions(-) > > > > diff --git a/README b/README > > index 211e273115f08f..36684cc6572d4b 100644 > > --- a/README > > +++ b/README > > @@ -126,7 +126,7 @@ Fedora > > $ sudo yum install acl attr automake bc dbench dump e2fsprogs fio gawk gcc \ > > gdbm-devel git indent kernel-devel libacl-devel libaio-devel \ > > libcap-devel libtool liburing-devel libuuid-devel lvm2 make psmisc \ > > - python3 quota sed sqlite udftools xfsprogs > > + python3 quota sed sqlite udftools xfsprogs xfsprogs-xfs_scrub > > Sure, > > Reviewed-by: Zorro Lang <zlang@redhat.com> > > I’m thinking we could split this package list into "necessary" dependencies and "optional" > ones. The "necessary" dependencies would include all packages required for building and > basic execution of xfstests, while missing "optional" dependencies would simply result in > certain cases being notrun. Any thoughts on this :) Hrmm. Now that I look at README a bit more, we /could/ break things out by what you need to run xfstests at all vs. what you need for specific filesystems. For example, xfsprogs-xfs_scrub is really only necessary for testing XFS itself, but xfsprogs is needed even if you're testing ext4. Oh. The RHEL/Centos sections actually do that, and the only difference between Fedora and RHEL/Centos seem to be that you have to configure EPEL repos for !Fedora. Those sections really ought to be merged to avoid repetition. Also I'm pretty sure RHEL is supposed to use dnf not yum nowadays. --D > Thanks, > Zorro > > > > > 2. Install packages for the filesystem(s) being tested: > > > > diff --git a/tests/xfs/623 b/tests/xfs/623 > > index aff3f903660fa7..7f79ccbcbf7f14 100755 > > --- a/tests/xfs/623 > > +++ b/tests/xfs/623 > > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > > . ./common/fuzzy > > . ./common/populate > > > > - > > -# Modify as appropriate. > > +_require_scrub > > _require_xfs_db_command "link" > > _require_xfs_db_command "unlink" > > _require_scratch > > diff --git a/tests/xfs/624 b/tests/xfs/624 > > index e63cfcc6e7ba82..09a922c8d18c8a 100755 > > --- a/tests/xfs/624 > > +++ b/tests/xfs/624 > > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > > . ./common/fuzzy > > . ./common/populate > > > > - > > -# Modify as appropriate. > > +_require_scrub > > _require_xfs_db_command "link" > > _require_xfs_db_command "unlink" > > _require_scratch > > diff --git a/tests/xfs/625 b/tests/xfs/625 > > index 23013f195c9e7f..2654216b67aa11 100755 > > --- a/tests/xfs/625 > > +++ b/tests/xfs/625 > > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > > . ./common/fuzzy > > . ./common/populate > > > > - > > -# Modify as appropriate. > > +_require_scrub > > _require_xfs_db_command "link" > > _require_xfs_db_command "unlink" > > _require_scratch > > diff --git a/tests/xfs/626 b/tests/xfs/626 > > index c424819cede6e1..3b4cdca4fe4e24 100755 > > --- a/tests/xfs/626 > > +++ b/tests/xfs/626 > > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > > . ./common/fuzzy > > . ./common/populate > > > > - > > -# Modify as appropriate. > > +_require_scrub > > _require_xfs_db_command "link" > > _require_xfs_db_command "unlink" > > _require_scratch > > diff --git a/tests/xfs/627 b/tests/xfs/627 > > index 411a7603317058..fc54199b4a95de 100755 > > --- a/tests/xfs/627 > > +++ b/tests/xfs/627 > > @@ -16,8 +16,7 @@ _begin_fstest auto online_repair > > . ./common/fuzzy > > . ./common/populate > > > > - > > -# Modify as appropriate. > > +_require_scrub > > _require_xfs_db_command "link" > > _require_xfs_db_command "unlink" > > _require_scratch > > diff --git a/tests/xfs/628 b/tests/xfs/628 > > index c77d67db358983..e003f41999f401 100755 > > --- a/tests/xfs/628 > > +++ b/tests/xfs/628 > > @@ -17,6 +17,7 @@ _begin_fstest scrub fsstress_scrub > > . ./common/inject > > . ./common/xfs > > > > +_require_scrub > > _require_scratch > > _require_xfs_stress_scrub > > > > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-13 23:45 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-03-11 4:14 [PATCH] xfs/62[3-8]: require XFS_SCRUB_PROG Darrick J. Wong 2026-03-12 7:00 ` Christoph Hellwig 2026-03-13 17:55 ` Zorro Lang 2026-03-13 23:45 ` Darrick J. Wong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox