fstests: catch us up to 6.12-6.14 changes
Hi everyone,
As most developers are aware, the fstests for-next branch has not moved forward since early December. That logjam is hopefully resolved at long last in the patches-in-queue branch:
https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/log/?h=patches-in-queue
So here's all the stuff that I was *going* to send late last year to catch up fstests to the final versions of online fsck (6.12) and the xfs metadata directory changes (6.13). I'm adding the realtime rmap and reflink changes (6.14) because we're three weeks past the merge window.
These patches are (more or less) based atop the patches in queue branch. First come some fixes for last week's for-next push, and some gentle reworking of the zeroout support in the log replay code that I was working on last October.
After that is all the 6.12-6.14 stuff, and a functional test for the rdump command that's out for review. Apologies for the huge dump, I was not expecting things to back up for 79 days.
You might want to just pull the branch:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git/log/?h=rdump_2025-02-18
--Darrick
Here's the list of unreviewed patches, though it's basically every patch in here.
[PATCHSET 01/12] fstests: more random fixes for v2025.02.16
[PATCH 1/2] dio-writeback-race: fix missing mode in O_CREAT [PATCH 2/2] dio_writeback_race: align the directio buffer to base
[PATCHSET 02/12] fstests: fix logwrites zeroing
[PATCH 1/3] logwrites: warn if we don't think read after discard [PATCH 2/3] logwrites: use BLKZEROOUT if it's available [PATCH 3/3] logwrites: only use BLKDISCARD if we know discard zeroes
[PATCHSET v32.1 03/12] fstests: fix online and offline fsck test
[PATCH 01/12] misc: drop the dangerous label from xfs_scrub fsstress [PATCH 02/12] misc: rename the dangerous_repair group to [PATCH 03/12] misc: rename the dangerous_online_repair group to [PATCH 04/12] misc: rename the dangerous_bothrepair group to [PATCH 05/12] misc: rename the dangerous_norepair group to [PATCH 06/12] misc: fix misclassification of xfs_repair fuzz tests [PATCH 07/12] misc: fix misclassification of xfs_scrub + xfs_repair [PATCH 08/12] misc: fix misclassification of verifier fuzz tests [PATCH 09/12] misc: add xfs_scrub + xfs_repair fuzz tests to the [PATCH 10/12] misc: remove the dangerous_scrub group [PATCH 11/12] xfs/28[56],xfs/56[56]: add to the auto group [PATCH 12/12] xfs/349: reclassify this test as not dangerous
[PATCHSET v6.4 04/12] fstests: enable metadir
[PATCH 01/12] various: fix finding metadata inode numbers when [PATCH 02/12] xfs/{030,033,178}: forcibly disable metadata directory [PATCH 03/12] common/repair: patch up repair sb inode value [PATCH 04/12] xfs/206: update for metadata directory support [PATCH 05/12] xfs/{050,144,153,299,330}: update quota reports to [PATCH 06/12] xfs/509: adjust inumbers accounting for metadata [PATCH 07/12] xfs: create fuzz tests for metadata directories [PATCH 08/12] xfs/163: bigger fs for metadir
[PATCH 09/12] xfs/122: disable this test for any codebase that knows [PATCH 10/12] common/populate: label newly created xfs filesystems [PATCH 11/12] scrub: race metapath online fsck with fsstress [PATCH 12/12] xfs: test metapath repairs
[PATCHSET v6.4 05/12] fstests: make protofiles less janky
[PATCH 1/4] xfs/019: reduce _fail calls in test
[PATCH 2/4] xfs/019: test reserved file support
[PATCH 3/4] xfs: test filesystem creation with xfs_protofile [PATCH 4/4] fstests: test mkfs.xfs protofiles with xattr support
[PATCHSET v6.4 06/12] fstests: shard the realtime section
[PATCH 01/15] common/populate: refactor caching of metadumps to a [PATCH 02/15] common/{fuzzy,populate}: use _scratch_xfs_mdrestore [PATCH 03/15] fuzzy: stress data and rt sections of xfs filesystems [PATCH 04/15] fuzzy: run fsx on data and rt sections of xfs [PATCH 05/15] common/ext4: reformat external logs during mdrestore [PATCH 06/15] common/populate: use metadump v2 format by default for [PATCH 07/15] punch-alternating: detect xfs realtime files with large [PATCH 08/15] xfs/206: update mkfs filtering for rt groups feature [PATCH 09/15] common: pass the realtime device to xfs_db when [PATCH 10/15] xfs/185: update for rtgroups
[PATCH 11/15] xfs/449: update test to know about xfs_db -R [PATCH 12/15] xfs/271,xfs/556: fix tests to deal with rtgroups output [PATCH 13/15] common/xfs: capture realtime devices during [PATCH 14/15] common/fuzzy: adapt the scrub stress tests to support [PATCH 15/15] xfs: fix fuzz tests of rtgroups bitmap and summary
[PATCHSET v6.4 07/12] fstests: store quota files in the metadir
[PATCH 1/4] xfs: update tests for quota files in the metadir [PATCH 2/4] xfs: test persistent quota flags
[PATCH 3/4] xfs: fix quota detection in fuzz tests
[PATCH 4/4] xfs: fix tests for persistent qflags
[PATCHSET v6.4 08/12] fstests: enable quota for realtime volumes
[PATCH 1/3] common: enable testing of realtime quota when supported [PATCH 2/3] xfs: fix quota tests to adapt to realtime quota [PATCH 3/3] xfs: regression testing of quota on the realtime device
[PATCHSET 09/12] fstests: check new 6.14 behaviors
[PATCH 1/1] common: test statfs reporting with project quota
[PATCHSET v6.4 10/12] fstests: realtime reverse-mapping support
[PATCH 01/13] xfs: fix tests that try to access the realtime rmap [PATCH 02/13] xfs/336: port to common/metadump
[PATCH 03/13] fuzz: for fuzzing the rtrmapbt,
[PATCH 04/13] xfs: race fsstress with realtime rmap btree scrub and [PATCH 05/13] xfs: fix various problems with fsmap detecting the data [PATCH 06/13] xfs/341: update test for rtgroup-based rmap [PATCH 07/13] xfs/3{43,32}: adapt tests for rt extent size greater [PATCH 08/13] xfs/291: use _scratch_mkfs_sized instead of opencoding [PATCH 09/13] xfs: skip tests if formatting small filesystem fails [PATCH 10/13] xfs/443: use file allocation unit, not dbsize [PATCH 11/13] populate: adjust rtrmap calculations for rtgroups [PATCH 12/13] populate: check that we created a realtime rmap btree [PATCH 13/13] fuzzy: create missing fuzz tests for rt rmap btrees
[PATCHSET v6.4 11/12] fstests: reflink on the realtime device
[PATCH 1/7] common/populate: create realtime refcount btree [PATCH 2/7] xfs: create fuzz tests for the realtime refcount btree [PATCH 3/7] xfs/27[24]: adapt for checking files on the realtime [PATCH 4/7] xfs: race fsstress with realtime refcount btree scrub and [PATCH 5/7] xfs: remove xfs/131 now that we allow reflink on realtime [PATCH 6/7] generic/331,xfs/240: support files that skip delayed [PATCH 7/7] common/xfs: fix _xfs_get_file_block_size when rtinherit
[PATCHSET 12/12] fstests: dump fs directory trees
[PATCH 1/1] xfs: test filesystem recovery with rdump
PATCH 1/12 fstests: more random fixes for v2025.02.16
Hi all,
Here's the usual odd fixes for fstests.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
With a bit of luck, this should all go splendidly. Comments and questions are, as always, welcome.
--D
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=more-fixes
---
Commits in this patchset:
* dio-writeback-race: fix missing mode in O_CREAT
* dio_writeback_race: align the directio buffer to base page size
--- src/dio-writeback-race.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
PATCH 1/2 dio-writeback-race: fix missing mode in O_CREAT
From: Darrick J. Wong <[email protected]>
Fix this build error:
In file included from /usr/include/fcntl.h:314,
from dio-writeback-race.c:40:
In function 'open',
inlined from 'main' at dio-writeback-race.c:110:7:/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:11: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
50 | __open_missing_mode ();
| ^~~~~~~~~~~~~~~~~~~~~~--- src/dio-writeback-race.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/dio-writeback-race.c +1 -1
@@ -107,7 +107,7 @@ int main (int argc, char *argv[])fprintf (stderr,"failed to allocate aligned memory\n" );exit (EXIT_FAILURE ); } - fd =open (argv[optind],O_DIRECT |O_WRONLY |O_CREAT ); + fd =open (argv[optind],O_DIRECT |O_WRONLY |O_CREAT ,0600 );if (fd <0 ) {fprintf (stderr,"failed to open file '%s': %m\n" , argv[optind]); goto error;
Re: [PATCH 1/2] dio-writeback-race: fix missing mode in O_CREAT
Looks good:
PATCH 2/2 dio_writeback_race: align the directio buffer to base page size
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
There's no need to align the memory buffer for the direcio write to the file allocation unit size; base page size will do. This fixes the following error when generic/761 is run against an XFS rt filesystem with a 28k rtextsize:
QA output created by 761
+failed to allocate aligned memory
+cat: /opt/foobar: No such file or directory
Silence is golden
--- src/dio-writeback-race.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/dio-writeback-race.c +1 -1
@@ -102,7 +102,7 @@ int main (int argc, char *argv[])fprintf (stderr,"missing argument\n" ); goto error; } - ret =posix_memalign (&buf, blocksize, blocksize); + ret =posix_memalign (&buf,sysconf (_SC_PAGESIZE), blocksize);if (!buf) {fprintf (stderr,"failed to allocate aligned memory\n" );exit (EXIT_FAILURE );
Re: [PATCH 2/2] dio_writeback_race: align the directio buffer to base page size
Quoted 6 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
There's no need to align the memory buffer for the direcio write to the file allocation unit size; base page size will do. This fixes the following error when generic/761 is run against an XFS rt filesystem with a 28k rtextsize:
Note that in theory even just the memory alignment reported by statx / XFS_IOC_DIOINFO is enough, but I don't see how reducing the alignment futher would benefit us much here.
Re: [PATCH 2/2] dio_writeback_race: align the directio buffer to base page size
Quoted 11 lines · Christoph Hellwig
Quoted 6 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
There's no need to align the memory buffer for the direcio write to the file allocation unit size; base page size will do. This fixes the following error when generic/761 is run against an XFS rt filesystem with a 28k rtextsize:
Note that in theory even just the memory alignment reported by statx /
XFS_IOC_DIOINFOis enough, but I don't see how reducing the alignment futher would benefit us much here.
<nod> I guess its a bit fragile if there's hardware out there that can't handle 4k alignment, but those probably don't live long on the market.
Quoted 1 line
Reviewed-by Christoph Hellwig <[email protected]>
Thanks!
--D
PATCH 2/12 fstests: fix logwrites zeroing
In reply to Darrick J. WongHi all,
This patchset attempts to fix the behavior of the logwrites replay tests when running on XFS. In short, the logwrites code logs every write made to a block device and can set tags at arbitrary points in that log. The replay tests then erase the block device and replay up to those tags, and then invoke the filesystem to see if it can recover the filesystem.
However, the logwrites replay has long had subtle problems. XFS log recovery won't replay a metadata block from the log if the ondisk block has a newer log sequence number (LSNs), which rests on the assumption that ondisk filesystem metadata do not have LSNs greater than that of the head of the log. This is not true if we're replaying to a point in the past, so log recovery fails to produce a consistent filesystem.
The logwrites replay code works around this issue by erasing the block device before replaying. Unfortunately, it uses BLKDISCARD, which has never guaranteed the results of a read after the discard completes. Some devices return zeroes, others do nothing. This inconsistency has been worked around by installing the one block device that guarantees that reads after a mass discard always return zeros -- dm-thinp.
Unfortunately that leaves a subtle landmine for test authors. If their filesystem's recovery doesn't behave like XFS's then they might not need thinp. If it does, it's all too easy to write a broken testcase.
Fix this whole situation by adding a warning to the logwrites setup code if the block device is not known to guarantee that reads after discard returns zeroes; fix the replay program to use BLKZEROOUT so that the block device is zeroed before replay begins; and then fix the logwrites setup to tell the replay program that it can use BLKDISCARD for the devices where we know that will work, because discard is much faster than writing zeroes.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
With a bit of luck, this should all go splendidly. Comments and questions are, as always, welcome.
--D
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=logwrites-fix-zeroing
---
Commits in this patchset:
* logwrites: warn if we don't think read after discard returns zeroes
* logwrites: use BLKZEROOUT if it's available
* logwrites: only use BLKDISCARD if we know discard zeroes data
--- src/log-writes/log-writes.h | 1 + common/dmlogwrites | 39 ++++++++++++++++++++++++++++++++++++++- src/log-writes/log-writes.c | 10 ++++++++++ src/log-writes/replay-log.c | 8 ++++++++ 4 files changed, 57 insertions(+), 1 deletion(-)
PATCH 1/3 logwrites: warn if we don't think read after discard returns zeroes
From: Darrick J. Wong <[email protected]>
The logwrites replay program expects that it can issue a DISCARD against the block device passed to _log_writes_init and that will cause all subsequent reads to return zeroes. This is required for correct log recovery on filesystems such as XFS that skip recovering buffers if newer ones are found on disk.
Unfortunately, there's no way to discover if a device's discard implementation actually guarantees zeroes. There used to be a sysfs knob keyed to an allowlist, but it is now hardwired to return 0. So either we need a magic device that does discard-and-zero, or we need to do the zeroing ourselves. The logwrites program does its own zeroing if there is no discard support, and some tests do their own zeroing.
The only devices we know to work reliably are the software defined ones that are provided by the kernel itself -- which means dm-thinp. Warn if we have a device that supports discard that isn't thinp and the test fails.
--- common/dmlogwrites | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
common/dmlogwrites +31 -0
@@ -59,6 +59,35 @@ _require_log_writes_dax_mountopt() fi } +_log_writes_check_bdev() +{ + local sysfs="/sys/block/$(_short_dev $1)" + + # Some filesystems (e.g. XFS) optimize log recovery by assuming that + # they can elide replay of metadata blocks if the block has a higher + # log serial number than the transaction being recovered. This is a + # problem if the filesystem log contents can go back in time, which is + # what the logwrites replay program does. + # + # The logwrites replay program begins by erasing the block device's + # contents. This can be done very quickly with DISCARD provided the + # device guarantees that all reads after a DISCARD return zeroes, or + # very slowly by writing zeroes to the device. Fast is preferable, but + # there's no longer any way to detect that DISCARD actually unmaps + # zeroes, so warn the user about this requirement if the test happens + # to fail. + + # No discard support means the logwrites will do its own zeroing + test "$(cat "$sysfs/queue/discard_max_bytes")" -eq 0 && return + + # dm-thinp guarantees that reads after discards return zeroes + dmsetup status "$blkdev" 2>/dev/null | grep -q '^0.* thin ' && return + + echo "HINT: $blkdev doesn't guarantee that reads after DISCARD will return zeroes" >> $seqres.hints + echo " This is required for correct journal replay on some filesystems (e.g. xfs)" >> $seqres.hints + echo >> $seqres.hints +} + # Set up a dm-log-writes device # # blkdev: the specified target device
@@ -84,6 +113,8 @@ _log_writes_init() LOGWRITES_NAME=logwrites-test LOGWRITES_DMDEV=/dev/mapper/$LOGWRITES_NAME LOGWRITES_TABLE="0 $BLK_DEV_SIZE log-writes $blkdev $LOGWRITES_DEV" + + _log_writes_check_bdev "$blkdev" _dmsetup_create $LOGWRITES_NAME --table "$LOGWRITES_TABLE" || \ _fail "failed to create log-writes device" }
PATCH 2/3 logwrites: use BLKZEROOUT if it's available
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Use the BLKZEROOUT ioctl instead of writing zeroed buffers if the kernel supports it.
--- src/log-writes/log-writes.h | 1 + src/log-writes/log-writes.c | 10 ++++++++++ 2 files changed, 11 insertions(+)
src/log-writes/log-writes.h +1 -0
@@ -63,6 +63,7 @@ struct log_write_entry {#define LOG_IGNORE_DISCARD (1 << 0)#define LOG_DISCARD_NOT_SUPP (1 << 1) +#define LOG_ZEROOUT_NOT_SUPP (1 << 2)struct log {int logfd;
src/log-writes/log-writes.c +10 -0
@@ -42,6 +42,7 @@ static int discard_range(struct log *log, u64 start, u64 len)static int zero_range (struct log *log,u64 start,u64 len) { +u64 range[2 ] = { start, len };u64 bufsize = len;ssize_t ret;char *buf =NULL ;
@@ -54,6 +55,15 @@ static int zero_range(struct log *log, u64 start, u64 len)return 0 ; } +if (!(log->flags &LOG_ZEROOUT_NOT_SUPP )) { +if (ioctl (log->replayfd,BLKZEROOUT , &range) <0 ) { +if (log_writes_verbose) +printf ( +"replay device doesn't support zeroout, switching to writing zeros\n" ); + log->flags |=LOG_ZEROOUT_NOT_SUPP ; + } + } +while (!buf) { buf =malloc (bufsize);if (!buf)
PATCH 3/3 logwrites: only use BLKDISCARD if we know discard zeroes data
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Building off the checks established in the previous patch, only enable the use of BLKDISCARD if we know that the logwrites device guarantees that reads after a discard return zeroes.
--- common/dmlogwrites | 10 ++++++++-- src/log-writes/replay-log.c | 8 ++++++++ 2 files changed, 16 insertions(+), 2 deletions(-)
common/dmlogwrites +8 -2
@@ -81,7 +81,10 @@ _log_writes_check_bdev() test "$(cat "$sysfs/queue/discard_max_bytes")" -eq 0 && return # dm-thinp guarantees that reads after discards return zeroes - dmsetup status "$blkdev" 2>/dev/null | grep -q '^0.* thin ' && return + if dmsetup status "$blkdev" 2>/dev/null | grep -q '^0.* thin '; then + LOGWRITES_REPLAY_ARGS+=(--discard-zeroes-data) + return + fi echo "HINT: $blkdev doesn't guarantee that reads after DISCARD will return zeroes" >> $seqres.hints echo " This is required for correct journal replay on some filesystems (e.g. xfs)" >> $seqres.hints
@@ -110,6 +113,7 @@ _log_writes_init() BLK_DEV_SIZE=$((length / blksz)) fi + LOGWRITES_REPLAY_ARGS=() LOGWRITES_NAME=logwrites-test LOGWRITES_DMDEV=/dev/mapper/$LOGWRITES_NAME LOGWRITES_TABLE="0 $BLK_DEV_SIZE log-writes $blkdev $LOGWRITES_DEV"
@@ -161,7 +165,8 @@ _log_writes_replay_log() [ $? -ne 0 ] && _fail "mark '$_mark' does not exist" $here/src/log-writes/replay-log --log $LOGWRITES_DEV --replay $_blkdev \ - --end-mark $_mark >> $seqres.full 2>&1 + --end-mark $_mark "${LOGWRITES_REPLAY_ARGS[@]}" \ + >> $seqres.full 2>&1 [ $? -ne 0 ] && _fail "replay failed" }
@@ -231,6 +236,7 @@ _log_writes_replay_log_range() echo "=== replay to $end ===" >> $seqres.full $here/src/log-writes/replay-log -vv --log $LOGWRITES_DEV \ --replay $blkdev --limit $(($end + 1)) \ + "${LOGWRITES_REPLAY_ARGS[@]}" \ >> $seqres.full 2>&1 [ $? -ne 0 ] && _fail "replay failed" }
src/log-writes/replay-log.c +8 -0
@@ -18,6 +18,7 @@ enum option_indexes {FIND ,NUM_ENTRIES ,NO_DISCARD , +DISCARD_ZEROES_DATA ,FSCK ,CHECK , START_MARK,
@@ -37,6 +38,7 @@ static struct option long_options[] = { {"find", no_argument, NULL, 0}, {"num-entries", no_argument, NULL, 0}, {"no-discard", no_argument, NULL, 0}, + {"discard-zeroes-data", no_argument, NULL, 0}, {"fsck", required_argument, NULL, 0}, {"check", required_argument, NULL, 0}, {"start-mark", required_argument, NULL, 0},
@@ -155,6 +157,7 @@ int main(int argc, char **argv)int ret;int print_num_entries =0 ;int discard =1 ; +int use_kernel_discard =0 ;enum log_replay_check_mode check_mode =0 ; while ((c = getopt_long(argc, argv, "v", long_options,
@@ -242,6 +245,9 @@ int main(int argc, char **argv)case NO_DISCARD : discard =0 ;break ; +case DISCARD_ZEROES_DATA : + use_kernel_discard =1 ; +break ;case FSCK : fsck_command =strdup (optarg);if (!fsck_command) {
@@ -299,6 +305,8 @@ int main(int argc, char **argv)if (!discard) log->flags |=LOG_IGNORE_DISCARD ; +if (!use_kernel_discard) + log->flags |=LOG_DISCARD_NOT_SUPP ; log->start_sector = start_sector; log->end_sector = end_sector;
Re: [PATCHSET 02/12] fstests: fix logwrites zeroing
In reply to Darrick J. WongI don't want to block this part as it's an improvement over the current state, but all these games of trying to detect if discard zeroes all data despite making no such guarantee whatsoever and being explicitly allowed to zero some but not all data just feels wrong.
The right thing would be to use the BLKZEROOUT, but AFAIK the problem is that dm-thin doesn't support that. Given that the dm-thin discard implementation seems do always zero, it should be able to just be reusable for BLKZEROOUT. Can the dm maintainers look into that as it is a pretty glaring omission?
Re: [PATCHSET 02/12] fstests: fix logwrites zeroing
Quoted 10 lines · Christoph Hellwig
I don't want to block this part as it's an improvement over the current state, but all these games of trying to detect if discard zeroes all data despite making no such guarantee whatsoever and being explicitly allowed to zero some but not all data just feels wrong.
The right thing would be to use the BLKZEROOUT, but AFAIK the problem is that dm-thin doesn't support that. Given that the dm-thin discard implementation seems do always zero, it should be able to just be reusable for BLKZEROOUT. Can the dm maintainers look into that as it is a pretty glaring omission?
Alternately we could make the log replay program call fallocate(PUNCH_HOLE) on the block device before trying fallocate(ZERO_RANGE) because AFAICT punch-hole has always called blkdev_issue_zeroout with NOFALLBACK. The downside is that fallocate for block devices came long after BLKDISCARD/BLKZEROOUT so we can't remove the BLK* ioctl calls without losing some coverage.
--D
Re: [PATCHSET 02/12] fstests: fix logwrites zeroing
Quoted 6 lines · Darrick J. Wong
Alternately we could make the log replay program call
fallocate(PUNCH_HOLE)on the block device before tryingfallocate(ZERO_RANGE)because AFAICT punch-hole has always calledblkdev_issue_zerooutwith NOFALLBACK. The downside is that fallocate for block devices came long after BLKDISCARD/BLKZEROOUT so we can't remove the BLK* ioctl calls without losing some coverage.
FALLOC_FL_ZERO_RANGE on block devices has been around since 2016, so I don't think that's a problem. The problem is more that it isn't supported on dm-thin at all.
PATCH 3/12 fstests: fix online and offline fsck test groups
In reply to Darrick J. WongHi all,
I've been working on online fsck for years, and hardening offline fsck whenever I notice easy to fix discrepancies between the two tools. Now that it's been a couple of years since I've seen any problems, I think it's time to open this to wider testing by dropping /some/ of the "dangerous" tags.
While working on this I also noticed that some of the fuzz tests were misclassified, so this patchset fixes those problems too.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
With a bit of luck, this should all go splendidly. Comments and questions are, as always, welcome.
--D
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=fix-fsck-test-classifications
---
Commits in this patchset:
* misc: drop the dangerous label from xfs_scrub fsstress tests
* misc: rename the dangerous_repair group to fuzzers_repair
* misc: rename the dangerous_online_repair group to fuzzers_online_repair
* misc: rename the dangerous_bothrepair group to fuzzers_bothrepair
* misc: rename the dangerous_norepair group to fuzzers_norepair
* misc: fix misclassification of xfs_repair fuzz tests
* misc: fix misclassification of xfs_scrub + xfs_repair fuzz tests
* misc: fix misclassification of verifier fuzz tests
* misc: add xfs_scrub + xfs_repair fuzz tests to the scrub and repair groups
* misc: remove the dangerous_scrub group
* xfs/28[56],xfs/56[56]: add to the auto group
* xfs/349: reclassify this test as not dangerous
--- doc/group-names.txt | 13 ++++++------- tests/xfs/285 | 2 +- tests/xfs/286 | 2 +- tests/xfs/349 | 3 +-- tests/xfs/350 | 2 +- tests/xfs/351 | 2 +- tests/xfs/352 | 2 +- tests/xfs/353 | 2 +- tests/xfs/354 | 2 +- tests/xfs/355 | 2 +- tests/xfs/356 | 2 +- tests/xfs/357 | 2 +- tests/xfs/358 | 2 +- tests/xfs/359 | 2 +- tests/xfs/360 | 2 +- tests/xfs/361 | 2 +- tests/xfs/362 | 2 +- tests/xfs/363 | 2 +- tests/xfs/364 | 2 +- tests/xfs/365 | 2 +- tests/xfs/366 | 2 +- tests/xfs/367 | 2 +- tests/xfs/368 | 2 +- tests/xfs/369 | 2 +- tests/xfs/370 | 2 +- tests/xfs/371 | 2 +- tests/xfs/372 | 2 +- tests/xfs/373 | 2 +- tests/xfs/374 | 2 +- tests/xfs/375 | 2 +- tests/xfs/376 | 2 +- tests/xfs/377 | 2 +- tests/xfs/378 | 2 +- tests/xfs/379 | 2 +- tests/xfs/380 | 2 +- tests/xfs/381 | 2 +- tests/xfs/382 | 2 +- tests/xfs/383 | 2 +- tests/xfs/384 | 2 +- tests/xfs/385 | 2 +- tests/xfs/386 | 2 +- tests/xfs/387 | 2 +- tests/xfs/388 | 2 +- tests/xfs/389 | 2 +- tests/xfs/390 | 2 +- tests/xfs/391 | 2 +- tests/xfs/392 | 2 +- tests/xfs/393 | 2 +- tests/xfs/394 | 2 +- tests/xfs/395 | 2 +- tests/xfs/396 | 2 +- tests/xfs/397 | 2 +- tests/xfs/398 | 2 +- tests/xfs/399 | 2 +- tests/xfs/400 | 2 +- tests/xfs/401 | 2 +- tests/xfs/402 | 2 +- tests/xfs/403 | 2 +- tests/xfs/404 | 2 +- tests/xfs/405 | 2 +- tests/xfs/406 | 2 +- tests/xfs/407 | 2 +- tests/xfs/408 | 2 +- tests/xfs/409 | 2 +- tests/xfs/410 | 2 +- tests/xfs/411 | 2 +- tests/xfs/412 | 2 +- tests/xfs/413 | 2 +- tests/xfs/414 | 2 +- tests/xfs/415 | 2 +- tests/xfs/416 | 2 +- tests/xfs/417 | 2 +- tests/xfs/418 | 2 +- tests/xfs/422 | 2 +- tests/xfs/423 | 2 +- tests/xfs/425 | 2 +- tests/xfs/426 | 2 +- tests/xfs/427 | 2 +- tests/xfs/428 | 2 +- tests/xfs/429 | 2 +- tests/xfs/430 | 2 +- tests/xfs/453 | 2 +- tests/xfs/454 | 2 +- tests/xfs/455 | 2 +- tests/xfs/456 | 2 +- tests/xfs/457 | 2 +- tests/xfs/458 | 2 +- tests/xfs/459 | 2 +- tests/xfs/460 | 2 +- tests/xfs/461 | 2 +- tests/xfs/462 | 2 +- tests/xfs/463 | 2 +- tests/xfs/464 | 2 +- tests/xfs/465 | 2 +- tests/xfs/466 | 2 +- tests/xfs/467 | 2 +- tests/xfs/468 | 2 +- tests/xfs/469 | 2 +- tests/xfs/470 | 2 +- tests/xfs/471 | 2 +- tests/xfs/472 | 2 +- tests/xfs/473 | 2 +- tests/xfs/474 | 2 +- tests/xfs/475 | 2 +- tests/xfs/476 | 2 +- tests/xfs/477 | 2 +- tests/xfs/478 | 2 +- tests/xfs/479 | 2 +- tests/xfs/480 | 2 +- tests/xfs/481 | 2 +- tests/xfs/482 | 2 +- tests/xfs/483 | 2 +- tests/xfs/484 | 2 +- tests/xfs/485 | 2 +- tests/xfs/486 | 2 +- tests/xfs/487 | 2 +- tests/xfs/488 | 2 +- tests/xfs/489 | 2 +- tests/xfs/496 | 2 +- tests/xfs/497 | 2 +- tests/xfs/498 | 2 +- tests/xfs/561 | 2 +- tests/xfs/562 | 2 +- tests/xfs/563 | 2 +- tests/xfs/564 | 2 +- tests/xfs/565 | 2 +- tests/xfs/566 | 2 +- tests/xfs/570 | 2 +- tests/xfs/571 | 2 +- tests/xfs/572 | 2 +- tests/xfs/573 | 2 +- tests/xfs/574 | 2 +- tests/xfs/575 | 2 +- tests/xfs/576 | 2 +- tests/xfs/577 | 2 +- tests/xfs/578 | 2 +- tests/xfs/579 | 2 +- tests/xfs/580 | 2 +- tests/xfs/581 | 2 +- tests/xfs/582 | 2 +- tests/xfs/583 | 2 +- tests/xfs/584 | 2 +- tests/xfs/585 | 2 +- tests/xfs/586 | 2 +- tests/xfs/587 | 2 +- tests/xfs/588 | 2 +- tests/xfs/589 | 2 +- tests/xfs/590 | 2 +- tests/xfs/591 | 2 +- tests/xfs/592 | 2 +- tests/xfs/593 | 2 +- tests/xfs/594 | 2 +- tests/xfs/595 | 2 +- tests/xfs/621 | 2 +- tests/xfs/622 | 2 +- tests/xfs/628 | 2 +- tests/xfs/708 | 2 +- tests/xfs/709 | 2 +- tests/xfs/710 | 2 +- tests/xfs/711 | 2 +- tests/xfs/712 | 2 +- tests/xfs/713 | 2 +- tests/xfs/714 | 2 +- tests/xfs/715 | 2 +- tests/xfs/717 | 2 +- tests/xfs/718 | 2 +- tests/xfs/719 | 2 +- tests/xfs/721 | 2 +- tests/xfs/722 | 2 +- tests/xfs/723 | 2 +- tests/xfs/724 | 2 +- tests/xfs/725 | 2 +- tests/xfs/726 | 2 +- tests/xfs/727 | 2 +- tests/xfs/728 | 2 +- tests/xfs/729 | 2 +- tests/xfs/730 | 2 +- tests/xfs/731 | 2 +- tests/xfs/733 | 2 +- tests/xfs/734 | 2 +- tests/xfs/735 | 2 +- tests/xfs/736 | 2 +- tests/xfs/737 | 2 +- tests/xfs/738 | 2 +- tests/xfs/739 | 2 +- tests/xfs/740 | 2 +- tests/xfs/741 | 2 +- tests/xfs/742 | 2 +- tests/xfs/743 | 2 +- tests/xfs/744 | 2 +- tests/xfs/745 | 2 +- tests/xfs/746 | 2 +- tests/xfs/747 | 2 +- tests/xfs/748 | 2 +- tests/xfs/749 | 2 +- tests/xfs/750 | 2 +- tests/xfs/751 | 2 +- tests/xfs/752 | 2 +- tests/xfs/753 | 2 +- tests/xfs/754 | 2 +- tests/xfs/755 | 2 +- tests/xfs/756 | 2 +- tests/xfs/757 | 2 +- tests/xfs/758 | 2 +- tests/xfs/759 | 2 +- tests/xfs/760 | 2 +- tests/xfs/761 | 2 +- tests/xfs/762 | 2 +- tests/xfs/763 | 2 +- tests/xfs/764 | 2 +- tests/xfs/765 | 2 +- tests/xfs/766 | 2 +- tests/xfs/767 | 2 +- tests/xfs/768 | 2 +- tests/xfs/769 | 2 +- tests/xfs/770 | 2 +- tests/xfs/771 | 2 +- tests/xfs/772 | 2 +- tests/xfs/773 | 2 +- tests/xfs/774 | 2 +- tests/xfs/775 | 2 +- tests/xfs/776 | 2 +- tests/xfs/777 | 2 +- tests/xfs/778 | 2 +- tests/xfs/779 | 2 +- tests/xfs/780 | 2 +- tests/xfs/781 | 2 +- tests/xfs/782 | 2 +- tests/xfs/783 | 2 +- tests/xfs/784 | 2 +- tests/xfs/785 | 2 +- tests/xfs/786 | 2 +- tests/xfs/787 | 2 +- tests/xfs/788 | 2 +- tests/xfs/793 | 2 +- tests/xfs/794 | 2 +- tests/xfs/796 | 2 +- tests/xfs/797 | 2 +- tests/xfs/799 | 2 +- tests/xfs/800 | 2 +- tests/xfs/801 | 2 +- 241 files changed, 246 insertions(+), 248 deletions(-)
PATCH 1/12 misc: drop the dangerous label from xfs_scrub fsstress tests
From: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that we don't need to hide the stress tests behind the "dangerous" label anymore.
Also rename fsstress_repair to fsstress_online_repair to be consistent with the online_repair group.
--- doc/group-names.txt | 4 ++-- tests/xfs/285 | 2 +- tests/xfs/286 | 2 +- tests/xfs/422 | 2 +- tests/xfs/561 | 2 +- tests/xfs/562 | 2 +- tests/xfs/563 | 2 +- tests/xfs/564 | 2 +- tests/xfs/565 | 2 +- tests/xfs/566 | 2 +- tests/xfs/570 | 2 +- tests/xfs/571 | 2 +- tests/xfs/572 | 2 +- tests/xfs/573 | 2 +- tests/xfs/574 | 2 +- tests/xfs/575 | 2 +- tests/xfs/576 | 2 +- tests/xfs/577 | 2 +- tests/xfs/578 | 2 +- tests/xfs/579 | 2 +- tests/xfs/580 | 2 +- tests/xfs/581 | 2 +- tests/xfs/582 | 2 +- tests/xfs/583 | 2 +- tests/xfs/584 | 2 +- tests/xfs/585 | 2 +- tests/xfs/586 | 2 +- tests/xfs/587 | 2 +- tests/xfs/588 | 2 +- tests/xfs/589 | 2 +- tests/xfs/590 | 2 +- tests/xfs/591 | 2 +- tests/xfs/592 | 2 +- tests/xfs/593 | 2 +- tests/xfs/594 | 2 +- tests/xfs/595 | 2 +- tests/xfs/621 | 2 +- tests/xfs/622 | 2 +- tests/xfs/628 | 2 +- tests/xfs/708 | 2 +- tests/xfs/709 | 2 +- tests/xfs/710 | 2 +- tests/xfs/711 | 2 +- tests/xfs/712 | 2 +- tests/xfs/713 | 2 +- tests/xfs/714 | 2 +- tests/xfs/715 | 2 +- tests/xfs/717 | 2 +- tests/xfs/718 | 2 +- tests/xfs/719 | 2 +- tests/xfs/721 | 2 +- tests/xfs/722 | 2 +- tests/xfs/723 | 2 +- tests/xfs/724 | 2 +- tests/xfs/725 | 2 +- tests/xfs/726 | 2 +- tests/xfs/727 | 2 +- tests/xfs/728 | 2 +- tests/xfs/729 | 2 +- tests/xfs/731 | 2 +- tests/xfs/793 | 2 +- tests/xfs/794 | 2 +- tests/xfs/796 | 2 +- tests/xfs/797 | 2 +- tests/xfs/799 | 2 +- tests/xfs/800 | 2 +- tests/xfs/801 | 2 +- 67 files changed, 68 insertions(+), 68 deletions(-)
doc/group-names.txt +2 -2
@@ -34,8 +34,6 @@ dangerous_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair dangerous_fuzzers fuzzers that can crash your computer dangerous_norepair fuzzers to evaluate kernel metadata verifiers dangerous_online_repair fuzzers to evaluate xfs_scrub online repair -dangerous_fsstress_repair race fsstress and xfs_scrub online repair -dangerous_fsstress_scrub race fsstress and xfs_scrub checking dangerous_repair fuzzers to evaluate xfs_repair offline repair dangerous_scrub fuzzers to evaluate xfs_scrub checking dangerous_selftest selftests that crash/hang
@@ -58,6 +56,8 @@ fsck general fsck tests fsmap FS_IOC_GETFSMAP ioctl fsproperties Filesystem properties fsr XFS free space reorganizer +fsstress_online_repair race fsstress and xfs_scrub online repair +fsstress_scrub race fsstress and xfs_scrub checking fuzzers filesystem fuzz tests growfs increasing the size of a filesystem hardlink hardlinks
tests/xfs/285 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { cd /
tests/xfs/286 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { cd /
tests/xfs/422 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and rmapbt repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair freeze +_begin_fstest online_repair fsstress_online_repair freeze _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/561 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub # Override the default cleanup function. _cleanup()
tests/xfs/562 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub # Override the default cleanup function. _cleanup()
tests/xfs/563 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair # Override the default cleanup function. _cleanup()
tests/xfs/564 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair # Override the default cleanup function. _cleanup()
tests/xfs/565 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { cd /
tests/xfs/566 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { cd /
tests/xfs/570 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and superblock scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/571 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and AGF scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/572 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and AGFL scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/573 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and AGI scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/574 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/575 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/576 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/577 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/578 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/579 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/580 +1 -1
@@ -8,7 +8,7 @@ # if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/581 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/582 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/583 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/584 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/585 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/586 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/587 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/588 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and data fork scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/589 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and attr fork scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/590 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and cow fork scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/591 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and directory scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/592 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/593 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/594 +1 -1
@@ -8,7 +8,7 @@ # We can't open symlink files directly for scrubbing, so we use xfs_scrub(8). # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/595 +1 -1
@@ -9,7 +9,7 @@ # xfs_scrub(8). # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/621 +1 -1
@@ -8,7 +8,7 @@ # see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/622 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/628 +1 -1
@@ -9,7 +9,7 @@ # handle unlinked directories. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub # Import common functions. . ./common/filter
tests/xfs/708 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and bnobt repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/709 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and inobt repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/710 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and refcountbt repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/711 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and superblock repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/712 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and agf repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/713 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and agfl repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/714 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and agi repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/715 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/717 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and data fork repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/718 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and attr fork repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/719 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and CoW fork repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/721 +1 -1
@@ -8,7 +8,7 @@ # We can't open special files directly for scrubbing, so we use xfs_scrub(8). # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/722 +1 -1
@@ -9,7 +9,7 @@ # xfs_scrub(8). # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/723 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/724 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/725 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/726 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/727 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/728 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/729 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and nlinks scrub for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/731 +1 -1
@@ -9,7 +9,7 @@ # filesystem activity, so we can't have userspace wandering in and thawing it. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair # Override the default cleanup function. _cleanup()
tests/xfs/793 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/794 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/796 +1 -1
@@ -7,7 +7,7 @@ # Race fsstress and directory repair for a while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/797 +1 -1
@@ -8,7 +8,7 @@ # livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { _scratch_xfs_stress_scrub_cleanup &> /dev/null
tests/xfs/799 +1 -1
@@ -8,7 +8,7 @@ # while to see if we crash or livelock. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair _cleanup() { cd /
tests/xfs/800 +1 -1
@@ -8,7 +8,7 @@ # while to see if we crash or livelock. # . ./common/preamble -_begin_fstest scrub dangerous_fsstress_scrub +_begin_fstest scrub fsstress_scrub _cleanup() { cd /
tests/xfs/801 +1 -1
@@ -9,7 +9,7 @@ # because the xfile code wasn't folioized. # . ./common/preamble -_begin_fstest online_repair dangerous_fsstress_repair +_begin_fstest online_repair fsstress_online_repair declare -A oldvalues
Re: [PATCH 01/12] misc: drop the dangerous label from xfs_scrub fsstress tests
Looks good:
PATCH 2/12 misc: rename the dangerous_repair group to fuzzers_repair
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
xfs_repair has been stable for many years now, so I think it's time the fuzz tests for it stopped hiding behind the "dangerous" label.
--- doc/group-names.txt | 2 +- tests/xfs/350 | 2 +- tests/xfs/352 | 2 +- tests/xfs/354 | 2 +- tests/xfs/356 | 2 +- tests/xfs/358 | 2 +- tests/xfs/360 | 2 +- tests/xfs/362 | 2 +- tests/xfs/364 | 2 +- tests/xfs/366 | 2 +- tests/xfs/368 | 2 +- tests/xfs/370 | 2 +- tests/xfs/372 | 2 +- tests/xfs/374 | 2 +- tests/xfs/376 | 2 +- tests/xfs/378 | 2 +- tests/xfs/380 | 2 +- tests/xfs/382 | 2 +- tests/xfs/384 | 2 +- tests/xfs/386 | 2 +- tests/xfs/388 | 2 +- tests/xfs/390 | 2 +- tests/xfs/392 | 2 +- tests/xfs/394 | 2 +- tests/xfs/396 | 2 +- tests/xfs/398 | 2 +- tests/xfs/400 | 2 +- tests/xfs/402 | 2 +- tests/xfs/404 | 2 +- tests/xfs/406 | 2 +- tests/xfs/408 | 2 +- tests/xfs/410 | 2 +- tests/xfs/412 | 2 +- tests/xfs/414 | 2 +- tests/xfs/416 | 2 +- tests/xfs/418 | 2 +- tests/xfs/425 | 2 +- tests/xfs/427 | 2 +- tests/xfs/429 | 2 +- tests/xfs/496 | 2 +- tests/xfs/734 | 2 +- tests/xfs/737 | 2 +- tests/xfs/741 | 2 +- tests/xfs/742 | 2 +- tests/xfs/785 | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-)
doc/group-names.txt +1 -1
@@ -34,7 +34,6 @@ dangerous_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair dangerous_fuzzers fuzzers that can crash your computer dangerous_norepair fuzzers to evaluate kernel metadata verifiers dangerous_online_repair fuzzers to evaluate xfs_scrub online repair -dangerous_repair fuzzers to evaluate xfs_repair offline repair dangerous_scrub fuzzers to evaluate xfs_scrub checking dangerous_selftest selftests that crash/hang data data loss checkers
@@ -59,6 +58,7 @@ fsr XFS free space reorganizer fsstress_online_repair race fsstress and xfs_scrub online repair fsstress_scrub race fsstress and xfs_scrub checking fuzzers filesystem fuzz tests +fuzzers_repair fuzzers to evaluate xfs_repair offline repair growfs increasing the size of a filesystem hardlink hardlinks health XFS health reporting
tests/xfs/350 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/352 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/354 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/356 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/358 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/360 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/362 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/364 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/366 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/368 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/370 +1 -1
@@ -9,7 +9,7 @@ # Use xfs_repair to repair the problems. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/372 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/374 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/376 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/378 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/380 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/382 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/384 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/386 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/388 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/390 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/392 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/394 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/396 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/398 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/400 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/402 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/404 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/406 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/408 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/410 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/412 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/414 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/416 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/418 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/425 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/427 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/429 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/496 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/734 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/737 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/741 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/742 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/785 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair _register_cleanup "_cleanup" BUS
Re: [PATCH 02/12] misc: rename the dangerous_repair group to fuzzers_repair
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
xfs_repairhas been stable for many years now, so I think it's time the fuzz tests for it stopped hiding behind the "dangerous" label.
Looks good:
PATCH 3/12 misc: rename the dangerous_online_repair group to fuzzers_online_repair
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that the scrub functionality tests don't need to hide behind the "dangerous" label anymore. It's time for more widespread testing.
--- doc/group-names.txt | 2 +- tests/xfs/351 | 2 +- tests/xfs/353 | 2 +- tests/xfs/355 | 2 +- tests/xfs/357 | 2 +- tests/xfs/359 | 2 +- tests/xfs/361 | 2 +- tests/xfs/363 | 2 +- tests/xfs/365 | 2 +- tests/xfs/367 | 2 +- tests/xfs/369 | 2 +- tests/xfs/371 | 2 +- tests/xfs/373 | 2 +- tests/xfs/375 | 2 +- tests/xfs/377 | 2 +- tests/xfs/379 | 2 +- tests/xfs/381 | 2 +- tests/xfs/383 | 2 +- tests/xfs/385 | 2 +- tests/xfs/387 | 2 +- tests/xfs/389 | 2 +- tests/xfs/391 | 2 +- tests/xfs/393 | 2 +- tests/xfs/395 | 2 +- tests/xfs/397 | 2 +- tests/xfs/399 | 2 +- tests/xfs/401 | 2 +- tests/xfs/403 | 2 +- tests/xfs/405 | 2 +- tests/xfs/407 | 2 +- tests/xfs/409 | 2 +- tests/xfs/411 | 2 +- tests/xfs/413 | 2 +- tests/xfs/415 | 2 +- tests/xfs/417 | 2 +- tests/xfs/426 | 2 +- tests/xfs/428 | 2 +- tests/xfs/430 | 2 +- tests/xfs/497 | 2 +- tests/xfs/730 | 2 +- tests/xfs/733 | 2 +- tests/xfs/736 | 2 +- tests/xfs/739 | 2 +- tests/xfs/740 | 2 +- tests/xfs/786 | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-)
doc/group-names.txt +1 -1
@@ -33,7 +33,6 @@ dangerous dangerous test that can crash the system dangerous_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair dangerous_fuzzers fuzzers that can crash your computer dangerous_norepair fuzzers to evaluate kernel metadata verifiers -dangerous_online_repair fuzzers to evaluate xfs_scrub online repair dangerous_scrub fuzzers to evaluate xfs_scrub checking dangerous_selftest selftests that crash/hang data data loss checkers
@@ -58,6 +57,7 @@ fsr XFS free space reorganizer fsstress_online_repair race fsstress and xfs_scrub online repair fsstress_scrub race fsstress and xfs_scrub checking fuzzers filesystem fuzz tests +fuzzers_online_repair fuzzers to evaluate xfs_scrub online repair fuzzers_repair fuzzers to evaluate xfs_repair offline repair growfs increasing the size of a filesystem hardlink hardlinks
tests/xfs/351 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/353 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/355 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/357 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/359 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/361 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/363 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/365 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/367 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/369 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/371 +1 -1
@@ -9,7 +9,7 @@ # Use xfs_scrub to repair the problems. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/373 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/375 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/377 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/379 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/381 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/383 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/385 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/387 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/389 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/391 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/393 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/395 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/397 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/399 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/401 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/403 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/405 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/407 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/409 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/411 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/413 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/415 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/417 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/426 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/428 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/430 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/497 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/730 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/733 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/736 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/739 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/740 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/786 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
Re: [PATCH 03/12] misc: rename the dangerous_online_repair group to fuzzers_online_repair
Looks good:
PATCH 4/12 misc: rename the dangerous_bothrepair group to fuzzers_bothrepair
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that the scrub + repair functionality tests don't need to hide behind the "dangerous" label anymore.
--- doc/group-names.txt | 2 +- tests/xfs/743 | 2 +- tests/xfs/744 | 2 +- tests/xfs/747 | 2 +- tests/xfs/748 | 2 +- tests/xfs/749 | 2 +- tests/xfs/750 | 2 +- tests/xfs/751 | 2 +- tests/xfs/752 | 2 +- tests/xfs/753 | 2 +- tests/xfs/754 | 2 +- tests/xfs/755 | 2 +- tests/xfs/756 | 2 +- tests/xfs/757 | 2 +- tests/xfs/758 | 2 +- tests/xfs/759 | 2 +- tests/xfs/760 | 2 +- tests/xfs/761 | 2 +- tests/xfs/762 | 2 +- tests/xfs/763 | 2 +- tests/xfs/764 | 2 +- tests/xfs/765 | 2 +- tests/xfs/766 | 2 +- tests/xfs/767 | 2 +- tests/xfs/768 | 2 +- tests/xfs/769 | 2 +- tests/xfs/770 | 2 +- tests/xfs/771 | 2 +- tests/xfs/772 | 2 +- tests/xfs/773 | 2 +- tests/xfs/774 | 2 +- tests/xfs/775 | 2 +- tests/xfs/776 | 2 +- tests/xfs/777 | 2 +- tests/xfs/778 | 2 +- tests/xfs/779 | 2 +- tests/xfs/780 | 2 +- tests/xfs/781 | 2 +- tests/xfs/782 | 2 +- tests/xfs/783 | 2 +- tests/xfs/784 | 2 +- tests/xfs/787 | 2 +- 42 files changed, 42 insertions(+), 42 deletions(-)
doc/group-names.txt +1 -1
@@ -30,7 +30,6 @@ copy xfs_copy functionality copy_range copy_file_range syscall copyup overlayfs copyup dangerous dangerous test that can crash the system -dangerous_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair dangerous_fuzzers fuzzers that can crash your computer dangerous_norepair fuzzers to evaluate kernel metadata verifiers dangerous_scrub fuzzers to evaluate xfs_scrub checking
@@ -56,6 +55,7 @@ fsproperties Filesystem properties fsr XFS free space reorganizer fsstress_online_repair race fsstress and xfs_scrub online repair fsstress_scrub race fsstress and xfs_scrub checking +fuzzers_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair fuzzers filesystem fuzz tests fuzzers_online_repair fuzzers to evaluate xfs_scrub online repair fuzzers_repair fuzzers to evaluate xfs_repair offline repair
tests/xfs/743 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_bothrepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/744 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_bothrepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/747 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/748 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/749 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/750 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/751 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/752 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/753 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/754 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/755 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/756 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/757 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/758 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/759 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/760 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/761 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/762 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/763 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/764 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/765 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/766 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/767 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/768 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/769 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/770 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/771 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/772 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/773 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/774 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/775 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/776 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/777 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/778 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/779 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/780 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/781 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/782 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/783 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_bothrepair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/784 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_bothrepair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/787 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_bothrepair +_begin_fstest dangerous_fuzzers fuzzers_bothrepair _register_cleanup "_cleanup" BUS
Re: [PATCH 04/12] misc: rename the dangerous_bothrepair group to fuzzers_bothrepair
Quoted 5 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that the scrub + repair functionality tests don't need to hide behind the "dangerous" label anymore.
Looks good:
PATCH 5/12 misc: rename the dangerous_norepair group to fuzzers_norepair
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
I've been running the norepair fuzzers (aka the verifier checks) for most of the time that online fsck has been in development, and I haven't seen any of the VMs crash in a couple of years. I think it's time that these tests stopped hiding behind the "dangerous" label.
--- doc/group-names.txt | 2 +- tests/xfs/453 | 2 +- tests/xfs/454 | 2 +- tests/xfs/455 | 2 +- tests/xfs/456 | 2 +- tests/xfs/457 | 2 +- tests/xfs/458 | 2 +- tests/xfs/459 | 2 +- tests/xfs/460 | 2 +- tests/xfs/461 | 2 +- tests/xfs/462 | 2 +- tests/xfs/463 | 2 +- tests/xfs/464 | 2 +- tests/xfs/465 | 2 +- tests/xfs/466 | 2 +- tests/xfs/467 | 2 +- tests/xfs/468 | 2 +- tests/xfs/469 | 2 +- tests/xfs/470 | 2 +- tests/xfs/471 | 2 +- tests/xfs/472 | 2 +- tests/xfs/473 | 2 +- tests/xfs/474 | 2 +- tests/xfs/475 | 2 +- tests/xfs/476 | 2 +- tests/xfs/477 | 2 +- tests/xfs/478 | 2 +- tests/xfs/479 | 2 +- tests/xfs/480 | 2 +- tests/xfs/481 | 2 +- tests/xfs/482 | 2 +- tests/xfs/483 | 2 +- tests/xfs/484 | 2 +- tests/xfs/485 | 2 +- tests/xfs/486 | 2 +- tests/xfs/487 | 2 +- tests/xfs/488 | 2 +- tests/xfs/489 | 2 +- tests/xfs/498 | 2 +- tests/xfs/735 | 2 +- tests/xfs/738 | 2 +- tests/xfs/745 | 2 +- tests/xfs/746 | 2 +- tests/xfs/788 | 2 +- 44 files changed, 44 insertions(+), 44 deletions(-)
doc/group-names.txt +1 -1
@@ -31,7 +31,6 @@ copy_range copy_file_range syscall copyup overlayfs copyup dangerous dangerous test that can crash the system dangerous_fuzzers fuzzers that can crash your computer -dangerous_norepair fuzzers to evaluate kernel metadata verifiers dangerous_scrub fuzzers to evaluate xfs_scrub checking dangerous_selftest selftests that crash/hang data data loss checkers
@@ -57,6 +56,7 @@ fsstress_online_repair race fsstress and xfs_scrub online repair fsstress_scrub race fsstress and xfs_scrub checking fuzzers_bothrepair fuzzers to evaluate xfs_scrub + xfs_repair repair fuzzers filesystem fuzz tests +fuzzers_norepair fuzzers to evaluate kernel metadata verifiers fuzzers_online_repair fuzzers to evaluate xfs_scrub online repair fuzzers_repair fuzzers to evaluate xfs_repair offline repair growfs increasing the size of a filesystem
tests/xfs/453 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/454 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/455 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/456 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/457 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/458 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/459 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/460 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/461 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/462 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/463 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/464 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/465 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/466 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/467 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/468 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/469 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/470 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/471 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/472 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/473 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/474 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/475 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/476 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/477 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/478 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/479 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/480 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/481 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair realtime +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/482 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair realtime +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/483 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/484 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/485 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/486 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/487 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/488 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/489 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/498 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/735 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_norepair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/738 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_norepair +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/745 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_norepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/746 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub dangerous_norepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/788 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
Re: [PATCH 05/12] misc: rename the dangerous_norepair group to fuzzers_norepair
Looks good:
PATCH 6/12 misc: fix misclassification of xfs_repair fuzz tests
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
All the tests in the "fuzzers_repair" group actually test xfs_repair, not scrub. Therefore, we should remove them all from 'dangerous_scrub' and put them in the 'repair' group.
--- tests/xfs/350 | 2 +- tests/xfs/352 | 2 +- tests/xfs/354 | 2 +- tests/xfs/356 | 2 +- tests/xfs/358 | 2 +- tests/xfs/360 | 2 +- tests/xfs/362 | 2 +- tests/xfs/364 | 2 +- tests/xfs/366 | 2 +- tests/xfs/368 | 2 +- tests/xfs/370 | 2 +- tests/xfs/372 | 2 +- tests/xfs/374 | 2 +- tests/xfs/376 | 2 +- tests/xfs/378 | 2 +- tests/xfs/380 | 2 +- tests/xfs/382 | 2 +- tests/xfs/384 | 2 +- tests/xfs/386 | 2 +- tests/xfs/388 | 2 +- tests/xfs/390 | 2 +- tests/xfs/392 | 2 +- tests/xfs/394 | 2 +- tests/xfs/396 | 2 +- tests/xfs/398 | 2 +- tests/xfs/400 | 2 +- tests/xfs/402 | 2 +- tests/xfs/404 | 2 +- tests/xfs/406 | 2 +- tests/xfs/408 | 2 +- tests/xfs/410 | 2 +- tests/xfs/412 | 2 +- tests/xfs/414 | 2 +- tests/xfs/416 | 2 +- tests/xfs/418 | 2 +- tests/xfs/425 | 2 +- tests/xfs/427 | 2 +- tests/xfs/429 | 2 +- tests/xfs/496 | 2 +- tests/xfs/734 | 2 +- tests/xfs/737 | 2 +- tests/xfs/741 | 2 +- tests/xfs/742 | 2 +- tests/xfs/785 | 2 +- 44 files changed, 44 insertions(+), 44 deletions(-)
tests/xfs/350 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/352 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/354 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/356 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/358 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/360 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/362 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/364 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/366 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/368 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/370 +1 -1
@@ -9,7 +9,7 @@ # Use xfs_repair to repair the problems. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/372 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/374 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/376 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/378 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/380 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/382 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/384 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/386 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/388 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/390 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/392 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/394 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/396 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/398 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/400 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/402 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/404 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/406 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/408 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/410 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/412 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/414 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/416 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/418 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/425 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/427 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/429 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/496 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/734 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/737 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
tests/xfs/741 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/742 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair realtime +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/785 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_repair +_begin_fstest dangerous_fuzzers repair fuzzers_repair _register_cleanup "_cleanup" BUS
Re: [PATCH 06/12] misc: fix misclassification of xfs_repair fuzz tests
Quoted 5 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
All the tests in the "
fuzzers_repair" group actually testxfs_repair, not scrub. Therefore, we should remove them all from 'dangerous_scrub' and put them in the 'repair' group.
Looks good:
PATCH 7/12 misc: fix misclassification of xfs_scrub + xfs_repair fuzz tests
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
All the tests in the "fuzzers_bothrepair" group actually test xfs_scrub and xfs_repair. Therefore, we should put them in the 'repair' group.
--- tests/xfs/743 | 2 +- tests/xfs/744 | 2 +- tests/xfs/783 | 2 +- tests/xfs/784 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tests/xfs/743 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/744 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair realtime +_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/783 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair +_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/784 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_bothrepair +_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
Re: [PATCH 07/12] misc: fix misclassification of xfs_scrub + xfs_repair fuzz tests
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
All the tests in the "
fuzzers_bothrepair" group actually testxfs_scrubandxfs_repair. Therefore, we should put them in the 'repair' group.
Looks good:
PATCH 8/12 misc: fix misclassification of verifier fuzz tests
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
All the tests in the "fuzzers_norepair" group do not test xfs_scrub. Therefore, we should remove them all from 'dangerous_scrub' group.
--- tests/xfs/735 | 2 +- tests/xfs/738 | 2 +- tests/xfs/745 | 2 +- tests/xfs/746 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tests/xfs/735 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/738 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair +_begin_fstest dangerous_fuzzers fuzzers_norepair _register_cleanup "_cleanup" BUS
tests/xfs/745 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair realtime +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/746 +1 -1
@@ -8,7 +8,7 @@ # Do not fix the filesystem, to test metadata verifiers. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_norepair realtime +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime _register_cleanup "_cleanup" BUS
Re: [PATCH 08/12] misc: fix misclassification of verifier fuzz tests
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
All the tests in the "
fuzzers_norepair" group do not testxfs_scrub. Therefore, we should remove them all from 'dangerous_scrub' group.
Looks good:
PATCH 9/12 misc: add xfs_scrub + xfs_repair fuzz tests to the scrub and repair groups
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
All the tests in the "fuzzers_bothrepair" group test xfs_scrub + xfs_repair, so they all should be in the 'scrub' and 'repair' groups.
--- tests/xfs/747 | 2 +- tests/xfs/748 | 2 +- tests/xfs/749 | 2 +- tests/xfs/750 | 2 +- tests/xfs/751 | 2 +- tests/xfs/752 | 2 +- tests/xfs/753 | 2 +- tests/xfs/754 | 2 +- tests/xfs/755 | 2 +- tests/xfs/756 | 2 +- tests/xfs/757 | 2 +- tests/xfs/758 | 2 +- tests/xfs/759 | 2 +- tests/xfs/760 | 2 +- tests/xfs/761 | 2 +- tests/xfs/762 | 2 +- tests/xfs/763 | 2 +- tests/xfs/764 | 2 +- tests/xfs/765 | 2 +- tests/xfs/766 | 2 +- tests/xfs/767 | 2 +- tests/xfs/768 | 2 +- tests/xfs/769 | 2 +- tests/xfs/770 | 2 +- tests/xfs/771 | 2 +- tests/xfs/772 | 2 +- tests/xfs/773 | 2 +- tests/xfs/774 | 2 +- tests/xfs/775 | 2 +- tests/xfs/776 | 2 +- tests/xfs/777 | 2 +- tests/xfs/778 | 2 +- tests/xfs/779 | 2 +- tests/xfs/780 | 2 +- tests/xfs/781 | 2 +- tests/xfs/782 | 2 +- tests/xfs/787 | 2 +- 37 files changed, 37 insertions(+), 37 deletions(-)
tests/xfs/747 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/748 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/749 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/750 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/751 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/752 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/753 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/754 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/755 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/756 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/757 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/758 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/759 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/760 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/761 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/762 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/763 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/764 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/765 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/766 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/767 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/768 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/769 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/770 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/771 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/772 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/773 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/774 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/775 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/776 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/777 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/778 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/779 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/780 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/781 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/782 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/787 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
Re: [PATCH 09/12] misc: add xfs_scrub + xfs_repair fuzz tests to the scrub and repair groups
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
All the tests in the "
fuzzers_bothrepair" group testxfs_scrub+xfs_repair, so they all should be in the 'scrub' and 'repair' groups.
Looks good:
PATCH 10/12 misc: remove the dangerous_scrub group
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that the scrub functionality tests don't need to hide behind the "dangerous" label anymore. Move them all to the scrub group and delete the dangerous_scrub group.
--- doc/group-names.txt | 1 - tests/xfs/351 | 2 +- tests/xfs/353 | 2 +- tests/xfs/355 | 2 +- tests/xfs/357 | 2 +- tests/xfs/359 | 2 +- tests/xfs/361 | 2 +- tests/xfs/363 | 2 +- tests/xfs/365 | 2 +- tests/xfs/367 | 2 +- tests/xfs/369 | 2 +- tests/xfs/371 | 2 +- tests/xfs/373 | 2 +- tests/xfs/375 | 2 +- tests/xfs/377 | 2 +- tests/xfs/379 | 2 +- tests/xfs/381 | 2 +- tests/xfs/383 | 2 +- tests/xfs/385 | 2 +- tests/xfs/387 | 2 +- tests/xfs/389 | 2 +- tests/xfs/391 | 2 +- tests/xfs/393 | 2 +- tests/xfs/395 | 2 +- tests/xfs/397 | 2 +- tests/xfs/399 | 2 +- tests/xfs/401 | 2 +- tests/xfs/403 | 2 +- tests/xfs/405 | 2 +- tests/xfs/407 | 2 +- tests/xfs/409 | 2 +- tests/xfs/411 | 2 +- tests/xfs/413 | 2 +- tests/xfs/415 | 2 +- tests/xfs/417 | 2 +- tests/xfs/423 | 2 +- tests/xfs/426 | 2 +- tests/xfs/428 | 2 +- tests/xfs/430 | 2 +- tests/xfs/497 | 2 +- tests/xfs/730 | 2 +- tests/xfs/733 | 2 +- tests/xfs/736 | 2 +- tests/xfs/739 | 2 +- tests/xfs/740 | 2 +- tests/xfs/743 | 2 +- tests/xfs/744 | 2 +- tests/xfs/783 | 2 +- tests/xfs/784 | 2 +- tests/xfs/786 | 2 +- 50 files changed, 49 insertions(+), 50 deletions(-)
doc/group-names.txt +0 -1
@@ -31,7 +31,6 @@ copy_range copy_file_range syscall copyup overlayfs copyup dangerous dangerous test that can crash the system dangerous_fuzzers fuzzers that can crash your computer -dangerous_scrub fuzzers to evaluate xfs_scrub checking dangerous_selftest selftests that crash/hang data data loss checkers dax direct access mode for persistent memory files
tests/xfs/351 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/353 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/355 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/357 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/359 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/361 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/363 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/365 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/367 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/369 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/371 +1 -1
@@ -9,7 +9,7 @@ # Use xfs_scrub to repair the problems. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/373 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/375 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/377 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/379 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/381 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/383 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/385 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/387 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/389 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/391 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/393 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/395 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/397 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/399 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/401 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/403 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/405 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/407 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/409 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/411 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/413 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/415 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/417 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/423 +1 -1
@@ -10,7 +10,7 @@ # count them if the fork is in btree format. # . ./common/preamble -_begin_fstest dangerous_scrub prealloc +_begin_fstest scrub prealloc _register_cleanup "_cleanup" BUS
tests/xfs/426 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/428 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/430 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/497 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/730 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/733 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/736 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
tests/xfs/739 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/740 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair realtime +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime _register_cleanup "_cleanup" BUS
tests/xfs/743 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair realtime +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/744 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair realtime +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair realtime _register_cleanup "_cleanup" BUS
tests/xfs/783 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/784 +1 -1
@@ -9,7 +9,7 @@ # to test the most likely usage pattern. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub repair fuzzers_bothrepair +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair _register_cleanup "_cleanup" BUS
tests/xfs/786 +1 -1
@@ -8,7 +8,7 @@ # Use xfs_scrub to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers dangerous_scrub fuzzers_online_repair +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair _register_cleanup "_cleanup" BUS
Re: [PATCH 10/12] misc: remove the dangerous_scrub group
Quoted 6 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Now that online fsck has been in the upstream kernel for 8 months, I think it's stabilized enough that the scrub functionality tests don't need to hide behind the "dangerous" label anymore. Move them all to the scrub group and delete the
dangerous_scrubgroup.
Looks good:
PATCH 11/12 xfs/28[56],xfs/56[56]: add to the auto group
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Enable /some/ testing of online fsck for everybody by adding these two fsstress tests and two fsx tests to the auto group. At this time I don't have any plans to do the same for the other scrub stress tests.
--- tests/xfs/285 | 2 +- tests/xfs/286 | 2 +- tests/xfs/565 | 2 +- tests/xfs/566 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tests/xfs/285 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub fsstress_scrub +_begin_fstest auto scrub fsstress_scrub _cleanup() { cd /
tests/xfs/286 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair fsstress_online_repair +_begin_fstest auto online_repair fsstress_online_repair _cleanup() { cd /
tests/xfs/565 +1 -1
@@ -8,7 +8,7 @@ # or livelock. # . ./common/preamble -_begin_fstest scrub fsstress_scrub +_begin_fstest auto scrub fsstress_scrub _cleanup() { cd /
tests/xfs/566 +1 -1
@@ -8,7 +8,7 @@ # crash or livelock. # . ./common/preamble -_begin_fstest online_repair fsstress_online_repair +_begin_fstest auto online_repair fsstress_online_repair _cleanup() { cd /
Re: [PATCH 11/12] xfs/28[56],xfs/56[56]: add to the auto group
Quoted 2 lines · Darrick J. Wong
fsstress tests and two fsx tests to the auto group. At this time I don't have any plans to do the same for the other scrub stress tests.
Can you explain why only these four?
Re: [PATCH 11/12] xfs/28[56],xfs/56[56]: add to the auto group
Quoted 5 lines · Christoph Hellwig
Quoted 2 lines · Darrick J. Wong
fsstress tests and two fsx tests to the auto group. At this time I don't have any plans to do the same for the other scrub stress tests.
Can you explain why only these four?
The rest of the stress tests pick /one/ metadata type and race scrub/repair of it against fsstress by invoking xfs_io repeatedly. xfs/28[56] runs the whole xfs_scrub program repeatedly so we get to exercise all of them in a single test.
(The more specific ones make it a lot easier to debug problems.)
--D
Christoph Hellwig
Reviewed-byRe: [PATCH 11/12] xfs/28[56],xfs/56[56]: add to the auto group
Quoted 8 lines · Darrick J. Wong
Quoted 1 line
Can you explain why only these four?
The rest of the stress tests pick /one/ metadata type and race scrub/repair of it against fsstress by invoking
xfs_iorepeatedly. xfs/28[56] runs the wholexfs_scrubprogram repeatedly so we get to exercise all of them in a single test.(The more specific ones make it a lot easier to debug problems.)
Can you add this to the commit log? With that:
Re: [PATCH 11/12] xfs/28[56],xfs/56[56]: add to the auto group
Quoted 11 lines · Christoph Hellwig
Quoted 8 lines · Darrick J. Wong
Quoted 1 line
Can you explain why only these four?
The rest of the stress tests pick /one/ metadata type and race scrub/repair of it against fsstress by invoking
xfs_iorepeatedly. xfs/28[56] runs the wholexfs_scrubprogram repeatedly so we get to exercise all of them in a single test.(The more specific ones make it a lot easier to debug problems.)
Can you add this to the commit log? With that:
Will do!
Quoted 1 line
Reviewed-by Christoph Hellwig <[email protected]>
Thanks!
--D
PATCH 12/12 xfs/349: reclassify this test as not dangerous
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
This test creates a filesystem with all known types of metadata. It doesn't fuzz anything, nor does it actually repair anything. Hence we can put it in the auto group and drop the dangerous tags.
--- tests/xfs/349 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/xfs/349 +1 -2
@@ -5,10 +5,9 @@ # FS QA Test No. 349 # # Populate a XFS filesystem and ensure that scrub and repair are happy. -# Use xfs_repair to fix the corruption. # . ./common/preamble -_begin_fstest dangerous_fuzzers scrub +_begin_fstest auto scrub _register_cleanup "_cleanup" BUS
Re: [PATCH 12/12] xfs/349: reclassify this test as not dangerous
Looks good:
PATCH 4/12 fstests: enable metadir
In reply to Darrick J. WongHi all,
Adjust fstests as needed to support the XFS metadata directory feature, and add some new tests for online fsck and fuzz testing of the ondisk metadata.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=metadir
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=metadir
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=metadir
xfsdocs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-documentation.git/log/?h=metadir
---
Commits in this patchset:
* various: fix finding metadata inode numbers when metadir is enabled
* xfs/{030,033,178}: forcibly disable metadata directory trees
* common/repair: patch up repair sb inode value complaints
* xfs/206: update for metadata directory support
* xfs/{050,144,153,299,330}: update quota reports to handle metadir trees
* xfs/509: adjust inumbers accounting for metadata directories
* xfs: create fuzz tests for metadata directories
* xfs/163: bigger fs for metadir
* xfs/122: disable this test for any codebase that knows about metadir
* common/populate: label newly created xfs filesystems
* scrub: race metapath online fsck with fsstress
* xfs: test metapath repairs
--- common/filter | 7 ++- common/populate | 8 +++ common/repair | 4 ++ common/xfs | 100 +++++++++++++++++++++++++++++++++++++++++++- tests/xfs/007 | 16 ++++--- tests/xfs/030 | 1 tests/xfs/033 | 1 tests/xfs/050 | 5 ++ tests/xfs/122 | 6 +++ tests/xfs/153 | 5 ++ tests/xfs/1546 | 34 +++++++++++++++ tests/xfs/1546.out | 4 ++ tests/xfs/1547 | 34 +++++++++++++++ tests/xfs/1547.out | 4 ++ tests/xfs/1548 | 34 +++++++++++++++ tests/xfs/1548.out | 4 ++ tests/xfs/1549 | 35 +++++++++++++++ tests/xfs/1549.out | 4 ++ tests/xfs/1550 | 34 +++++++++++++++ tests/xfs/1550.out | 4 ++ tests/xfs/1551 | 34 +++++++++++++++ tests/xfs/1551.out | 4 ++ tests/xfs/1552 | 34 +++++++++++++++ tests/xfs/1552.out | 4 ++ tests/xfs/1553 | 35 +++++++++++++++ tests/xfs/1553.out | 4 ++ tests/xfs/163 | 2 - tests/xfs/178 | 1 tests/xfs/1874 | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1874.out | 19 ++++++++ tests/xfs/1892 | 66 +++++++++++++++++++++++++++++ tests/xfs/1892.out | 2 + tests/xfs/1893 | 67 +++++++++++++++++++++++++++++ tests/xfs/1893.out | 2 + tests/xfs/206 | 1 tests/xfs/299 | 1 tests/xfs/330 | 6 ++- tests/xfs/509 | 23 +++++++++- tests/xfs/529 | 5 +- tests/xfs/530 | 6 +-- tests/xfs/739 | 9 +--- tests/xfs/740 | 9 +--- tests/xfs/741 | 9 +--- tests/xfs/742 | 9 +--- tests/xfs/743 | 9 +--- tests/xfs/744 | 9 +--- tests/xfs/745 | 9 +--- tests/xfs/746 | 9 +--- 48 files changed, 773 insertions(+), 78 deletions(-) create mode 100755 tests/xfs/1546 create mode 100644 tests/xfs/1546.out create mode 100755 tests/xfs/1547 create mode 100644 tests/xfs/1547.out create mode 100755 tests/xfs/1548 create mode 100644 tests/xfs/1548.out create mode 100755 tests/xfs/1549 create mode 100644 tests/xfs/1549.out create mode 100755 tests/xfs/1550 create mode 100644 tests/xfs/1550.out create mode 100755 tests/xfs/1551 create mode 100644 tests/xfs/1551.out create mode 100755 tests/xfs/1552 create mode 100644 tests/xfs/1552.out create mode 100755 tests/xfs/1553 create mode 100644 tests/xfs/1553.out create mode 100755 tests/xfs/1874 create mode 100644 tests/xfs/1874.out create mode 100755 tests/xfs/1892 create mode 100644 tests/xfs/1892.out create mode 100755 tests/xfs/1893 create mode 100644 tests/xfs/1893.out
PATCH 1/12 various: fix finding metadata inode numbers when metadir is enabled
From: Darrick J. Wong <[email protected]>
There are a number of tests that use xfs_db to examine the contents of metadata inodes to check correct functioning. The logic is scattered everywhere and won't work with metadata directory trees, so make a shared helper to find these inodes.
--- common/xfs | 21 +++++++++++++++++++-- tests/xfs/007 | 16 +++++++++------- tests/xfs/529 | 5 ++--- tests/xfs/530 | 6 ++---- tests/xfs/739 | 9 ++------- tests/xfs/740 | 9 ++------- tests/xfs/741 | 9 ++------- tests/xfs/742 | 9 ++------- tests/xfs/743 | 9 ++------- tests/xfs/744 | 9 ++------- tests/xfs/745 | 9 ++------- tests/xfs/746 | 9 ++------- 12 files changed, 48 insertions(+), 72 deletions(-)
common/xfs +19 -2
@@ -1400,7 +1400,7 @@ _scratch_get_bmx_prefix() { _scratch_get_iext_count() { - local ino=$1 + local selector=$1 local whichfork=$2 local field=""
@@ -1415,7 +1415,7 @@ _scratch_get_iext_count() return 1 esac - _scratch_xfs_get_metadata_field $field "inode $ino" + _scratch_xfs_get_metadata_field $field "$selector" } #
@@ -1885,3 +1885,20 @@ _wipe_xfs_properties() setfattr --remove="$name" "$1" done } + +# Return the xfs_db selector for a superblock-rooted metadata file on the +# scratch filesystem. The sole argument is the name of the field within the +# superblock. This helper cannot be used to find files under the metadata +# directory tree. +_scratch_xfs_find_metafile() +{ + local metafile="$1" + local sb_field + + sb_field="$(_scratch_xfs_get_sb_field "$metafile")" + if echo "$sb_field" | grep -q -w 'not found'; then + return 1 + fi + echo "inode $sb_field" + return 0 +}
tests/xfs/007 +9 -7
@@ -21,6 +21,11 @@ _require_xfs_quota _scratch_mkfs_xfs | _filter_mkfs > /dev/null 2> $tmp.mkfs . $tmp.mkfs +get_qfile_nblocks() { + local selector="$(_scratch_xfs_find_metafile "$1")" + _scratch_xfs_db -c "$selector" -c "p core.nblocks" +} + do_test() { qino_1=$1
@@ -30,12 +35,9 @@ do_test() echo "*** umount" _scratch_unmount - QINO_1=`_scratch_xfs_get_sb_field $qino_1` - QINO_2=`_scratch_xfs_get_sb_field $qino_2` - echo "*** Usage before quotarm ***" - _scratch_xfs_db -c "inode $QINO_1" -c "p core.nblocks" - _scratch_xfs_db -c "inode $QINO_2" -c "p core.nblocks" + get_qfile_nblocks $qino_1 + get_qfile_nblocks $qino_2 _qmount echo "*** turn off $off_opts quotas"
@@ -65,8 +67,8 @@ do_test() _scratch_unmount echo "*** Usage after quotarm ***" - _scratch_xfs_db -c "inode $QINO_1" -c "p core.nblocks" - _scratch_xfs_db -c "inode $QINO_2" -c "p core.nblocks" + get_qfile_nblocks $qino_1 + get_qfile_nblocks $qino_2 } # Test user and group first
tests/xfs/529 +2 -3
@@ -161,9 +161,8 @@ done _scratch_unmount >> $seqres.full echo "Verify uquota inode's extent count" -uquotino=$(_scratch_xfs_get_metadata_field 'uquotino' 'sb 0') - -nextents=$(_scratch_get_iext_count $uquotino data || \ +selector="$(_scratch_xfs_find_metafile uquotino)" +nextents=$(_scratch_get_iext_count "$selector" data || \ _fail "Unable to obtain inode fork's extent count") if (( $nextents > 10 )); then echo "Extent count overflow check failed: nextents = $nextents"
tests/xfs/530 +2 -4
@@ -102,10 +102,8 @@ _scratch_unmount >> $seqres.full echo "Verify rbmino's and rsumino's extent count" for rtino in rbmino rsumino; do - ino=$(_scratch_xfs_get_metadata_field $rtino "sb 0") - echo "$rtino = $ino" >> $seqres.full - - nextents=$(_scratch_get_iext_count $ino data || \ + selector="$(_scratch_xfs_find_metafile "$rtino")" + nextents=$(_scratch_get_iext_count "$selector" data || \ _fail "Unable to obtain inode fork's extent count") if (( $nextents > 10 )); then echo "Extent count overflow check failed: nextents = $nextents"
tests/xfs/739 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.bitmap') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.bitmap') -else - path=('sb' 'addr rbmino') -fi -_scratch_xfs_fuzz_metadata '' 'online' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rbmino)" +_scratch_xfs_fuzz_metadata '' 'online' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap" # success, all done
tests/xfs/740 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.summary') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.summary') -else - path=('sb' 'addr rsumino') -fi -_scratch_xfs_fuzz_metadata '' 'online' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rsumino)" +_scratch_xfs_fuzz_metadata '' 'online' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary" # success, all done
tests/xfs/741 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.bitmap') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.bitmap') -else - path=('sb' 'addr rbmino') -fi -_scratch_xfs_fuzz_metadata '' 'offline' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rbmino)" +_scratch_xfs_fuzz_metadata '' 'offline' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap" # success, all done
tests/xfs/742 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.summary') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.summary') -else - path=('sb' 'addr rsumino') -fi -_scratch_xfs_fuzz_metadata '' 'offline' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rsumino)" +_scratch_xfs_fuzz_metadata '' 'offline' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary" # success, all done
tests/xfs/743 +2 -7
@@ -26,13 +26,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.bitmap') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.bitmap') -else - path=('sb' 'addr rbmino') -fi -_scratch_xfs_fuzz_metadata '' 'both' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rbmino)" +_scratch_xfs_fuzz_metadata '' 'both' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap" # success, all done
tests/xfs/744 +2 -7
@@ -26,13 +26,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.summary') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.summary') -else - path=('sb' 'addr rsumino') -fi -_scratch_xfs_fuzz_metadata '' 'both' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rsumino)" +_scratch_xfs_fuzz_metadata '' 'both' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary" # success, all done
tests/xfs/745 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.bitmap') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.bitmap') -else - path=('sb' 'addr rbmino') -fi -_scratch_xfs_fuzz_metadata '' 'none' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rbmino)" +_scratch_xfs_fuzz_metadata '' 'none' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap" # success, all done
tests/xfs/746 +2 -7
@@ -25,13 +25,8 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -is_metadir=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /realtime/0.summary') -if [ -n "$is_metadir" ]; then - path=('path -m /realtime/0.summary') -else - path=('sb' 'addr rsumino') -fi -_scratch_xfs_fuzz_metadata '' 'none' "${path[@]}" 'dblock 0' >> $seqres.full +path="$(_scratch_xfs_find_metafile rsumino)" +_scratch_xfs_fuzz_metadata '' 'none' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary" # success, all done
Re: [PATCH 01/12] various: fix finding metadata inode numbers when metadir is enabled
Looks good:
PATCH 2/12 xfs/{030,033,178}: forcibly disable metadata directory trees
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
The golden output for thests tests encode the xfs_repair output when we fuzz various parts of the filesystem. With metadata directory trees enabled, however, the golden output changes dramatically to reflect reconstruction of the metadata directory tree.
To avoid regressions, add a helper to force metadata directories off via MKFS_OPTIONS.
--- common/xfs | 25 +++++++++++++++++++++++++ tests/xfs/030 | 1 + tests/xfs/033 | 1 + tests/xfs/178 | 1 + 4 files changed, 28 insertions(+)
common/xfs +25 -0
@@ -1902,3 +1902,28 @@ _scratch_xfs_find_metafile() echo "inode $sb_field" return 0 } + +# Force metadata directories off. +_scratch_xfs_force_no_metadir() +{ + # Remove any mkfs-time quota options because those are only supported + # with metadir=1 + for opt in uquota gquota pquota; do + echo "$MKFS_OPTIONS" | grep -q -w "$opt" || continue + + MKFS_OPTIONS="$(echo "$MKFS_OPTIONS" | sed -e "s/,$opt//g" -e "s/ $opt/ /g")" + MOUNT_OPTIONS="$MOUNT_OPTIONS -o $opt" + done + + # Replace any explicit metadir option with metadir=0 + if echo "$MKFS_OPTIONS" | grep -q 'metadir='; then + MKFS_OPTIONS="$(echo "$MKFS_OPTIONS" | sed -e 's/metadir=[0-9]*/metadir=0/g' -e 's/metadir\([, ]\)/metadir=0\1/g')" + return + fi + + # Inject metadir=0 if there isn't one in MKFS_OPTIONS and mkfs supports + # that option. + if grep -q 'metadir=' $MKFS_XFS_PROG; then + MKFS_OPTIONS="-m metadir=0 $MKFS_OPTIONS" + fi +}
tests/xfs/030 +1 -0
@@ -48,6 +48,7 @@ _check_ag() _require_scratch _require_no_large_scratch_dev +_scratch_xfs_force_no_metadir DSIZE="-dsize=100m,agcount=6"
tests/xfs/033 +1 -0
@@ -51,6 +51,7 @@ _filter_bad_ids() _require_scratch _require_no_large_scratch_dev +_scratch_xfs_force_no_metadir # devzero blows away 512byte blocks, so make 512byte inodes (at least) _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs >/dev/null
tests/xfs/178 +1 -0
@@ -50,6 +50,7 @@ _dd_repair_check() # fix filesystem, new mkfs.xfs will be fine. _require_scratch +_scratch_xfs_force_no_metadir _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs # By executing the followint tmp file, will get on the mkfs options stored in
Re: [PATCH 02/12] xfs/{030,033,178}: forcibly disable metadata directory trees
Quoted 9 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
The golden output for thests tests encode the
xfs_repairoutput when we fuzz various parts of the filesystem. With metadata directory trees enabled, however, the golden output changes dramatically to reflect reconstruction of the metadata directory tree.To avoid regressions, add a helper to force metadata directories off via
MKFS_OPTIONS.
Looks good:
PATCH 3/12 common/repair: patch up repair sb inode value complaints
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Now that we've refactored xfs_repair to be more consistent in how it reports unexpected superblock inode pointer values, we have to fix up the fstests repair filters to emulate the old golden output.
--- common/repair | 4 ++++ 1 file changed, 4 insertions(+)
common/repair +4 -0
@@ -28,6 +28,10 @@ _filter_repair() perl -ne ' # for sb /- agno = / && next; # remove each AG line (variable number) +s/realtime bitmap inode pointer/realtime bitmap ino pointer/; +s/sb realtime bitmap inode value/sb realtime bitmap inode/; +s/realtime summary inode pointer/realtime summary ino pointer/; +s/sb realtime summary inode value/sb realtime summary inode/; s/(pointer to) (\d+)/\1 INO/; # Changed inode output in 5.5.0 s/sb root inode value /sb root inode /;
Re: [PATCH 03/12] common/repair: patch up repair sb inode value complaints
Looks good:
PATCH 4/12 xfs/206: update for metadata directory support
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Filter 'metadir=' out of the golden output so that metadata directories don't cause this test to regress.
--- tests/xfs/206 | 1 + 1 file changed, 1 insertion(+)
tests/xfs/206 +1 -0
@@ -63,6 +63,7 @@ mkfs_filter() -e "s/, lazy-count=[0-9]//" \ -e "/.*crc=/d" \ -e "/exchange=/d" \ + -e '/metadir=.*/d' \ -e 's/, parent=[01]//' \ -e "/^Default configuration/d" }
Re: [PATCH 04/12] xfs/206: update for metadata directory support
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Filter 'metadir=' out of the golden output so that metadata directories don't cause this test to regress.
Looks good:
PATCH 5/12 xfs/{050,144,153,299,330}: update quota reports to handle metadir trees
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Prior to the new metadir feature in XFS, the rtbitmap and rtsummary files were included in icount, though their bcount contribution is zero due to rt and quota not being supported together. With the new metadir feature in XFS, no files in the metadata directory tree are counted in quota.
Hence we must adjust the icount of any quota report down by two to avoid breaking golden outputs.
--- common/filter | 7 +++++-- common/xfs | 29 +++++++++++++++++++++++++++++ tests/xfs/050 | 5 +++++ tests/xfs/153 | 5 +++++ tests/xfs/299 | 1 + tests/xfs/330 | 6 +++++- 6 files changed, 50 insertions(+), 3 deletions(-)
common/filter +5 -2
@@ -624,11 +624,14 @@ _filter_getcap() # Filter user/group/project id numbers out of quota reports, and standardize # the block counts to use filesystem block size. Callers must set the id and -# bsize variables before calling this function. +# bsize variables before calling this function. The HIDDEN_QUOTA_FILES variable +# (by default zero) is the number of root files to filter out of the inode +# count part of the quota report. _filter_quota_report() { test -n "$id" || echo "id must be set" test -n "$bsize" || echo "block size must be set" + test -n "$HIDDEN_QUOTA_FILES" || HIDDEN_QUOTA_FILES=0 tr -s '[:space:]' | \ perl -npe '
@@ -636,7 +639,7 @@ _filter_quota_report() s/^\#0 \d+ /[ROOT] 0 /g; s/6 days/7 days/g' | perl -npe ' - $val = 0; + $val = '"$HIDDEN_QUOTA_FILES"'; if ($ENV{'LARGE_SCRATCH_DEV'}) { $val = $ENV{'NUM_SPACE_FILES'}; }
common/xfs +29 -0
@@ -1927,3 +1927,32 @@ _scratch_xfs_force_no_metadir() MKFS_OPTIONS="-m metadir=0 $MKFS_OPTIONS" fi } + +# Decide if a mount filesystem has metadata directory trees. +_xfs_mount_has_metadir() { + local mount="$1" + + # spaceman (and its info command) predate metadir + test ! -e "$XFS_SPACEMAN_PROG" && return 1 + $XFS_SPACEMAN_PROG -c "info" "$mount" | grep -q 'metadir=1' +} + +# Compute the number of files that are not counted in quotas. +_xfs_calc_hidden_quota_files() { + local mount="$1" + + if _xfs_mount_has_metadir "$mount"; then + # Prior to the metadir feature, the realtime bitmap and summary + # file were "owned" by root and hence accounted to the root + # dquots. The metadata directory feature stopped accounting + # metadata files to quotas, so we must subtract 2 inodes from + # the repquota golden outputs to keep the tests going. + # + # We needn't adjust the block counts because the kernel doesn't + # support rt quota and hence the rt metadata files will always + # be zero length. + echo -2 + else + echo 0 + fi +}
tests/xfs/050 +5 -0
@@ -30,9 +30,14 @@ _require_scratch _require_xfs_quota _scratch_mkfs >/dev/null 2>&1 +orig_mntopts="$MOUNT_OPTIONS" +_qmount_option "uquota" _scratch_mount bsize=$(_get_file_block_size $SCRATCH_MNT) +# needs quota enabled to compute the number of metadata dir files +HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT) _scratch_unmount +MOUNT_OPTIONS="$orig_mntopts" bsoft=$(( 200 * $bsize )) bhard=$(( 1000 * $bsize ))
tests/xfs/153 +5 -0
@@ -35,9 +35,14 @@ _require_idmapped_mounts _require_test_program "vfs/mount-idmapped" _scratch_mkfs >/dev/null 2>&1 +orig_mntopts="$MOUNT_OPTIONS" +_qmount_option "uquota" _scratch_mount bsize=$(_get_file_block_size $SCRATCH_MNT) +# needs quota enabled to compute the number of metadata dir files +HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT) _scratch_unmount +MOUNT_OPTIONS="$orig_mntopts" bsoft=$(( 200 * $bsize )) bhard=$(( 1000 * $bsize ))
tests/xfs/299 +1 -0
@@ -155,6 +155,7 @@ _qmount_option "uquota,gquota,pquota" _qmount bsize=$(_get_file_block_size $SCRATCH_MNT) +HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT) bsoft=$(( 100 * $bsize )) bhard=$(( 500 * $bsize ))
tests/xfs/330 +5 -1
@@ -24,7 +24,10 @@ _require_nobody do_repquota() { - repquota $SCRATCH_MNT | grep -E '^(fsgqa|root|nobody)' | sort -r + repquota $SCRATCH_MNT | grep -E '^(fsgqa|root|nobody)' | sort -r | \ + perl -npe ' + $val = '"$HIDDEN_QUOTA_FILES"'; + s/(^root\s+--\s+\S+\s+\S+\s+\S+\s+)(\S+)/$1@{[$2 - $val]}/g' } rm -f "$seqres.full"
@@ -33,6 +36,7 @@ echo "Format and mount" _scratch_mkfs > "$seqres.full" 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> "$seqres.full" 2>&1 +HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT) quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
Re: [PATCH 05/12] xfs/{050,144,153,299,330}: update quota reports to handle metadir trees
Looks good:
PATCH 6/12 xfs/509: adjust inumbers accounting for metadata directories
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
The INUMBERS ioctl exports data from the inode btree directly -- the number of inodes it reports is taken from ir_freemask and includes all the files in the metadata directory tree. BULKSTAT, on the other hand, only reports non-metadata files. When metadir is enabled, this will (eventually) cause a discrepancy in the inode counts that is large enough to exceed the tolerances, thereby causing a test failure.
Correct this by counting the files in the metadata directory and subtracting that from the INUMBERS totals.
--- tests/xfs/509 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)
tests/xfs/509 +21 -2
@@ -91,13 +91,13 @@ inumbers_count() bstat_versions | while read v_tag v_flag; do echo -n "inumbers all($v_tag): " nr=$(inumbers_fs $SCRATCH_MNT $v_flag) - _within_tolerance "inumbers" $nr $expect $tolerance -v + _within_tolerance "inumbers" $((nr - METADATA_FILES)) $expect $tolerance -v local agcount=$(_xfs_mount_agcount $SCRATCH_MNT) for batchsize in 71 2 1; do echo -n "inumbers $batchsize($v_tag): " nr=$(inumbers_ag $agcount $batchsize $SCRATCH_MNT $v_flag) - _within_tolerance "inumbers" $nr $expect $tolerance -v + _within_tolerance "inumbers" $((nr - METADATA_FILES)) $expect $tolerance -v done done }
@@ -142,9 +142,28 @@ _require_xfs_io_command inumbers DIRCOUNT=8 INOCOUNT=$((2048 / DIRCOUNT)) +# Count everything in the metadata directory tree. +count_metadir_files() { + # Each possible path in the metadata directory tree must be listed + # here. + local metadirs=('/rtgroups') + local db_args=('-f') + + for m in "${metadirs[@]}"; do + db_args+=('-c' "ls -m $m") + done + + local ret=$(_scratch_xfs_db "${db_args[@]}" 2>/dev/null | grep regular | wc -l) + test -z "$ret" && ret=0 + echo $ret +} + _scratch_mkfs "-d agcount=$DIRCOUNT" >> $seqres.full 2>&1 || _fail "mkfs failed" _scratch_mount +METADATA_FILES=$(count_metadir_files) +echo "found $METADATA_FILES metadata files" >> $seqres.full + # Figure out if we have v5 bulkstat/inumbers ioctls. has_v5= bs_root_out="$($XFS_IO_PROG -c 'bulkstat_single root' $SCRATCH_MNT 2>>$seqres.full)"
Re: [PATCH 06/12] xfs/509: adjust inumbers accounting for metadata directories
Looks good:
PATCH 7/12 xfs: create fuzz tests for metadata directories
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Create fuzz tests to make sure that all the validation works for metadata directories and subdirectories. The metadir fuzzer tests are tagged 'realtime' to force creation of an interesting metadata directory tree full of rtgroups inodes.
--- common/xfs | 22 ++++++++++++++++++++++ tests/xfs/1546 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1546.out | 4 ++++ tests/xfs/1547 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1547.out | 4 ++++ tests/xfs/1548 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1548.out | 4 ++++ tests/xfs/1549 | 35 +++++++++++++++++++++++++++++++++++ tests/xfs/1549.out | 4 ++++ tests/xfs/1550 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1550.out | 4 ++++ tests/xfs/1551 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1551.out | 4 ++++ tests/xfs/1552 | 34 ++++++++++++++++++++++++++++++++++ tests/xfs/1552.out | 4 ++++ tests/xfs/1553 | 35 +++++++++++++++++++++++++++++++++++ tests/xfs/1553.out | 4 ++++ 17 files changed, 328 insertions(+) create mode 100755 tests/xfs/1546 create mode 100644 tests/xfs/1546.out create mode 100755 tests/xfs/1547 create mode 100644 tests/xfs/1547.out create mode 100755 tests/xfs/1548 create mode 100644 tests/xfs/1548.out create mode 100755 tests/xfs/1549 create mode 100644 tests/xfs/1549.out create mode 100755 tests/xfs/1550 create mode 100644 tests/xfs/1550.out create mode 100755 tests/xfs/1551 create mode 100644 tests/xfs/1551.out create mode 100755 tests/xfs/1552 create mode 100644 tests/xfs/1552.out create mode 100755 tests/xfs/1553 create mode 100644 tests/xfs/1553.out
common/xfs +22 -0
@@ -1956,3 +1956,25 @@ _xfs_calc_hidden_quota_files() { echo 0 fi } + +_require_xfs_mkfs_metadir() +{ + _scratch_mkfs_xfs_supported -m metadir=1 >/dev/null 2>&1 || \ + _notrun "mkfs.xfs doesn't have metadir features" +} + +_require_xfs_scratch_metadir() +{ + _require_xfs_mkfs_metadir + _require_scratch + + _scratch_mkfs -m metadir=1 &> /dev/null + _require_scratch_xfs_features METADIR + _try_scratch_mount + res=$? + if [ $res -ne 0 ]; then + _notrun "mounting with metadir not supported by filesystem type: $FSTYP" + else + _scratch_unmount + fi +}
tests/xfs/1546 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1546 +# +# Populate a XFS filesystem and fuzz every metadir root field. +# Use xfs_scrub to fix the corruption. + +. ./common/preamble +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /') + +echo "Fuzz metadir root" +_scratch_xfs_fuzz_metadata '' 'online' 'path -m /' >> $seqres.full +echo "Done fuzzing metadir root" + +# success, all done +status=0 +exit
tests/xfs/1546.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1546 +Format and populate +Fuzz metadir root +Done fuzzing metadir root
tests/xfs/1547 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1547 +# +# Populate a XFS filesystem and fuzz every metadir root field. +# Use xfs_repair to fix the corruption. + +. ./common/preamble +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /') + +echo "Fuzz metadir root" +_scratch_xfs_fuzz_metadata '' 'offline' 'path -m /' >> $seqres.full +echo "Done fuzzing metadir root" + +# success, all done +status=0 +exit
tests/xfs/1547.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1547 +Format and populate +Fuzz metadir root +Done fuzzing metadir root
tests/xfs/1548 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1548 +# +# Populate a XFS filesystem and fuzz every metadir root field. +# Do not fix the filesystem, to test metadata verifiers. + +. ./common/preamble +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /') + +echo "Fuzz metadir root" +_scratch_xfs_fuzz_metadata '' 'none' 'path -m /' >> $seqres.full +echo "Done fuzzing metadir root" + +# success, all done +status=0 +exit
tests/xfs/1548.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1548 +Format and populate +Fuzz metadir root +Done fuzzing metadir root
tests/xfs/1549 new file +35 -0
@@ -0,0 +1,35 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1549 +# +# Populate a XFS filesystem and fuzz every metadir root field. +# Try online repair and, if necessary, offline repair, +# to test the most likely usage pattern. + +. ./common/preamble +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /') + +echo "Fuzz metadir root" +_scratch_xfs_fuzz_metadata '' 'both' 'path -m /' >> $seqres.full +echo "Done fuzzing metadir root" + +# success, all done +status=0 +exit
tests/xfs/1549.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1549 +Format and populate +Fuzz metadir root +Done fuzzing metadir root
tests/xfs/1550 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1550 +# +# Populate a XFS filesystem and fuzz every metadir subdir field. +# Use xfs_scrub to fix the corruption. + +. ./common/preamble +_begin_fstest dangerous_fuzzers scrub fuzzers_online_repair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /rtgroups') + +echo "Fuzz metadir subdir" +_scratch_xfs_fuzz_metadata '' 'online' 'path -m /rtgroups' >> $seqres.full +echo "Done fuzzing metadir subdir" + +# success, all done +status=0 +exit
tests/xfs/1550.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1550 +Format and populate +Fuzz metadir subdir +Done fuzzing metadir subdir
tests/xfs/1551 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1551 +# +# Populate a XFS filesystem and fuzz every metadir subdir field. +# Use xfs_repair to fix the corruption. + +. ./common/preamble +_begin_fstest dangerous_fuzzers repair fuzzers_repair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /rtgroups') + +echo "Fuzz metadir subdir" +_scratch_xfs_fuzz_metadata '' 'offline' 'path -m /rtgroups' >> $seqres.full +echo "Done fuzzing metadir subdir" + +# success, all done +status=0 +exit
tests/xfs/1551.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1551 +Format and populate +Fuzz metadir subdir +Done fuzzing metadir subdir
tests/xfs/1552 new file +34 -0
@@ -0,0 +1,34 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1552 +# +# Populate a XFS filesystem and fuzz every metadir subdir field. +# Do not fix the filesystem, to test metadata verifiers. + +. ./common/preamble +_begin_fstest dangerous_fuzzers fuzzers_norepair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /rtgroups') + +echo "Fuzz metadir subdir" +_scratch_xfs_fuzz_metadata '' 'none' 'path -m /rtgroups' >> $seqres.full +echo "Done fuzzing metadir subdir" + +# success, all done +status=0 +exit
tests/xfs/1552.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1552 +Format and populate +Fuzz metadir subdir +Done fuzzing metadir subdir
tests/xfs/1553 new file +35 -0
@@ -0,0 +1,35 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2022-2025 Oracle. All Rights Reserved. +# +# FS QA Test No. 1553 +# +# Populate a XFS filesystem and fuzz every metadir subdir field. +# Try online repair and, if necessary, offline repair, +# to test the most likely usage pattern. + +. ./common/preamble +_begin_fstest dangerous_fuzzers scrub repair fuzzers_bothrepair realtime + +_register_cleanup "_cleanup" BUS + +. ./common/filter +. ./common/populate +. ./common/fuzzy + +_require_xfs_scratch_metadir +_require_scratch_xfs_fuzz_fields +_disable_dmesg_check + +echo "Format and populate" +_scratch_populate_cached nofill > $seqres.full 2>&1 + +inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'path -m /rtgroups') + +echo "Fuzz metadir subdir" +_scratch_xfs_fuzz_metadata '' 'both' 'path -m /rtgroups' >> $seqres.full +echo "Done fuzzing metadir subdir" + +# success, all done +status=0 +exit
tests/xfs/1553.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1553 +Format and populate +Fuzz metadir subdir +Done fuzzing metadir subdir
Re: [PATCH 07/12] xfs: create fuzz tests for metadata directories
Looks good:
PATCH 8/12 xfs/163: bigger fs for metadir
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Adjust filesystem size up so we can pass this test even with metadir and rtgroups enabled.
--- tests/xfs/163 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/163 +1 -1
@@ -42,7 +42,7 @@ echo "Format and mount" # agcount = 1 is forbidden on purpose, and need to ensure shrinking to # 2 AGs isn't feasible yet. So agcount = 3 is the minimum number now. -_scratch_mkfs -dsize="$((512 * 1024 * 1024))" -dagcount=3 2>&1 | \ +_scratch_mkfs -dsize="$((900 * 1024 * 1024))" -dagcount=3 2>&1 | \ tee -a $seqres.full | _filter_mkfs 2>$tmp.mkfs >/dev/null . $tmp.mkfs t_dblocks=$dblocks
Re: [PATCH 08/12] xfs/163: bigger fs for metadir
Quoted 4 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Adjust filesystem size up so we can pass this test even with metadir and rtgroups enabled.
Looks good:
PATCH 9/12 xfs/122: disable this test for any codebase that knows about metadir
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
All of the ondisk structure size checks from this test were copied to the build time checks in xfs_ondisk.h. This means that the kernel and xfsprogs build processes check the structure sizes, which means that fstests no longer needs to do that.
--- tests/xfs/122 | 6 ++++++ 1 file changed, 6 insertions(+)
tests/xfs/122 +6 -0
@@ -15,6 +15,12 @@ _begin_fstest other auto quick clone realtime _require_command "$INDENT_PROG" indent +# We ported all the ondisk size checks to xfs_ondisk.h in both the kernel and +# xfsprogs libxfs when we added the metadir feature. If mkfs supports metadir +# then we don't have to run this test anymore. +$MKFS_XFS_PROG --help 2>&1 | grep -q metadir && \ + _notrun "struct size checks moved to libxfs/xfs_ondisk.h" + # Starting in Linux 6.1, the EFI log formats were adjusted away from using # single-element arrays as flex arrays. _wants_kernel_commit 03a7485cd701 \
Re: [PATCH 09/12] xfs/122: disable this test for any codebase that knows about metadir
Quoted 6 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
All of the ondisk structure size checks from this test were copied to the build time checks in
xfs_ondisk.h. This means that the kernel and xfsprogs build processes check the structure sizes, which means that fstests no longer needs to do that.
Looks good;
PATCH 10/12 common/populate: label newly created xfs filesystems
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
When we're creating fully populated filesystems, add an obviously weird label to the filesystem images so that it's obvious that it's a test filesystem.
--- common/populate | 8 ++++++++ 1 file changed, 8 insertions(+)
common/populate +8 -0
@@ -280,6 +280,10 @@ _scratch_xfs_populate() { esac done + # fill the fs label with obvious emoji because nobody uses them in prod + # and blkid throws a fit + _scratch_xfs_admin -L 'I❤🐸s' + _populate_xfs_qmount_option _scratch_mount
@@ -537,6 +541,10 @@ _scratch_ext4_populate() { esac done + # fill the fs label with obvious emoji because nobody uses them in prod + # and blkid throws a fit + $TUNE2FS_PROG -L 'I❤🐸s' $SCRATCH_DEV + _scratch_mount blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")" dblksz="${blksz}"
Re: [PATCH 10/12] common/populate: label newly created xfs filesystems
Quoted 5 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
When we're creating fully populated filesystems, add an obviously weird label to the filesystem images so that it's obvious that it's a test filesystem.
Looks good:
PATCH 11/12 scrub: race metapath online fsck with fsstress
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Add a pair of new tests to exercise fsstress vs. metapath repairs.
--- common/xfs | 3 ++ tests/xfs/1892 | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1892.out | 2 ++ tests/xfs/1893 | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1893.out | 2 ++ 5 files changed, 140 insertions(+) create mode 100755 tests/xfs/1892 create mode 100644 tests/xfs/1892.out create mode 100755 tests/xfs/1893 create mode 100644 tests/xfs/1893.out
common/xfs +3 -0
@@ -1658,6 +1658,9 @@ _xfs_filter_mkfs() if (/^realtime\s+=([\w|\/.-]+)\s+extsz=(\d+)\s+blocks=(\d+), rtextents=(\d+)/) { print STDERR "rtdev=$1\nrtextsz=$2\nrtblocks=$3\nrtextents=$4\n"; print STDOUT "realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX\n"; + } + if (/^\s+=\s+rgcount=(\d+)\s+rgsize=(\d+) extents/) { + print STDERR "rgcount=$1\nrgextents=$2\n"; }' }
tests/xfs/1892 new file +66 -0
66 lines not on this page · raw message
tests/xfs/1892.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 1892 +Silence is golden
tests/xfs/1893 new file +67 -0
67 lines not on this page · raw message
tests/xfs/1893.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 1893 +Silence is golden
Re: [PATCH 11/12] scrub: race metapath online fsck with fsstress
Quoted 3 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Add a pair of new tests to exercise fsstress vs. metapath repairs.
Looks good:
PATCH 12/12 xfs: test metapath repairs
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Functional testing for metadir path checking and repairs.
--- tests/xfs/1874 | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1874.out | 19 ++++++++ 2 files changed, 138 insertions(+) create mode 100755 tests/xfs/1874 create mode 100644 tests/xfs/1874.out
tests/xfs/1874 new file +119 -0
@@ -0,0 +1,119 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023-2025 Oracle. All Rights Reserved. +# +# FS QA Test 1874 +# +# Functional test of using online repair to fix metadir paths. +# +. ./common/preamble +_begin_fstest auto online_repair + +. ./common/filter +. ./common/inject +. ./common/fuzzy +. ./common/quota + +_require_xfs_db_command "link" +_require_xfs_db_command "unlink" +_require_scratch +_require_xfs_stress_online_repair + +prepare_fs() { + # Format filesystem + _scratch_mkfs | _filter_mkfs 2> $tmp.mkfs >> $seqres.full + _scratch_mount + + _require_xfs_has_feature "$SCRATCH_MNT" rmapbt + _require_xfs_has_feature "$SCRATCH_MNT" realtime + _require_xfs_has_feature "$SCRATCH_MNT" metadir + _require_xfs_has_feature "$SCRATCH_MNT" parent + + root_inum="$(stat -c '%i' $SCRATCH_MNT)" + __stress_scrub_check_commands "%dir%" '' '' 'scrub metapath' + _scratch_unmount + + # Stash the /rtgroups inode number and gen + rt_metadir_inum=$(_scratch_xfs_get_metadata_field v3.inumber 'path -m /rtgroups') + rt_metadir_gen=$(_scratch_xfs_get_metadata_field core.gen 'path -m /rtgroups') + + # Stash the /rtgroups/0.rmap inode number and gen + rbm_inum=$(_scratch_xfs_get_metadata_field v3.inumber 'path -m /rtgroups/0.rmap') + rbm_gen=$(_scratch_xfs_get_metadata_field core.gen 'path -m /rtgroups/0.rmap') + + # Fuzz parent pointer in rtgroup 0 rmap file + _scratch_xfs_db -x \ + -c 'path -m /rtgroups/0.rmap' \ + -c "write -d a.sfattr.list[0].parent_dir.inumber $root_inum" >> $seqres.full +} + +simple_online_repair() { + echo "check /rtgroups dir" | _tee_kernlog + $XFS_IO_PROG -c "scrub directory $rt_metadir_inum $rt_metadir_gen" $SCRATCH_MNT + + echo "check /rtgroups/0.rmap pptr" | _tee_kernlog + $XFS_IO_PROG -c "scrub parent $rbm_inum $rbm_gen" $SCRATCH_MNT + + echo "check /rtgroups/0.rmap metapath" | _tee_kernlog + $XFS_IO_PROG -c "scrub metapath rtrmapbt 0" $SCRATCH_MNT + + echo "check nlinks" | _tee_kernlog + $XFS_IO_PROG -c "scrub nlinks" $SCRATCH_MNT + + # Destroying a metadir path (e.g. /rtgroups/0.rmap) cannot be done + # offline because then the mount will fail. Hence we must use a + # specific sequence of online repairs to remove the metadir path link. + # Only then can we use the metapath scrubber to restore the link. + + # Force repair the parent directory. Since /rtgroups/0.rmap has a bad + # parent pointer, the "0.rmap" entry in /rtgroups will not be created. + echo "fix /rtgroups dir" | _tee_kernlog + $XFS_IO_PROG -x -c "repair -R directory $rt_metadir_inum $rt_metadir_gen" $SCRATCH_MNT + + # Force repair the parent pointer. Since the "0.rmap" entry in + # /rtgroups no longer exists and no other directories count the + # rtgroup 0 rmap as a parent, this will fail cross-referencing after + # the repair. + echo "fix /rtgroups/0.rmap pptr" | _tee_kernlog + $XFS_IO_PROG -x -c "repair -R parent $rbm_inum $rbm_gen" $SCRATCH_MNT + + # Now that we've completely erased the /rtgroups/0.rmap path, check + # that the link is indeed lost, and restore the link. + echo "fix /rtgroups/0.rmap metapath" | _tee_kernlog + $XFS_IO_PROG -x -c "repair metapath rtrmapbt 0" $SCRATCH_MNT + + # Make sure we're not missing any link count + echo "fix nlinks" | _tee_kernlog + $XFS_IO_PROG -x -c "repair nlinks" $SCRATCH_MNT +} + +echo Part 1: Use raw ioctls to detect the error and fix it. +prepare_fs +_scratch_mount +simple_online_repair +_check_scratch_fs +_scratch_unmount + +echo Part 2: Use xfs_scrub to detect the error and fix it. +prepare_fs +_scratch_mount +echo "fix with xfs_scrub" | _tee_kernlog +_scratch_scrub &>> $seqres.full +echo "xfs_scrub returned $?" >> $seqres.full +_check_scratch_fs +_scratch_unmount + +echo Part 3: Use xfs_repair to detect the error and fix it. +prepare_fs +echo "fix with xfs_repair" | _tee_kernlog +echo repair?? >> $seqres.full +_scratch_xfs_repair &>> $seqres.full +echo "xfs_repair returned $?" >> $seqres.full +_scratch_mount +_check_scratch_fs +_scratch_unmount + +echo "done with test" | _tee_kernlog +# success, all done +status=0 +exit
tests/xfs/1874.out new file +19 -0
@@ -0,0 +1,19 @@ +QA output created by 1874 +Part 1: Use raw ioctls to detect the error and fix it. +check /rtgroups dir +Corruption detected during cross-referencing. +check /rtgroups/0.rmap pptr +Corruption detected during cross-referencing. +check /rtgroups/0.rmap metapath +check nlinks +fix /rtgroups dir +fix /rtgroups/0.rmap pptr +Corruption remains. +Corruption still detected during cross-referencing. +fix /rtgroups/0.rmap metapath +fix nlinks +Part 2: Use xfs_scrub to detect the error and fix it. +fix with xfs_scrub +Part 3: Use xfs_repair to detect the error and fix it. +fix with xfs_repair +done with test
Re: [PATCH 12/12] xfs: test metapath repairs
Looks good:
PATCH 5/12 fstests: make protofiles less janky
In reply to Darrick J. WongHi all,
Add a new regression test for xattr support of xfs protofiles.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome.
--D
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=protofiles
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=protofiles
---
Commits in this patchset:
* xfs/019: reduce _fail calls in test
* xfs/019: test reserved file support
* xfs: test filesystem creation with xfs_protofile
* fstests: test mkfs.xfs protofiles with xattr support
--- common/config | 1 tests/xfs/019 | 14 +++-- tests/xfs/019.out | 5 ++ tests/xfs/1894 | 109 +++++++++++++++++++++++++++++++++++++++ tests/xfs/1894.out | 4 + tests/xfs/1937 | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1937.out | 102 +++++++++++++++++++++++++++++++++++++ 7 files changed, 374 insertions(+), 5 deletions(-) create mode 100755 tests/xfs/1894 create mode 100644 tests/xfs/1894.out create mode 100755 tests/xfs/1937 create mode 100644 tests/xfs/1937.out
PATCH 1/4 xfs/019: reduce _fail calls in test
From: Darrick J. Wong <[email protected]>
Replace some _fail calls in this test with softer variants: First, _scratch_mount does _try_scratch_mount || _fail so it can go away.
Replace the rest of them with echoes because that's sufficient to fail the test without omitting further check.
--- tests/xfs/019 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
tests/xfs/019 +4 -5
@@ -106,22 +106,21 @@ _verify_fs() echo "*** mount FS" _full " mount" - _try_scratch_mount >>$seqfull 2>&1 \ - || _fail "mount failed" + _scratch_mount >>$seqfull 2>&1 echo "*** verify FS" (cd $SCRATCH_MNT ; find . | LC_COLLATE=POSIX sort \ | grep -v ".use_space" \ | xargs $here/src/lstat64 | _filter_stat) diff -q $SCRATCH_MNT/bigfile $tempfile.2 \ - || _fail "bigfile corrupted" + || echo "bigfile corrupted" diff -q $SCRATCH_MNT/symlink $tempfile.2 \ - || _fail "symlink broken" + || echo "symlink broken" echo "*** unmount FS" _full "umount" _scratch_unmount >>$seqfull 2>&1 \ - || _fail "umount failed" + || echo "umount failed" } #_verify_fs 1
Re: [PATCH 1/4] xfs/019: reduce _fail calls in test
Looks good:
PATCH 2/4 xfs/019: test reserved file support
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Test creating files with preallocated blocks but a file size of zero, since mkfs' protofile parser supports creating such things.
--- tests/xfs/019 | 5 +++++ tests/xfs/019.out | 5 +++++ 2 files changed, 10 insertions(+)
tests/xfs/019 +5 -0
@@ -82,6 +82,7 @@ pipe p--670 0 0 symlink l--123 0 0 bigfile : a file we actually read bigfile ---666 3 0 $tempfile.2 +rsvfile r--666 3 0 1234567 : done $ EOF
@@ -117,6 +118,10 @@ _verify_fs() diff -q $SCRATCH_MNT/symlink $tempfile.2 \ || echo "symlink broken" + rsvblocks=$(stat -c '%b' $SCRATCH_MNT/rsvfile) + test $rsvblocks -gt 0 \ + || echo "rsvfile broken" + echo "*** unmount FS" _full "umount" _scratch_unmount >>$seqfull 2>&1 \
tests/xfs/019.out +5 -0
@@ -69,6 +69,11 @@ Device: <DEVICE> Inode: <INODE> Links: 1 Mode: (0670/frw-rwx---) Uid: (0) Gid: (0) Device: <DEVICE> Inode: <INODE> Links: 1 + File: "./rsvfile" + Size: 0 Filetype: Regular File + Mode: (0666/-rw-rw-rw-) Uid: (3) Gid: (0) +Device: <DEVICE> Inode: <INODE> Links: 1 + File: "./setgid" Size: 5 Filetype: Regular File Mode: (2666/-rw-rwsrw-) Uid: (0) Gid: (0)
Re: [PATCH 2/4] xfs/019: test reserved file support
Looks good:
PATCH 3/4 xfs: test filesystem creation with xfs_protofile
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Test how well we can format a fully populated filesystem with a protofile that was generated with xfs_protofile.
--- common/config | 1 tests/xfs/1894 | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1894.out | 4 ++ 3 files changed, 114 insertions(+) create mode 100755 tests/xfs/1894 create mode 100644 tests/xfs/1894.out
common/config +1 -0
@@ -161,6 +161,7 @@ export MKSWAP_PROG="$(type -P mkswap)" MKSWAP_PROG="$MKSWAP_PROG -f" export XFS_LOGPRINT_PROG="$(type -P xfs_logprint)" +export XFS_PROTOFILE_PROG="$(type -P xfs_protofile)" export XFS_REPAIR_PROG="$(type -P xfs_repair)" export XFS_DB_PROG="$(type -P xfs_db)" export XFS_METADUMP_PROG="$(type -P xfs_metadump)"
tests/xfs/1894 new file +109 -0
109 lines not on this page · raw message
tests/xfs/1894.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 1894 +Format and populate +Clone image with protofile +Check file contents
Re: [PATCH 3/4] xfs: test filesystem creation with xfs_protofile
Looks good:
PATCH 4/4 fstests: test mkfs.xfs protofiles with xattr support
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Make sure we can do protofiles with xattr support.
--- tests/xfs/1937 | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1937.out | 102 +++++++++++++++++++++++++++++++++++++ 2 files changed, 246 insertions(+) create mode 100755 tests/xfs/1937 create mode 100644 tests/xfs/1937.out
tests/xfs/1937 new file +144 -0
@@ -0,0 +1,144 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2024-2025 Oracle. All Rights Reserved. +# Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved. +# +# FS QA Test No. 1937 +# +# mkfs protofile with xattrs test +# +. ./common/preamble +_begin_fstest mkfs auto quick + +seqfull="$seqres.full" +rm -f $seqfull + +. ./common/filter + +_cleanup() +{ + echo "*** unmount" + _scratch_unmount 2>/dev/null + rm -f $tmp.* + rm -f $TEST_DIR/$seq.file +} + +_full() +{ + echo "" >>$seqfull + echo "*** $* ***" >>$seqfull + echo "" >>$seqfull +} + +_filter_stat() +{ + sed ' + /^Access:/d; + /^Modify:/d; + /^Change:/d; + s/Device: *[0-9][0-9]*,[0-9][0-9]*/Device: <DEVICE>/; + s/Inode: *[0-9][0-9]*/Inode: <INODE>/; + s/Size: *[0-9][0-9]* *Filetype: Dir/Size: <DSIZE> Filetype: Dir/; + ' | tr -s ' ' +} + +_require_command $ATTR_PROG "attr" +_require_scratch + +# mkfs cannot create a filesystem with protofiles if realtime is enabled, so +# don't run this test if the rtinherit is anywhere in the mkfs options. +echo "$MKFS_OPTIONS" | grep -q "rtinherit" && \ + _notrun "Cannot mkfs with a protofile and -d rtinherit." + +protofile=$tmp.proto +tempfile=$TEST_DIR/$seq.file + +$XFS_IO_PROG -f -c 'pwrite 64k 28k' -c 'pwrite 1280k 37960' $tempfile >> $seqres.full +$here/src/devzero -b 2048 -n 2 -c -v 44 $tempfile.2 + +$ATTR_PROG -R -s rootdata -V 0test $tempfile &>> $seqres.full +$ATTR_PROG -S -s acldata -V 1test $tempfile &>> $seqres.full +$ATTR_PROG -s userdata -V 2test $tempfile &>> $seqres.full +perl -e 'print "x" x 37960;' | $ATTR_PROG -s bigdata $tempfile &>> $seqres.full + +cat >$protofile <<EOF +DUMMY1 +0 0 +: root directory +d--777 3 1 +: a directory +directory d--755 3 1 +test ---755 3 1 $tempfile +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_0 ---755 3 1 $tempfile +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_1 ---755 3 1 $tempfile +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_2 ---755 3 1 $tempfile +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_3 ---755 3 1 $tempfile +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_4 ---755 3 1 $tempfile +$ +: back in the root +setuid -u-666 0 0 $tempfile +setgid --g666 0 0 $tempfile +setugid -ug666 0 0 $tempfile +directory_setgid d-g755 3 2 +file_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_5 ---755 3 1 $tempfile +$ +: back in the root +block_device b--012 3 1 161 162 +char_device c--345 3 1 177 178 +pipe p--670 0 0 +symlink l--123 0 0 bigfile +: a file we actually read +bigfile ---666 3 0 $tempfile.2 +: done +$ +EOF + +if [ $? -ne 0 ] +then + _fail "failed to create test protofile" +fi + +_verify_fs() +{ + echo "*** create FS version $1" + VERSION="-n version=$1" + + _scratch_unmount >/dev/null 2>&1 + + _full "mkfs" + _scratch_mkfs_xfs $VERSION -p $protofile >>$seqfull 2>&1 + + echo "*** check FS" + _check_scratch_fs + + echo "*** mount FS" + _full " mount" + _try_scratch_mount >>$seqfull 2>&1 \ + || _fail "mount failed" + + $ATTR_PROG -l $SCRATCH_MNT/directory/test | \ + grep -q 'Attribute.*has a ' || \ + _notrun "mkfs.xfs protofile does not support xattrs" + + echo "*** verify FS" + (cd $SCRATCH_MNT ; find . | LC_COLLATE=POSIX sort \ + | grep -v ".use_space" \ + | xargs $here/src/lstat64 | _filter_stat) + diff -q $SCRATCH_MNT/bigfile $tempfile.2 \ + || _fail "bigfile corrupted" + diff -q $SCRATCH_MNT/symlink $tempfile.2 \ + || _fail "symlink broken" + + $ATTR_PROG -l $SCRATCH_MNT/directory/test | _filter_scratch + + echo "*** unmount FS" + _full "umount" + _scratch_unmount >>$seqfull 2>&1 \ + || _fail "umount failed" +} + +_verify_fs 2 + +echo "*** done" +status=0 +exit
tests/xfs/1937.out new file +102 -0
102 lines not on this page · raw message
Re: [PATCH 4/4] fstests: test mkfs.xfs protofiles with xattr support
Looks good:
PATCH 6/12 fstests: shard the realtime section
In reply to Darrick J. WongHi all,
Right now, the realtime section uses a single pair of metadata inodes to store the free space information. This presents a scalability problem since every thread trying to allocate or free rt extents have to lock these files. It would be very useful if we could begin to tackle these problems by sharding the realtime section, so create the notion of realtime groups, which are similar to allocation groups on the data section.
While we're at it, define a superblock to be stamped into the start of each rt section. This enables utilities such as blkid to identify block devices containing realtime sections, and helpfully avoids the situation where a file extent can cross an rtgroup boundary.
The best advantage for rtgroups will become evident later when we get to adding rmap and reflink to the realtime volume, since the geometry constraints are the same for rt groups and AGs. Hence we can reuse all that code directly.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=realtime-groups
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=realtime-groups
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=realtime-groups
xfsdocs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-documentation.git/log/?h=realtime-groups
---
Commits in this patchset:
* common/populate: refactor caching of metadumps to a helper
* common/{fuzzy,populate}: use _scratch_xfs_mdrestore
* fuzzy: stress data and rt sections of xfs filesystems equally
* fuzzy: run fsx on data and rt sections of xfs filesystems equally
* common/ext4: reformat external logs during mdrestore operations
* common/populate: use metadump v2 format by default for fs metadata snapshots
* punch-alternating: detect xfs realtime files with large allocation units
* xfs/206: update mkfs filtering for rt groups feature
* common: pass the realtime device to xfs_db when possible
* xfs/185: update for rtgroups
* xfs/449: update test to know about xfs_db -R
* xfs/271,xfs/556: fix tests to deal with rtgroups output in bmap/fsmap commands
* common/xfs: capture realtime devices during metadump/mdrestore
* common/fuzzy: adapt the scrub stress tests to support rtgroups
* xfs: fix fuzz tests of rtgroups bitmap and summary files
--- common/ext4 | 17 +++++- common/fuzzy | 138 ++++++++++++++++++++++++++++++++++++----------- common/metadump | 22 ++++++- common/populate | 85 +++++++++++++++++------------ common/xfs | 87 +++++++++++++++++++++++++++--- src/punch-alternating.c | 28 +++++++++- tests/xfs/114 | 4 + tests/xfs/146 | 2 - tests/xfs/185 | 65 +++++++++++++++++----- tests/xfs/187 | 3 + tests/xfs/206 | 1 tests/xfs/271 | 4 + tests/xfs/341 | 4 + tests/xfs/449 | 6 ++ tests/xfs/556 | 16 +++-- tests/xfs/581 | 9 +++ tests/xfs/582 | 14 ++--- tests/xfs/720 | 2 - tests/xfs/739 | 6 ++ tests/xfs/740 | 6 ++ tests/xfs/741 | 6 ++ tests/xfs/742 | 6 ++ tests/xfs/743 | 6 ++ tests/xfs/744 | 6 ++ tests/xfs/745 | 6 ++ tests/xfs/746 | 6 ++ tests/xfs/793 | 14 ++--- tests/xfs/795 | 2 - 28 files changed, 436 insertions(+), 135 deletions(-)
PATCH 1/15 common/populate: refactor caching of metadumps to a helper
From: Darrick J. Wong <[email protected]>
Hoist out of _scratch_populate_cached all the code that we use to save a metadump of the populated filesystem. We're going to make this more involved for XFS in the next few patches so that we can take advantage of the new support for external devices in metadump/mdrestore.
--- common/populate | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-)
common/populate +28 -9
@@ -1064,6 +1064,31 @@ _scratch_populate_restore_cached() { return 1 } +# Take a metadump of the scratch filesystem and cache it for later. +_scratch_populate_save_metadump() +{ + local metadump_file="$1" + + case "${FSTYP}" in + "xfs") + local logdev=none + [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ + logdev=$SCRATCH_LOGDEV + + _xfs_metadump "$metadump_file" "$SCRATCH_DEV" "$logdev" \ + compress -a -o + res=$? + ;; + "ext2"|"ext3"|"ext4") + _ext4_metadump "${SCRATCH_DEV}" "${metadump_file}" compress + res=$? + ;; + *) + _fail "Don't know how to save a ${FSTYP} filesystem." + esac + return $res +} + # Populate a scratch FS from scratch or from a cached image. _scratch_populate_cached() { local meta_descr="$(_scratch_populate_cache_tag "$@")"
@@ -1087,26 +1112,20 @@ _scratch_populate_cached() { # Oh well, just create one from scratch _scratch_mkfs - echo "${meta_descr}" > "${populate_metadump_descr}" case "${FSTYP}" in "xfs") _scratch_xfs_populate $@ _scratch_xfs_populate_check - - local logdev=none - [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ - logdev=$SCRATCH_LOGDEV - - _xfs_metadump "$POPULATE_METADUMP" "$SCRATCH_DEV" "$logdev" \ - compress -a -o ;; "ext2"|"ext3"|"ext4") _scratch_ext4_populate $@ _scratch_ext4_populate_check - _ext4_metadump "${SCRATCH_DEV}" "${POPULATE_METADUMP}" compress ;; *) _fail "Don't know how to populate a ${FSTYP} filesystem." ;; esac + + _scratch_populate_save_metadump "${POPULATE_METADUMP}" && \ + echo "${meta_descr}" > "${populate_metadump_descr}" }
Re: [PATCH 01/15] common/populate: refactor caching of metadumps to a helper
Looks good:
PATCH 2/15 common/{fuzzy,populate}: use _scratch_xfs_mdrestore
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Port the fuzzing and populated filesystem cache code to use this helper to pick up external log devices for the scratch filesystem.
--- common/fuzzy | 2 +- common/populate | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-)
common/fuzzy +1 -1
@@ -306,7 +306,7 @@ __scratch_xfs_fuzz_unmount() __scratch_xfs_fuzz_mdrestore() { __scratch_xfs_fuzz_unmount - _xfs_mdrestore "${POPULATE_METADUMP}" "${SCRATCH_DEV}" || \ + _scratch_xfs_mdrestore "${POPULATE_METADUMP}" || \ _fail "${POPULATE_METADUMP}: Could not find metadump to restore?" }
common/populate +2 -13
@@ -1030,19 +1030,8 @@ _scratch_populate_restore_cached() { case "${FSTYP}" in "xfs") - _xfs_mdrestore "${metadump}" "${SCRATCH_DEV}" - res=$? - test $res -ne 0 && return $res - - # Cached images should have been unmounted cleanly, so if - # there's an external log we need to wipe it and run repair to - # format it to match this filesystem. - if [ -n "${SCRATCH_LOGDEV}" ]; then - $WIPEFS_PROG -a "${SCRATCH_LOGDEV}" - _scratch_xfs_repair - res=$? - fi - return $res + _scratch_xfs_mdrestore "${metadump}" + return $? ;; "ext2"|"ext3"|"ext4") _ext4_mdrestore "${metadump}" "${SCRATCH_DEV}"
Re: [PATCH 02/15] common/{fuzzy,populate}: use _scratch_xfs_mdrestore
Looks good:
PATCH 3/15 fuzzy: stress data and rt sections of xfs filesystems equally
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
If we're stress-testing scrub on a realtime filesystem, make sure that we run fsstress on separate directory trees for data and realtime workouts.
--- common/fuzzy | 56 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 14 deletions(-)
common/fuzzy +42 -14
@@ -1015,15 +1015,28 @@ __stress_scrub_fsx_loop() { rm -f "$runningfile" } +# Run fsstress and record outcome +___scrub_run_fsstress() { + _run_fsstress "$@" + local res=$? + echo "fsstress $* exits with $res at $(date)" >> $seqres.full + test "$res" -ne 0 && touch "$tmp.killstress" +} + # Run fsstress while we're testing online fsck. __stress_scrub_fsstress_loop() { local end="$1" local runningfile="$2" local remount_period="$3" local stress_tgt="$4" - local focus=() - local res + local focus=(-p 4) + local res res2 local duration + local has_rt + local d_args r_args + + test $FSTYP = "xfs" && _xfs_has_feature "$SCRATCH_MNT" realtime && \ + has_rt=1 case "$stress_tgt" in "parent")
@@ -1113,9 +1126,24 @@ __stress_scrub_fsstress_loop() { ;; esac - local args=$(_scale_fsstress_args -p 4 -d $SCRATCH_MNT "${focus[@]}") - echo "Running $FSSTRESS_PROG $args" >> $seqres.full + if [ -n "$has_rt" ]; then + local rdir="$SCRATCH_MNT/rt" + local ddir="$SCRATCH_MNT/data" + mkdir -p "$rdir" "$ddir" + $XFS_IO_PROG -c 'chattr +rt' "$rdir" + $XFS_IO_PROG -c 'chattr -rt' "$ddir" + + r_args=$(_scale_fsstress_args -d "$rdir" "${focus[@]}") + d_args=$(_scale_fsstress_args -d "$ddir" "${focus[@]}") + echo "Running $FSSTRESS_PROG $d_args" >> $seqres.full + echo "Running $FSSTRESS_PROG $r_args" >> $seqres.full + else + d_args=$(_scale_fsstress_args -d $SCRATCH_MNT "${focus[@]}") + echo "Running $FSSTRESS_PROG $d_args" >> $seqres.full + fi + + rm -f "$tmp.killstress" if [ -n "$remount_period" ]; then local mode="rw" local rw_arg=""
@@ -1125,10 +1153,10 @@ __stress_scrub_fsstress_loop() { test "$mode" = "rw" && __stress_scrub_clean_scratch && continue duration=$(___stress_scrub_duration "$end" "$remount_period") - _run_fsstress $duration $args $rw_arg >> $seqres.full - res=$? - echo "$mode fsstress exits with $res at $(date)" >> $seqres.full - [ "$res" -ne 0 ] && break; + ___scrub_run_fsstress $duration $d_args $rw_arg & + test -n "$has_rt" && ___scrub_run_fsstress $duration $r_args $rw_arg & + wait + test -e "$tmp.killstress" && break if [ "$mode" = "rw" ]; then mode="ro"
@@ -1144,7 +1172,7 @@ __stress_scrub_fsstress_loop() { sleep 0.2 done done - rm -f "$runningfile" + rm -f "$runningfile" "$tmp.killstress" return 0 fi
@@ -1152,12 +1180,12 @@ __stress_scrub_fsstress_loop() { # Need to recheck running conditions if we cleared anything __stress_scrub_clean_scratch && continue duration=$(___stress_scrub_duration "$end" "$remount_period") - _run_fsstress $duration $args >> $seqres.full - res=$? - echo "$mode fsstress exits with $res at $(date)" >> $seqres.full - [ "$res" -ne 0 ] && break; + ___scrub_run_fsstress $duration $d_args & + test -n "$has_rt" && ___scrub_run_fsstress $duration $r_args & + wait + test -e "$tmp.killstress" && break done - rm -f "$runningfile" + rm -f "$runningfile" "$tmp.killstress" } # Make sure we have everything we need to run stress and scrub
Re: [PATCH 03/15] fuzzy: stress data and rt sections of xfs filesystems equally
Looks good:
PATCH 4/15 fuzzy: run fsx on data and rt sections of xfs filesystems equally
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
If we're stress-testing scrub on a realtime filesystem, make sure that we run fsx on separate files for data and realtime workouts.
--- common/fuzzy | 53 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 13 deletions(-)
common/fuzzy +40 -13
@@ -955,6 +955,14 @@ ___stress_scrub_duration() echo "--duration=$delta" } +# Run fsx and record outcome +___scrub_run_fsx() { + $FSX_PROG "$@" >> $seqres.full + local res=$? + echo "fsx $* exits with $res at $(date)" >> $seqres.full + test "$res" -ne 0 && touch "$tmp.killfsx" +} + # Run fsx while we're testing online fsck. __stress_scrub_fsx_loop() { local end="$1"
@@ -963,14 +971,33 @@ __stress_scrub_fsx_loop() { local stress_tgt="$4" # ignored local focus=(-q -X) # quiet, validate file contents local duration - local res + local has_rt + local d_args r_args + + test $FSTYP = "xfs" && _xfs_has_feature "$SCRATCH_MNT" realtime && \ + has_rt=1 focus+=(-o $((128000 * LOAD_FACTOR)) ) focus+=(-l $((600000 * LOAD_FACTOR)) ) - local args="$FSX_AVOID ${focus[@]} ${SCRATCH_MNT}/fsx.$seq" - echo "Running $FSX_PROG $args" >> $seqres.full + if [ -n "$has_rt" ]; then + local rdir="$SCRATCH_MNT/rt" + local ddir="$SCRATCH_MNT/data" + mkdir -p "$rdir" "$ddir" + $XFS_IO_PROG -c 'chattr +rt' "$rdir" + $XFS_IO_PROG -c 'chattr -rt' "$ddir" + + r_args="$FSX_AVOID ${focus[*]} $rdir/fsx" + d_args="$FSX_AVOID ${focus[*]} $ddir/fsx" + echo "Running $FSX_PROG $d_args" >> $seqres.full + echo "Running $FSX_PROG $r_args" >> $seqres.full + else + d_args="$FSX_AVOID ${focus[*]} $SCRATCH_MNT/fsx" + echo "Running $FSX_PROG $d_args" >> $seqres.full + fi + + rm -f "$tmp.killfsx" if [ -n "$remount_period" ]; then local mode="rw" local rw_arg=""
@@ -980,10 +1007,10 @@ __stress_scrub_fsx_loop() { test "$mode" = "rw" && __stress_scrub_clean_scratch && continue duration=$(___stress_scrub_duration "$end" "$remount_period") - $FSX_PROG $duration $args $rw_arg >> $seqres.full - res=$? - echo "$mode fsx exits with $res at $(date)" >> $seqres.full - test "$res" -ne 0 && break + ___scrub_run_fsx $duration $d_args $rw_arg & + test -n "$has_rt" && ___scrub_run_fsx $duration $r_args $rw_arg & + wait + test -e "$tmp.killfsx" && break if [ "$mode" = "rw" ]; then mode="ro"
@@ -999,7 +1026,7 @@ __stress_scrub_fsx_loop() { sleep 0.2 done done - rm -f "$runningfile" + rm -f "$runningfile" "$tmp.killfsx" return 0 fi
@@ -1007,12 +1034,12 @@ __stress_scrub_fsx_loop() { # Need to recheck running conditions if we cleared anything __stress_scrub_clean_scratch && continue duration=$(___stress_scrub_duration "$end" "$remount_period") - $FSX_PROG $duration $args >> $seqres.full - res=$? - echo "fsx exits with $res at $(date)" >> $seqres.full - test "$res" -ne 0 && break + ___scrub_run_fsx $duration $d_args & + test -n "$has_rt" && ___scrub_run_fsx $duration $r_args & + wait + test -e "$tmp.killfsx" && break done - rm -f "$runningfile" + rm -f "$runningfile" "$tmp.killfsx" } # Run fsstress and record outcome
Re: [PATCH 04/15] fuzzy: run fsx on data and rt sections of xfs filesystems equally
Looks good:
PATCH 5/15 common/ext4: reformat external logs during mdrestore operations
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
The e2image file format doesn't support the capture of external log devices, which means that mdrestore ought to reformat the external log to get the restored filesystem to work again. The common/populate code could already do this, so push it to the common ext4 helper.
While we're at it, fix the uncareful usage of SCRATCH_LOGDEV in the populate code.
--- common/ext4 | 17 ++++++++++++++++- common/populate | 18 +++++------------- 2 files changed, 21 insertions(+), 14 deletions(-)
common/ext4 +16 -1
@@ -134,7 +134,8 @@ _ext4_mdrestore() { local metadump="$1" local device="$2" - shift; shift + local logdev="$3" + shift; shift; shift local options="$@" # If we're configured for compressed dumps and there isn't already an
@@ -148,6 +149,20 @@ _ext4_mdrestore() test -r "$metadump" || return 1 $E2IMAGE_PROG $options -r "${metadump}" "${SCRATCH_DEV}" + res=$? + test $res -ne 0 && return $res + + # ext4 cannot e2image external logs, so we have to reformat the log + # device to match the restored fs + if [ "${logdev}" != "none" ]; then + local fsuuid="$($DUMPE2FS_PROG -h "${SCRATCH_DEV}" 2>/dev/null | \ + grep 'Journal UUID:' | \ + sed -e 's/Journal UUID:[[:space:]]*//g')" + $MKFS_EXT4_PROG -O journal_dev "${logdev}" \ + -F -U "${fsuuid}" + res=$? + fi + return $res } # this test requires the ext4 kernel support crc feature on scratch device
common/populate +5 -13
@@ -1034,20 +1034,12 @@ _scratch_populate_restore_cached() { return $? ;; "ext2"|"ext3"|"ext4") - _ext4_mdrestore "${metadump}" "${SCRATCH_DEV}" - ret=$? - test $ret -ne 0 && return $ret + local logdev=none + [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ + logdev=$SCRATCH_LOGDEV - # ext4 cannot e2image external logs, so we have to reformat - # the scratch device to match the restored fs - if [ -n "${SCRATCH_LOGDEV}" ]; then - local fsuuid="$($DUMPE2FS_PROG -h "${SCRATCH_DEV}" 2>/dev/null | \ - grep 'Journal UUID:' | \ - sed -e 's/Journal UUID:[[:space:]]*//g')" - $MKFS_EXT4_PROG -O journal_dev "${SCRATCH_LOGDEV}" \ - -F -U "${fsuuid}" - fi - return 0 + _ext4_mdrestore "${metadump}" "${SCRATCH_DEV}" "${logdev}" + return $? ;; esac return 1
Re: [PATCH 05/15] common/ext4: reformat external logs during mdrestore operations
Looks good:
PATCH 6/15 common/populate: use metadump v2 format by default for fs metadata snapshots
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
When we're snapshotting filesystem metadata after creating a populated filesystem, force the creation of metadump v2 files by default to exercise the new format, since xfs_metadump continues to use the v1 format unless told otherwise.
--- common/populate | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
common/populate +11 -2
@@ -55,7 +55,12 @@ __populate_fail() { case "$FSTYP" in xfs) _scratch_unmount - _scratch_xfs_metadump "$metadump" -a -o + + mdargs=('-a' '-o') + test "$(_xfs_metadump_max_version)" -gt 1 && \ + mdargs+=('-v' '2') + + _scratch_xfs_metadump "$metadump" "${mdargs[@]}" ;; ext4) _scratch_unmount
@@ -1056,8 +1061,12 @@ _scratch_populate_save_metadump() [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ logdev=$SCRATCH_LOGDEV + mdargs=('-a' '-o') + test "$(_xfs_metadump_max_version)" -gt 1 && \ + mdargs+=('-v' '2') + _xfs_metadump "$metadump_file" "$SCRATCH_DEV" "$logdev" \ - compress -a -o + compress "${mdargs[@]}" res=$? ;; "ext2"|"ext3"|"ext4")
Re: [PATCH 06/15] common/populate: use metadump v2 format by default for fs metadata snapshots
Looks good:
PATCH 7/15 punch-alternating: detect xfs realtime files with large allocation units
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
For files on the XFS realtime volume, it's possible that the file allocation unit (aka the minimum size we have to punch to deallocate file blocks) could be greater than a single fs block. This utility assumed that it's always possible to punch a single fs block, but for these types of files, all that does is zeroes the page cache. While that's what most *user applications* want, fstests uses punching to fragment file mapping metadata and/or fragment free space, so adapt this test for that purpose by detecting realtime files.
--- src/punch-alternating.c | 28 +++++++++++++++++++++++++++- tests/xfs/114 | 4 ++++ tests/xfs/146 | 2 +- tests/xfs/187 | 3 ++- tests/xfs/341 | 4 ++-- 5 files changed, 36 insertions(+), 5 deletions(-)
src/punch-alternating.c +27 -1
@@ -20,6 +20,28 @@ void usage(char *cmd)exit (1 ); } +/* Compute the file allocation unit size for an XFS file. */ +static int detect_xfs_alloc_unit (int fd) +{ +struct fsxattr fsx; +struct xfs_fsop_geom fsgeom; +int ret; + + ret =ioctl (fd,XFS_IOC_FSGEOMETRY , &fsgeom); +if (ret) +return -1 ; + + ret =ioctl (fd,XFS_IOC_FSGETXATTR , &fsx); +if (ret) +return -1 ; + + ret = fsgeom.blocksize; +if (fsx.fsx_xflags &XFS_XFLAG_REALTIME ) + ret *= fsgeom.rtextsize; + +return ret; +} +int main (int argc,char *argv[]) {struct stat s;
@@ -82,7 +104,11 @@ int main(int argc, char *argv[]) goto err; sz = s.st_size; - blksz = sf.f_bsize; + c =detect_xfs_alloc_unit (fd); +if (c >0 ) + blksz = c; +else + blksz = sf.f_bsize; mode =FALLOC_FL_PUNCH_HOLE |FALLOC_FL_KEEP_SIZE ; for (offset = start_offset * blksz;
tests/xfs/114 +4 -0
@@ -47,6 +47,10 @@ $XFS_IO_PROG -f \ -c "pwrite -S 0x68 -b 1048576 0 $len2" \ $SCRATCH_MNT/f2 >> $seqres.full +# The arguments to punch-alternating must be specified in units of file +# allocation units, so we divide the argument by $file_blksz. We already +# verified that $blksz is congruent with $file_blksz, so the fpunch parameters +# will always align with the file allocation unit. $here/src/punch-alternating -o $((16 * blksz / file_blksz)) \ -s $((blksz / file_blksz)) \ -i $((blksz * 2 / file_blksz)) \
tests/xfs/146 +1 -1
@@ -67,7 +67,7 @@ _xfs_force_bdev realtime $SCRATCH_MNT # Allocate some stuff at the start, to force the first falloc of the ouch file # to happen somewhere in the middle of the rt volume $XFS_IO_PROG -f -c 'falloc 0 64m' "$SCRATCH_MNT/b" -$here/src/punch-alternating -i $((rextblks * 2)) -s $((rextblks)) "$SCRATCH_MNT/b" +$here/src/punch-alternating "$SCRATCH_MNT/b" avail="$(df -P "$SCRATCH_MNT" | awk 'END {print $4}')"1 toobig="$((avail * 2))"
tests/xfs/187 +2 -1
@@ -130,7 +130,8 @@ $XFS_IO_PROG -f -c "truncate $required_sz" -c "falloc 0 $remap_sz" $SCRATCH_MNT/ # Punch out every other extent of the last two sections, to fragment free space. frag_sz=$((remap_sz * 3)) punch_off=$((bigfile_sz - frag_sz)) -$here/src/punch-alternating $SCRATCH_MNT/bigfile -o $((punch_off / fsbsize)) -i $((rtextsize_blks * 2)) -s $rtextsize_blks +rtextsize_bytes=$((fsbsize * rtextsize_blks)) +$here/src/punch-alternating $SCRATCH_MNT/bigfile -o $((punch_off / rtextsize_bytes)) # Make sure we have some free rtextents. free_rtx=$(_xfs_statfs_field "$SCRATCH_MNT" statfs.f_bavail)
tests/xfs/341 +2 -2
@@ -41,8 +41,8 @@ len=$((blocks * rtextsz)) echo "Create some files" $XFS_IO_PROG -f -R -c "falloc 0 $len" -c "pwrite -S 0x68 -b 1048576 0 $len" $SCRATCH_MNT/f1 >> $seqres.full $XFS_IO_PROG -f -R -c "falloc 0 $len" -c "pwrite -S 0x68 -b 1048576 0 $len" $SCRATCH_MNT/f2 >> $seqres.full -$here/src/punch-alternating -i $((2 * rtextsz_blks)) -s $rtextsz_blks $SCRATCH_MNT/f1 >> "$seqres.full" -$here/src/punch-alternating -i $((2 * rtextsz_blks)) -s $rtextsz_blks $SCRATCH_MNT/f2 >> "$seqres.full" +$here/src/punch-alternating $SCRATCH_MNT/f1 >> "$seqres.full" +$here/src/punch-alternating $SCRATCH_MNT/f2 >> "$seqres.full" echo garbage > $SCRATCH_MNT/f3 ino=$(stat -c '%i' $SCRATCH_MNT/f3) _scratch_unmount
Re: [PATCH 07/15] punch-alternating: detect xfs realtime files with large allocation units
Looks good:
PATCH 8/15 xfs/206: update mkfs filtering for rt groups feature
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Filter out the new mkfs lines that show the rtgroup information, since this test is heavily dependent on old mkfs output.
--- tests/xfs/206 | 1 + 1 file changed, 1 insertion(+)
tests/xfs/206 +1 -0
@@ -65,6 +65,7 @@ mkfs_filter() -e "/exchange=/d" \ -e '/metadir=.*/d' \ -e 's/, parent=[01]//' \ + -e '/rgcount=/d' \ -e "/^Default configuration/d" }
Re: [PATCH 08/15] xfs/206: update mkfs filtering for rt groups feature
Looks good:
PATCH 9/15 common: pass the realtime device to xfs_db when possible
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Teach xfstests to pass the realtime device to xfs_db when it supports that option.
--- common/xfs | 4 ++++ 1 file changed, 4 insertions(+)
common/xfs +4 -0
@@ -308,6 +308,10 @@ _scratch_xfs_db_options() SCRATCH_OPTIONS="" [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ SCRATCH_OPTIONS="-l$SCRATCH_LOGDEV" + if [ "$USE_EXTERNAL" = yes ] && [ ! -z "$SCRATCH_RTDEV" ]; then + $XFS_DB_PROG --help 2>&1 | grep -q -- '-R rtdev' && \ + SCRATCH_OPTIONS="$SCRATCH_OPTIONS -R$SCRATCH_RTDEV" + fi echo $SCRATCH_OPTIONS $* $SCRATCH_DEV }
Re: [PATCH 09/15] common: pass the realtime device to xfs_db when possible
Looks good:
PATCH 10/15 xfs/185: update for rtgroups
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
This old test is a bit too fixated on exact rt allocator behavior. With rtgroups enabled, we can end up with one large contiguous region that's split into multiple bmbt mappings to avoid crossing rtgroup boundaries. The realtime superblock throws another twist into the mix because the first rtx will always be in use, which can shift the start of the physical space mappings by up to 1 rtx.
Also fix a bug where we'd try to fallocate the total number of rtx, whereas we should be asking for the number of free rtx to avoid ENOSPC errors.
--- tests/xfs/185 | 65 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 15 deletions(-)
tests/xfs/185 +50 -15
@@ -97,10 +97,17 @@ test "$ddbytes" -lt "$((rtbytes + (10 * rtextsize) ))" || \ # higher than the size of the data device. For realtime files this is really # easy because fallocate for the first rt file always starts allocating at # physical offset zero. -alloc_rtx="$((rtbytes / rtextsize))" +rtfreebytes="$(stat -f -c '%S * %a' $rtfile | bc)" +alloc_rtx="$((rtfreebytes / rtextsize))" $XFS_IO_PROG -c "falloc 0 $((alloc_rtx * rtextsize))" $rtfile -expected_end="$(( (alloc_rtx * rtextsize - 1) / 512 ))" +# log a bunch of geometry data to the full file for debugging +echo "rtbytes $rtbytes rtfreebytes $rtfreebytes rtextsize $rtextsize" >> $seqres.full +echo "allocrtx $alloc_rtx falloc $((alloc_rtx * rtextsize))" >> $seqres.full +$XFS_IO_PROG -c statfs $SCRATCH_MNT >> $seqres.full + +total_rtx=$(_xfs_statfs_field $SCRATCH_MNT geom.rtextents) +expected_end="$(( (total_rtx * rtextsize - 1) / 512 ))" # Print extent mapping of rtfile in format: # file_offset file_end physical_offset physical_end
@@ -113,13 +120,28 @@ rtfile_exts() { done } -# Make sure that we actually got the entire device. -rtfile_exts | $AWK_PROG -v end=$expected_end ' +# Make sure that fallocate actually managed to map the entire rt device. The +# realtime superblock may consume the first rtx, so we allow for that here. +# Allow for multiple contiguous mappings if the rtgroups are very small. +allowed_start=$((rtextsize / 512)) +rtfile_exts | $AWK_PROG -v exp_start=$allowed_start -v exp_end=$expected_end ' +BEGIN { + start = -1; + end = -1; +} { - if ($3 != 0) - printf("%s: unexpected physical offset %s, wanted 0\n", $0, $3); - if ($4 != end) - printf("%s: unexpected physical end %s, wanted %d\n", $0, $4, end); + if (end >= 0 && ($3 != end + 1)) + printf("%s: non-contiguous allocation should have started at %s\n", $0, end + 1); + if (start < 0 || $3 < start) + start = $3; + if (end < 0 || $4 > end) + end = $4; +} +END { + if (start > exp_start) + printf("%s: unexpected physical offset %d, wanted <= %d\n", $0, start, exp_start); + if (end != exp_end) + printf("%s: unexpected physical end %d, wanted %d\n", $0, end, exp_end); }' # Now punch out a range that is slightly larger than the size of the data
@@ -132,14 +154,27 @@ expected_offset="$((punch_rtx * rtextsize / 512))" echo "rtfile should have physical extent from $expected_offset to $expected_end sectors" >> $seqres.full -# Make sure that the realtime file now has only one extent at the end of the -# realtime device -rtfile_exts | $AWK_PROG -v offset=$expected_offset -v end=$expected_end ' +# Make sure that the realtime file now maps one large extent at the end of the +# realtime device. Due to rtgroups boundary rules, there may be multiple +# contiguous mappings. +rtfile_exts | $AWK_PROG -v exp_start=$expected_offset -v exp_end=$expected_end ' +BEGIN { + start = -1; + end = -1; +} { - if ($3 != offset) - printf("%s: unexpected physical offset %s, wanted %d\n", $0, $3, offset); - if ($4 != end) - printf("%s: unexpected physical end %s, wanted %d\n", $0, $4, end); + if (end >= 0 && ($3 != end + 1)) + printf("%s: non-contiguous allocation should have started at %s\n", $0, end + 1); + if (start < 0 || $3 < start) + start = $3; + if (end < 0 || $4 > end) + end = $4; +} +END { + if (start < exp_start) + printf("%s: unexpected physical offset %d, wanted >= %d\n", $0, start, exp_start); + if (end != exp_end) + printf("%s: unexpected physical end %d, wanted %d\n", $0, end, exp_end); }' $XFS_IO_PROG -c 'bmap -elpv' $rtfile >> $seqres.full
Re: [PATCH 10/15] xfs/185: update for rtgroups
Looks good:
PATCH 11/15 xfs/449: update test to know about xfs_db -R
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
The realtime groups feature added a -R flag to xfs_db so that users can pass in the realtime device. Since we've now modified the _scratch_xfs_db to use this facility, we can update the test to do exact comparisons of the xfs_db info command against the mkfs output.
--- tests/xfs/449 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
tests/xfs/449 +5 -1
@@ -30,7 +30,11 @@ echo DB >> $seqres.full cat $tmp.dbinfo >> $seqres.full # xfs_db doesn't take a rtdev argument, so it reports "realtime=external". # mkfs does, so make a quick substitution -diff -u <(cat $tmp.mkfs | sed -e 's/realtime =\/.*extsz=/realtime =external extsz=/g') $tmp.dbinfo +if $XFS_DB_PROG --help 2>&1 | grep -q -- '-R rtdev'; then + diff -u $tmp.mkfs $tmp.dbinfo +else + diff -u <(cat $tmp.mkfs | sed -e 's/realtime =\/.*extsz=/realtime =external extsz=/g') $tmp.dbinfo +fi _scratch_mount
Re: [PATCH 11/15] xfs/449: update test to know about xfs_db -R
Looks good:
PATCH 12/15 xfs/271,xfs/556: fix tests to deal with rtgroups output in bmap/fsmap commands
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Fix these tests to deal with the xfs_io bmap and fsmap commands printing out realtime group numbers if the feature is enabled.
--- common/xfs | 7 +++++++ tests/xfs/271 | 4 +++- tests/xfs/556 | 16 ++++++++++------ 3 files changed, 20 insertions(+), 7 deletions(-)
common/xfs +7 -0
@@ -419,6 +419,13 @@ _xfs_has_feature() feat="rtextents" feat_regex="[1-9][0-9]*" ;; + "rtgroups") + # any fs with rtgroups enabled will have a nonzero rt group + # size, even if there is no rt device (and hence zero actual + # groups) + feat="rgsize" + feat_regex="[1-9][0-9]*" + ;; esac local answer="$($XFS_INFO_PROG "$fs" 2>&1 | grep -E -w -c "$feat=$feat_regex")"
tests/xfs/271 +3 -1
@@ -29,6 +29,8 @@ _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount agcount=$(_xfs_mount_agcount $SCRATCH_MNT) +agcount_wiggle=0 +_xfs_has_feature $SCRATCH_MNT rtgroups && agcount_wiggle=1 # mkfs lays out btree root blocks in the order bnobt, cntbt, inobt, finobt, # rmapbt, refcountbt, and then allocates AGFL blocks. Since GETFSMAP has the
@@ -46,7 +48,7 @@ cat $TEST_DIR/fsmap >> $seqres.full echo "Check AG header" | tee -a $seqres.full grep 'static fs metadata[[:space:]]*[0-9]*[[:space:]]*(0\.\.' $TEST_DIR/fsmap | tee -a $seqres.full > $TEST_DIR/testout -_within_tolerance "AG header count" $(wc -l < $TEST_DIR/testout) $agcount 0 -v +_within_tolerance "AG header count" $(wc -l < $TEST_DIR/testout) $agcount $agcount_wiggle -v echo "Check freesp/rmap btrees" | tee -a $seqres.full grep 'per-AG metadata[[:space:]]*[0-9]*[[:space:]]*([0-9]*\.\.' $TEST_DIR/fsmap | tee -a $seqres.full > $TEST_DIR/testout
tests/xfs/556 +10 -6
@@ -45,16 +45,20 @@ victim=$SCRATCH_MNT/a file_blksz=$(_get_file_block_size $SCRATCH_MNT) $XFS_IO_PROG -f -c "pwrite -S 0x58 0 $((4 * file_blksz))" -c "fsync" $victim >> $seqres.full unset errordev -_xfs_is_realtime_file $victim && errordev="RT" + +awk_len_prog='{print $6}' +if _xfs_is_realtime_file $victim; then + if ! _xfs_has_feature $SCRATCH_MNT rtgroups; then + awk_len_prog='{print $4}' + fi + errordev="RT" +fi bmap_str="$($XFS_IO_PROG -c "bmap -elpv" $victim | grep "^[[:space:]]*0:")" echo "$errordev:$bmap_str" >> $seqres.full phys="$(echo "$bmap_str" | $AWK_PROG '{print $3}')" -if [ "$errordev" = "RT" ]; then - len="$(echo "$bmap_str" | $AWK_PROG '{print $4}')" -else - len="$(echo "$bmap_str" | $AWK_PROG '{print $6}')" -fi +len="$(echo "$bmap_str" | $AWK_PROG "$awk_len_prog")" + fs_blksz=$(_get_block_size $SCRATCH_MNT) echo "file_blksz:$file_blksz:fs_blksz:$fs_blksz" >> $seqres.full kernel_sectors_per_fs_block=$((fs_blksz / 512))
Re: [PATCH 12/15] xfs/271,xfs/556: fix tests to deal with rtgroups output in bmap/fsmap commands
Looks good:
PATCH 13/15 common/xfs: capture realtime devices during metadump/mdrestore
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
If xfs_metadump supports the -r switch to capture the contents of realtime devices and there is a realtime device, add the option to the command line to enable preservation.
Similarly, if the dump file could restore to an external scratch rtdev, pass the -r option to mdrestore so that we can restore rtdev contents.
--- common/metadump | 22 ++++++++++++++++++---- common/populate | 6 +++++- common/xfs | 48 ++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 63 insertions(+), 13 deletions(-)
common/metadump +18 -4
@@ -27,6 +27,7 @@ _xfs_cleanup_verify_metadump() if [ -n "$XFS_METADUMP_IMG" ]; then [ -b "$METADUMP_DATA_LOOP_DEV" ] && _destroy_loop_device $METADUMP_DATA_LOOP_DEV [ -b "$METADUMP_LOG_LOOP_DEV" ] && _destroy_loop_device $METADUMP_LOG_LOOP_DEV + [ -b "$METADUMP_RT_LOOP_DEV" ] && _destroy_loop_device $METADUMP_RT_LOOP_DEV for img in "$XFS_METADUMP_IMG"*; do test -e "$img" && rm -f "$img" done
@@ -101,6 +102,7 @@ _xfs_verify_metadump_v2() local version="-v 2" local data_img="$XFS_METADUMP_IMG.data" local log_img="" + local rt_img="" # Capture metadump, which creates metadump_file _scratch_xfs_metadump $metadump_file $metadump_args $version
@@ -111,8 +113,12 @@ _xfs_verify_metadump_v2() # from such a metadump file. test -n "$SCRATCH_LOGDEV" && log_img="$XFS_METADUMP_IMG.log" + # Use a temporary file to hold restored rt device contents + test -n "$SCRATCH_RTDEV" && _xfs_metadump_supports_rt && \ + rt_img="$XFS_METADUMP_IMG.rt" + # Restore metadump, which creates data_img and log_img - SCRATCH_DEV=$data_img SCRATCH_LOGDEV=$log_img \ + SCRATCH_DEV=$data_img SCRATCH_LOGDEV=$log_img SCRATCH_RTDEV=$rt_img \ _scratch_xfs_mdrestore $metadump_file # Create loopdev for data device so we can mount the fs
@@ -121,12 +127,15 @@ _xfs_verify_metadump_v2() # Create loopdev for log device if we recovered anything test -s "$log_img" && METADUMP_LOG_LOOP_DEV=$(_create_loop_device $log_img) + # Create loopdev for rt device if we recovered anything + test -s "$rt_img" && METADUMP_RT_LOOP_DEV=$(_create_loop_device $rt_img) + # Mount fs, run an extra test, fsck, and unmount - SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV _scratch_mount + SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV SCRATCH_RTDEV=$METADUMP_RT_LOOP_DEV _scratch_mount if [ -n "$extra_test" ]; then - SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV $extra_test + SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV SCRATCH_RTDEV=$METADUMP_RT_LOOP_DEV $extra_test fi - SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV _check_xfs_scratch_fs + SCRATCH_DEV=$METADUMP_DATA_LOOP_DEV SCRATCH_LOGDEV=$METADUMP_LOG_LOOP_DEV SCRATCH_RTDEV=$METADUMP_RT_LOOP_DEV _check_xfs_scratch_fs _unmount $METADUMP_DATA_LOOP_DEV # Tear down what we created
@@ -135,6 +144,11 @@ _xfs_verify_metadump_v2() unset METADUMP_LOG_LOOP_DEV rm -f $log_img fi + if [ -b "$METADUMP_RT_LOOP_DEV" ]; then + _destroy_loop_device $METADUMP_RT_LOOP_DEV + unset METADUMP_RT_LOOP_DEV + rm -f $rt_img + fi _destroy_loop_device $METADUMP_DATA_LOOP_DEV unset METADUMP_DATA_LOOP_DEV rm -f $data_img
common/populate +5 -1
@@ -1061,12 +1061,16 @@ _scratch_populate_save_metadump() [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \ logdev=$SCRATCH_LOGDEV + local rtdev=none + [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ] && \ + rtdev=$SCRATCH_RTDEV + mdargs=('-a' '-o') test "$(_xfs_metadump_max_version)" -gt 1 && \ mdargs+=('-v' '2') _xfs_metadump "$metadump_file" "$SCRATCH_DEV" "$logdev" \ - compress "${mdargs[@]}" + "$rtdev" compress "${mdargs[@]}" res=$? ;; "ext2"|"ext3"|"ext4")
common/xfs +40 -8
118 lines not on this page · raw message
Re: [PATCH 13/15] common/xfs: capture realtime devices during metadump/mdrestore
Looks good:
PATCH 14/15 common/fuzzy: adapt the scrub stress tests to support rtgroups
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Adapt the scrub stress testing framework to support checking realtime group metadata.
--- common/fuzzy | 27 ++++++++++++++++++++++----- common/xfs | 9 +++++++++ tests/xfs/581 | 2 +- tests/xfs/720 | 2 +- tests/xfs/795 | 2 +- 5 files changed, 34 insertions(+), 8 deletions(-)
common/fuzzy +22 -5
@@ -829,8 +829,10 @@ __stress_one_scrub_loop() { local scrub_tgt="$3" local scrub_startat="$4" local start_agno="$5" - shift; shift; shift; shift; shift + local start_rgno="$6" + shift; shift; shift; shift; shift; shift local agcount="$(_xfs_mount_agcount $SCRATCH_MNT)" + local rgcount="$(_xfs_mount_rgcount $SCRATCH_MNT)" local xfs_io_args=() for arg in "$@"; do
@@ -843,6 +845,12 @@ __stress_one_scrub_loop() { local ag_arg="$(echo "$arg" | sed -e "s|%agno%|$agno|g")" xfs_io_args+=('-c' "$ag_arg") done + elif echo "$arg" | grep -q -w '%rgno%'; then + # Substitute the rtgroup number + for ((rgno = start_rgno; rgno < rgcount; rgno++)); do + local rg_arg="$(echo "$arg" | sed -e "s|%rgno%|$rgno|g")" + xfs_io_args+=('-c' "$rg_arg") + done else xfs_io_args+=('-c' "$arg") fi
@@ -1298,7 +1306,9 @@ _scratch_xfs_stress_scrub_cleanup() { __stress_scrub_check_commands() { local scrub_tgt="$1" local start_agno="$2" - shift; shift + local start_rgno="$3" + shift; shift; shift + local rgcount="$(_xfs_mount_rgcount $SCRATCH_MNT)" local cooked_tgt="$scrub_tgt" case "$scrub_tgt" in
@@ -1328,6 +1338,10 @@ __stress_scrub_check_commands() { cooked_arg="$(echo "$cooked_arg" | sed -e 's/^repair/repair -R/g')" fi cooked_arg="$(echo "$cooked_arg" | sed -e "s/%agno%/$start_agno/g")" + if echo "$cooked_arg" | grep -q -w '%rgno%'; then + test "$rgcount" -eq 0 && continue + cooked_arg="$(echo "$cooked_arg" | sed -e "s/%rgno%/$start_rgno/g")" + fi testio=`$XFS_IO_PROG -x -c "$cooked_arg" "$cooked_tgt" 2>&1` echo $testio | grep -q "Unknown type" && \ _notrun "xfs_io scrub subcommand support is missing"
@@ -1353,6 +1367,7 @@ __stress_scrub_check_commands() { # in a separate loop. If zero -i options are specified, do not run. # Callers must check each of these commands (via _require_xfs_io_command) # before calling here. +# -R For %rgno% substitution, start with this rtgroup instead of rtgroup 0. # -r Run fsstress for this amount of time, then remount the fs ro or rw. # The default is to run fsstress continuously with no remount, unless # XFS_SCRUB_STRESS_REMOUNT_PERIOD is set.
@@ -1399,6 +1414,7 @@ _scratch_xfs_stress_scrub() { local remount_period="${XFS_SCRUB_STRESS_REMOUNT_PERIOD}" local stress_tgt="${XFS_SCRUB_STRESS_TARGET:-default}" local start_agno=0 + local start_rgno=0 __SCRUB_STRESS_FREEZE_PID="" __SCRUB_STRESS_REMOUNT_LOOP=""
@@ -1406,12 +1422,13 @@ _scratch_xfs_stress_scrub() { touch "$runningfile" OPTIND=1 - while getopts "a:fi:r:s:S:t:w:x:X:" c; do + while getopts "a:fi:r:R:s:S:t:w:x:X:" c; do case "$c" in a) start_agno="$OPTARG";; f) freeze=yes;; i) io_args+=("$OPTARG");; r) remount_period="$OPTARG";; + R) start_rgno="$OPTARG";; s) one_scrub_args+=("$OPTARG");; S) xfs_scrub_args+=("$OPTARG");; t) scrub_tgt="$OPTARG";;
@@ -1422,7 +1439,7 @@ _scratch_xfs_stress_scrub() { esac done - __stress_scrub_check_commands "$scrub_tgt" "$start_agno" \ + __stress_scrub_check_commands "$scrub_tgt" "$start_agno" "$start_rgno" \ "${one_scrub_args[@]}" if ! command -v "__stress_scrub_${exerciser}_loop" &>/dev/null; then
@@ -1483,7 +1500,7 @@ _scratch_xfs_stress_scrub() { if [ "${#one_scrub_args[@]}" -gt 0 ]; then __stress_one_scrub_loop "$end" "$runningfile" "$scrub_tgt" \ - "$scrub_startat" "$start_agno" \ + "$scrub_startat" "$start_agno" "$start_rgno" \ "${one_scrub_args[@]}" & fi
common/xfs +9 -0
@@ -1490,6 +1490,15 @@ _xfs_mount_agcount() $XFS_INFO_PROG "$1" | sed -n "s/^.*agcount=\([[:digit:]]*\).*/\1/p" } +# Find rtgroup count of mounted filesystem +_xfs_mount_rgcount() +{ + local rtgroups="$($XFS_INFO_PROG "$1" | grep rgcount= | sed -e 's/^.*rgcount=\([0-9]*\).*$/\1/g')" + + test -z "$rtgroups" && rtgroups=0 + echo "$rtgroups" +} + # Wipe the superblock of each XFS AGs _try_wipe_scratch_xfs() {
tests/xfs/581 +1 -1
@@ -30,7 +30,7 @@ _require_xfs_stress_scrub _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount _require_xfs_has_feature "$SCRATCH_MNT" realtime -_scratch_xfs_stress_scrub -s "scrub rtbitmap" +_scratch_xfs_stress_scrub -s "scrub rtbitmap" -s "scrub rgbitmap %rgno%" # success, all done echo Silence is golden
tests/xfs/720 +1 -1
@@ -37,7 +37,7 @@ alloc_unit=$(_get_file_block_size $SCRATCH_MNT) scratchfile=$SCRATCH_MNT/file touch $scratchfile $XFS_IO_PROG -x -c 'inject force_repair' $SCRATCH_MNT -__stress_scrub_check_commands "$scratchfile" "" 'repair bmapbtd' +__stress_scrub_check_commands "$scratchfile" "" "" 'repair bmapbtd' # Compute the number of extent records needed to guarantee btree format, # assuming 16 bytes for each ondisk extent record
tests/xfs/795 +1 -1
@@ -37,7 +37,7 @@ scratchfile=$SCRATCH_MNT/file mkdir $scratchdir touch $scratchfile $XFS_IO_PROG -x -c 'inject force_repair' $SCRATCH_MNT -__stress_scrub_check_commands "$scratchdir" "" 'repair directory' +__stress_scrub_check_commands "$scratchdir" "" "" 'repair directory' # Create a 2-dirblock directory total_size=$((alloc_unit * 2))
Re: [PATCH 14/15] common/fuzzy: adapt the scrub stress tests to support rtgroups
Looks good:
PATCH 15/15 xfs: fix fuzz tests of rtgroups bitmap and summary files
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
With rtgroups, the rt bitmap and summary files are now per-group, so adjust the fuzz and fsck tests to find the new locations.
--- common/xfs | 19 +++++++++++++++++++ tests/xfs/581 | 9 ++++++++- tests/xfs/582 | 14 +++++++------- tests/xfs/739 | 6 +++++- tests/xfs/740 | 6 +++++- tests/xfs/741 | 6 +++++- tests/xfs/742 | 6 +++++- tests/xfs/743 | 6 +++++- tests/xfs/744 | 6 +++++- tests/xfs/745 | 6 +++++- tests/xfs/746 | 6 +++++- tests/xfs/793 | 14 +++++++------- 12 files changed, 81 insertions(+), 23 deletions(-)
common/xfs +19 -0
@@ -1950,6 +1950,25 @@ _scratch_xfs_find_metafile() local metafile="$1" local sb_field + # With metadir=1, the realtime volume is sharded into allocation + # groups. Each rtgroup has its own bitmap and summary file. Tests + # should pick a particular file, but this compatibility shim still + # exists to keep old tests working. + case "$metafile" in + "rbmino") + if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + echo "path -m /rtgroups/0.bitmap" + return 0 + fi + ;; + "rsumino") + if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + echo "path -m /rtgroups/0.summary" + return 0 + fi + ;; + esac + sb_field="$(_scratch_xfs_get_sb_field "$metafile")" if echo "$sb_field" | grep -q -w 'not found'; then return 1
tests/xfs/581 +8 -1
@@ -30,7 +30,14 @@ _require_xfs_stress_scrub _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount _require_xfs_has_feature "$SCRATCH_MNT" realtime -_scratch_xfs_stress_scrub -s "scrub rtbitmap" -s "scrub rgbitmap %rgno%" + +if _xfs_has_feature "$SCRATCH_MNT" rtgroups; then + _scratch_xfs_stress_scrub -s "scrub rtbitmap %rgno%" +elif xfs_io -c 'help scrub' | grep -q rgsuper; then + _scratch_xfs_stress_scrub -s "scrub rtbitmap 0" +else + _scratch_xfs_stress_scrub -s "scrub rtbitmap" +fi # success, all done echo Silence is golden
tests/xfs/582 +7 -7
@@ -31,13 +31,13 @@ _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount _require_xfs_has_feature "$SCRATCH_MNT" realtime -# XXX the realtime summary scrubber isn't currently implemented upstream. -# Don't bother trying to test it on those kernels -$XFS_IO_PROG -c 'scrub rtsummary' -c 'scrub rtsummary' "$SCRATCH_MNT" 2>&1 | \ - grep -q 'Scan was not complete' && \ - _notrun "rtsummary scrub is incomplete" - -_scratch_xfs_stress_scrub -s "scrub rtsummary" +if _xfs_has_feature "$SCRATCH_MNT" rtgroups; then + _scratch_xfs_stress_scrub -s "scrub rtsummary %rgno%" +elif xfs_io -c 'help scrub' | grep -q rgsuper; then + _scratch_xfs_stress_scrub -s "scrub rtsummary 0" +else + _scratch_xfs_stress_scrub -s "scrub rtsummary" +fi # success, all done echo Silence is golden
tests/xfs/739 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -path="$(_scratch_xfs_find_metafile rbmino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.bitmap" +else + path="$(_scratch_xfs_find_metafile rbmino)" +fi _scratch_xfs_fuzz_metadata '' 'online' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap"
tests/xfs/740 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -path="$(_scratch_xfs_find_metafile rsumino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.summary" +else + path="$(_scratch_xfs_find_metafile rsumino)" +fi _scratch_xfs_fuzz_metadata '' 'online' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary"
tests/xfs/741 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -path="$(_scratch_xfs_find_metafile rbmino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.bitmap" +else + path="$(_scratch_xfs_find_metafile rbmino)" +fi _scratch_xfs_fuzz_metadata '' 'offline' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap"
tests/xfs/742 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -path="$(_scratch_xfs_find_metafile rsumino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.summary" +else + path="$(_scratch_xfs_find_metafile rsumino)" +fi _scratch_xfs_fuzz_metadata '' 'offline' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary"
tests/xfs/743 +5 -1
@@ -26,7 +26,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -path="$(_scratch_xfs_find_metafile rbmino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.bitmap" +else + path="$(_scratch_xfs_find_metafile rbmino)" +fi _scratch_xfs_fuzz_metadata '' 'both' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap"
tests/xfs/744 +5 -1
@@ -26,7 +26,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -path="$(_scratch_xfs_find_metafile rsumino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.summary" +else + path="$(_scratch_xfs_find_metafile rsumino)" +fi _scratch_xfs_fuzz_metadata '' 'both' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary"
tests/xfs/745 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtbitmap" -path="$(_scratch_xfs_find_metafile rbmino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.bitmap" +else + path="$(_scratch_xfs_find_metafile rbmino)" +fi _scratch_xfs_fuzz_metadata '' 'none' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtbitmap"
tests/xfs/746 +5 -1
@@ -25,7 +25,11 @@ echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 echo "Fuzz rtsummary" -path="$(_scratch_xfs_find_metafile rsumino)" +if _xfs_has_feature "$SCRATCH_DEV" rtgroups; then + path="path -m /rtgroups/0.summary" +else + path="$(_scratch_xfs_find_metafile rsumino)" +fi _scratch_xfs_fuzz_metadata '' 'none' "$path" 'dblock 0' >> $seqres.full echo "Done fuzzing rtsummary"
tests/xfs/793 +7 -7
@@ -32,13 +32,13 @@ _scratch_mount _require_xfs_has_feature "$SCRATCH_MNT" realtime _xfs_force_bdev realtime $SCRATCH_MNT -# XXX the realtime summary scrubber isn't currently implemented upstream. -# Don't bother trying to fix it on those kernels -$XFS_IO_PROG -c 'scrub rtsummary' -c 'scrub rtsummary' "$SCRATCH_MNT" 2>&1 | \ - grep -q 'Scan was not complete' && \ - _notrun "rtsummary scrub is incomplete" - -_scratch_xfs_stress_online_repair -s "repair rtsummary" +if _xfs_has_feature "$SCRATCH_MNT" rtgroups; then + _scratch_xfs_stress_online_repair -s "repair rtsummary %rgno%" +elif xfs_io -c 'help scrub' | grep -q rgsuper; then + _scratch_xfs_stress_online_repair -s "repair rtsummary 0" +else + _scratch_xfs_stress_online_repair -s "repair rtsummary" +fi # success, all done echo Silence is golden
Re: [PATCH 15/15] xfs: fix fuzz tests of rtgroups bitmap and summary files
Looks good:
PATCH 7/12 fstests: store quota files in the metadir
In reply to Darrick J. WongHi all,
Store the quota files in the metadata directory tree instead of the superblock. Since we're introducing a new incompat feature flag, let's also make the mount process bring up quotas in whatever state they were when the filesystem was last unmounted, instead of requiring sysadmins to remember that themselves.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=metadir-quotas
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=metadir-quotas
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=metadir-quotas
---
Commits in this patchset:
* xfs: update tests for quota files in the metadir
* xfs: test persistent quota flags
* xfs: fix quota detection in fuzz tests
* xfs: fix tests for persistent qflags
---
common/quota | 1
common/rc | 1
common/xfs | 21 ++++++
tests/generic/563 | 8 ++
tests/xfs/007 | 2 -
tests/xfs/096 | 1
tests/xfs/096.out | 2 -
tests/xfs/106 | 2 -
tests/xfs/116 | 13 ++++
tests/xfs/116.cfg | 1
tests/xfs/116.out.default | 0
tests/xfs/116.out.metadir | 3 +
tests/xfs/152 | 2 -
tests/xfs/1891 | 128 +++++++++++++++++++++++++++++++++++++++
tests/xfs/1891.out | 147 +++++++++++++++++++++++++++++++++++++++++++++
tests/xfs/263 | 1
tests/xfs/263.out | 2 -
tests/xfs/425 | 5 +-
tests/xfs/426 | 5 +-
tests/xfs/427 | 5 +-
tests/xfs/428 | 5 +-
tests/xfs/429 | 5 +-
tests/xfs/430 | 5 +-
tests/xfs/487 | 5 +-
tests/xfs/488 | 5 +-
tests/xfs/489 | 5 +-
tests/xfs/779 | 5 +-
tests/xfs/780 | 5 +-
tests/xfs/781 | 5 +-
29 files changed, 376 insertions(+), 19 deletions(-)
create mode 100644 tests/xfs/116.cfg
rename tests/xfs/{116.out => 116.out.default} (100%)
create mode 100644 tests/xfs/116.out.metadir
create mode 100755 tests/xfs/1891
create mode 100644 tests/xfs/1891.outPATCH 1/4 xfs: update tests for quota files in the metadir
From: Darrick J. Wong <[email protected]>
Update fstests to handle quota files in the metadir.
--- common/xfs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
common/xfs +18 -0
@@ -1967,6 +1967,24 @@ _scratch_xfs_find_metafile() return 0 fi ;; + "uquotino") + if _xfs_has_feature "$SCRATCH_DEV" metadir; then + echo "path -m /quota/user" + return 0 + fi + ;; + "gquotino") + if _xfs_has_feature "$SCRATCH_DEV" metadir; then + echo "path -m /quota/group" + return 0 + fi + ;; + "pquotino") + if _xfs_has_feature "$SCRATCH_DEV" metadir; then + echo "path -m /quota/project" + return 0 + fi + ;; esac sb_field="$(_scratch_xfs_get_sb_field "$metafile")"
Re: [PATCH 1/4] xfs: update tests for quota files in the metadir
Looks good:
PATCH 2/4 xfs: test persistent quota flags
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Test the persistent quota flags that come with the metadir feature.
--- tests/generic/563 | 8 ++- tests/xfs/1891 | 128 +++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1891.out | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 282 insertions(+), 1 deletion(-) create mode 100755 tests/xfs/1891 create mode 100644 tests/xfs/1891.out
tests/generic/563 +7 -1
@@ -96,7 +96,13 @@ smajor=$((0x`stat -L -c %t $loop_dev`)) sminor=$((0x`stat -L -c %T $loop_dev`)) _mkfs_dev $loop_dev >> $seqres.full 2>&1 -_mount $loop_dev $SCRATCH_MNT || _fail "mount failed" +if [ $FSTYP = "xfs" ]; then + # Writes to the quota file are captured in cgroup metrics on XFS, so + # we require that quota is not enabled at all. + _mount $loop_dev -o noquota $SCRATCH_MNT || _fail "mount failed" +else + _mount $loop_dev $SCRATCH_MNT || _fail "mount failed" +fi blksize=$(_get_block_size "$SCRATCH_MNT")
tests/xfs/1891 new file +128 -0
128 lines not on this page · raw message
tests/xfs/1891.out new file +147 -0
147 lines not on this page · raw message
Re: [PATCH 2/4] xfs: test persistent quota flags
Looks good:
PATCH 3/4 xfs: fix quota detection in fuzz tests
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
With metadir, quota options persist until they are changed by mount options. Therefore, we can set the quota flags in MKFS_OPTIONS and needn't supply them in MOUNT_OPTIONS. Unfortunately, this means that we cannot grep the MOUNT_OPTIONS anymore; we must mount the fs and run src/feature to determine if quotas are enabled.
--- tests/xfs/425 | 5 ++++- tests/xfs/426 | 5 ++++- tests/xfs/427 | 5 ++++- tests/xfs/428 | 5 ++++- tests/xfs/429 | 5 ++++- tests/xfs/430 | 5 ++++- tests/xfs/487 | 5 ++++- tests/xfs/488 | 5 ++++- tests/xfs/489 | 5 ++++- tests/xfs/779 | 5 ++++- tests/xfs/780 | 5 ++++- tests/xfs/781 | 5 ++++- 12 files changed, 48 insertions(+), 12 deletions(-)
tests/xfs/425 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'usrquota' || _notrun "user quota disabled" + +_scratch_mount +$here/src/feature -U $SCRATCH_DEV || _notrun "user quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/426 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'usrquota' || _notrun "user quota disabled" + +_scratch_mount +$here/src/feature -U $SCRATCH_DEV || _notrun "user quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/427 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'grpquota' || _notrun "group quota disabled" + +_scratch_mount +$here/src/feature -G $SCRATCH_DEV || _notrun "group quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/428 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'grpquota' || _notrun "group quota disabled" + +_scratch_mount +$here/src/feature -G $SCRATCH_DEV || _notrun "group quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/429 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'prjquota' || _notrun "project quota disabled" + +_scratch_mount +$here/src/feature -P $SCRATCH_DEV || _notrun "project quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/430 +4 -1
@@ -23,7 +23,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'prjquota' || _notrun "project quota disabled" + +_scratch_mount +$here/src/feature -P $SCRATCH_DEV || _notrun "project quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/487 +4 -1
@@ -24,7 +24,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'usrquota' || _notrun "user quota disabled" + +_scratch_mount +$here/src/feature -U $SCRATCH_DEV || _notrun "user quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/488 +4 -1
@@ -24,7 +24,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'grpquota' || _notrun "group quota disabled" + +_scratch_mount +$here/src/feature -G $SCRATCH_DEV || _notrun "group quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/489 +4 -1
@@ -24,7 +24,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'prjquota' || _notrun "project quota disabled" + +_scratch_mount +$here/src/feature -P $SCRATCH_DEV || _notrun "project quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/779 +4 -1
@@ -25,7 +25,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'usrquota' || _notrun "user quota disabled" + +_scratch_mount +$here/src/feature -U $SCRATCH_DEV || _notrunn "user quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/780 +4 -1
@@ -25,7 +25,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'grpquota' || _notrun "group quota disabled" + +_scratch_mount +$here/src/feature -G $SCRATCH_DEV || _notrun "group quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
tests/xfs/781 +4 -1
@@ -25,7 +25,10 @@ _require_quota echo "Format and populate" _scratch_populate_cached nofill > $seqres.full 2>&1 -echo "${MOUNT_OPTIONS}" | grep -q 'prjquota' || _notrun "project quota disabled" + +_scratch_mount +$here/src/feature -P $SCRATCH_DEV || _notrun "project quota disabled" +_scratch_unmount _scratch_xfs_set_quota_fuzz_ids
Re: [PATCH 3/4] xfs: fix quota detection in fuzz tests
Looks good:
PATCH 4/4 xfs: fix tests for persistent qflags
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Fix the tests that now break with persistent quota flags.
---
common/quota | 1 +
common/rc | 1 +
common/xfs | 3 +++
tests/xfs/007 | 2 +-
tests/xfs/096 | 1 +
tests/xfs/096.out | 2 +-
tests/xfs/106 | 2 +-
tests/xfs/116 | 13 ++++++++++++-
tests/xfs/116.cfg | 1 +
tests/xfs/116.out.default | 0
tests/xfs/116.out.metadir | 3 +++
tests/xfs/152 | 2 +-
tests/xfs/263 | 1 +
tests/xfs/263.out | 2 +-
14 files changed, 28 insertions(+), 6 deletions(-)
create mode 100644 tests/xfs/116.cfg
rename tests/xfs/{116.out => 116.out.default} (100%)
create mode 100644 tests/xfs/116.out.metadircommon/quota +1 -0
@@ -312,6 +312,7 @@ _qmount_option() -e 's/grpjquota=[^, ]*/QUOTA/g' \ -e 's/\bpquota/QUOTA/g' \ -e 's/prjquota/QUOTA/g' \ + -e 's/noquota/QUOTA/g' \ -e 's/quota/QUOTA/g' \ -e 's/uqnoenforce/QUOTA/g' \ -e 's/gqnoenforce/QUOTA/g' \
common/rc +1 -0
@@ -3731,6 +3731,7 @@ _get_os_name() _link_out_file_named() { test -n "$seqfull" || _fail "need to set seqfull" + test -r "$seqfull.cfg" || _fail "need $seqfull.cfg" local features=$2 local suffix=$(FEATURES="$features" perl -e '
common/xfs +3 -0
@@ -1704,6 +1704,9 @@ _xfs_filter_mkfs() print STDERR "ldev=\"$1\"\nlbsize=$2\nlblocks=$3\nlversion=$4\n"; print STDOUT "log =LDEV bsize=XXX blocks=XXX\n"; } + if (/^\s+=\s+exchange=(\d+)\s+metadir=(\d+)/) { + print STDERR "exchange=$1\nmetadir=$2\n\n"; + } if (/^\s+=\s+sectsz=(\d+)\s+sunit=(\d+) blks/) { print STDERR "logsectsz=$1\nlogsunit=$2\n\n"; }
tests/xfs/007 +1 -1
@@ -47,7 +47,7 @@ do_test() # This takes care of newer kernels where quotaoff clears the superblock # quota enforcement flags but doesn't shut down accounting. _scratch_unmount - _qmount_option "" + _qmount_option "noquota" _scratch_mount rm_commands=(-x -c "remove -$off_opts")
tests/xfs/096 +1 -0
@@ -28,6 +28,7 @@ function option_string() if [ "$((VAL & 4))" -ne "0" ]; then OPT=prjquota,${OPT}; fi; if [ "$((VAL & 2))" -ne "0" ]; then OPT=grpquota,${OPT}; fi; if [ "$((VAL & 1))" -ne "0" ]; then OPT=usrquota,${OPT}; fi; + if [ "$VAL" = "0" ]; then OPT=noquota; fi; echo $OPT }
tests/xfs/096.out +1 -1
@@ -1,5 +1,5 @@ QA output created by 096 -== Options: rw == +== Options: noquota == == Options: usrquota,rw == User quota state on SCRATCH_MNT (SCRATCH_DEV) Accounting: ON
tests/xfs/106 +1 -1
@@ -155,7 +155,7 @@ test_off() { echo "turning quota off by remounting" _scratch_unmount - _qmount_option "" + _qmount_option "noquota" _qmount }
tests/xfs/116 +12 -1
@@ -23,7 +23,18 @@ _require_xfs_quota # Only mount with the quota options we specify below _qmount_option "defaults" -_scratch_mkfs >/dev/null 2>&1 +_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs >/dev/null +. $tmp.mkfs +cat $tmp.mkfs >> $seqres.full + +# link correct .out file, see $seqfull.cfg +seqfull=$0 +if [ "$metadir" = 1 ]; then + _link_out_file_named $seqfull.out "metadir" +else + _link_out_file_named $seqfull.out +fi + _scratch_mount "-o uquota" _scratch_unmount _scratch_xfs_db -r -c sb -c print | grep qflags
tests/xfs/116.cfg new file +1 -0
@@ -0,0 +1 @@ +metadir: metadir
tests/xfs/116.out.default renamed from tests/xfs/116.out +0 -0
tests/xfs/116.out.metadir new file +3 -0
@@ -0,0 +1,3 @@ +QA output created by 116 +qflags = 0x7 +qflags = 0x7
tests/xfs/152 +1 -1
@@ -194,7 +194,7 @@ test_off() { echo "checking off command (type=$type)" _scratch_unmount - _qmount_option "" + _qmount_option "noquota" _qmount }
tests/xfs/263 +1 -0
@@ -27,6 +27,7 @@ function option_string() if [ "$((VAL & 4))" -ne "0" ]; then OPT=prjquota,${OPT}; fi; if [ "$((VAL & 2))" -ne "0" ]; then OPT=grpquota,${OPT}; fi; if [ "$((VAL & 1))" -ne "0" ]; then OPT=usrquota,${OPT}; fi; + if [ "$VAL" = "0" ]; then OPT=noquota; fi; echo $OPT }
tests/xfs/263.out +1 -1
@@ -1,5 +1,5 @@ QA output created by 263 -== Options: rw == +== Options: noquota == == Options: usrquota,rw == User quota state on SCRATCH_MNT (SCRATCH_DEV) Accounting: ON
Re: [PATCH 4/4] xfs: fix tests for persistent qflags
Looks good:
Re: [PATCHSET v6.4 07/12] fstests: store quota files in the metadir
In reply to Darrick J. WongQuoted 6 lines · Darrick J. Wong
Hi all,
Store the quota files in the metadata directory tree instead of the superblock. Since we're introducing a new incompat feature flag, let's also make the mount process bring up quotas in whatever state they were when the filesystem was last unmounted, instead of requiring sysadmins to remember that themselves.
This sentence looks like it was erroneously copied from the kernel series.
Re: [PATCHSET v6.4 07/12] fstests: store quota files in the metadir
Quoted 10 lines · Christoph Hellwig
Quoted 6 lines · Darrick J. Wong
Hi all,
Store the quota files in the metadata directory tree instead of the superblock. Since we're introducing a new incompat feature flag, let's also make the mount process bring up quotas in whatever state they were when the filesystem was last unmounted, instead of requiring sysadmins to remember that themselves.
This sentence looks like it was erroneously copied from the kernel series.
Oops, yeah. Will change it to:
"These are the fstests adjustments to quota handling in metadir filesystems, which means finding the quota inodes through paths, and adjusting to quota options being persistent."
--D
PATCH 8/12 fstests: enable quota for realtime volumes
In reply to Darrick J. WongHi all,
The sole patch in this series sets up functional testing for quota on the xfs realtime device.
If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=realtime-quotas
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=realtime-quotas
fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=realtime-quotas
---
Commits in this patchset:
* common: enable testing of realtime quota when supported
* xfs: fix quota tests to adapt to realtime quota
* xfs: regression testing of quota on the realtime device
--- common/populate | 10 ++- common/quota | 45 ++++++++----- common/xfs | 62 +++++++++++++++++++ tests/generic/219 | 1 tests/generic/230 | 1 tests/generic/305 | 1 tests/generic/326 | 1 tests/generic/327 | 1 tests/generic/328 | 1 tests/generic/566 | 4 + tests/generic/587 | 1 tests/generic/603 | 1 tests/generic/691 | 2 + tests/generic/710 | 4 + tests/xfs/050 | 2 + tests/xfs/096 | 4 + tests/xfs/106 | 1 tests/xfs/108 | 2 + tests/xfs/152 | 1 tests/xfs/153 | 2 + tests/xfs/161 | 1 tests/xfs/1858 | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/1858.out | 47 ++++++++++++++ tests/xfs/213 | 1 tests/xfs/214 | 1 tests/xfs/220 | 2 + tests/xfs/299 | 2 + tests/xfs/330 | 1 tests/xfs/434 | 1 tests/xfs/435 | 1 tests/xfs/440 | 3 + tests/xfs/441 | 1 tests/xfs/442 | 1 tests/xfs/508 | 2 + tests/xfs/511 | 10 +++ tests/xfs/720 | 5 + 36 files changed, 377 insertions(+), 23 deletions(-) create mode 100755 tests/xfs/1858 create mode 100644 tests/xfs/1858.out
PATCH 1/3 common: enable testing of realtime quota when supported
From: Darrick J. Wong <[email protected]>
If the kernel advertises realtime quota support, test it.
However, this has a plot twist -- because rt quota only works if the xfs is formatted with rtgroups, we have to mount a filesystem to see if rtquota is actually supported. Since it's time consuming to format and mount the scratch filesystem, we'll assume that the test and scratch fses have the same support.
This will cause problems if one sets SCRATCH_RTDEV but not TEST_RTDEV.
--- common/populate | 10 ++++++--- common/quota | 20 +++--------------- common/xfs | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 20 deletions(-)
common/populate +7 -3
@@ -245,9 +245,13 @@ _populate_xfs_qmount_option() if [ ! -f /proc/fs/xfs/xqmstat ]; then # No quota support return - elif [ "${USE_EXTERNAL}" = "yes" ] && [ ! -z "${SCRATCH_RTDEV}" ]; then - # Quotas not supported on rt filesystems - return + elif [ "${USE_EXTERNAL}" = "yes" ] && [ -n "${SCRATCH_RTDEV}" ]; then + # We have not mounted the scratch fs, so we can only check + # rtquota support from the test fs. Skip the quota options if + # the test fs does not have an rt section. + test -n "${TEST_RTDEV}" || return + _xfs_kmod_supports_rtquota || return + _xfs_test_supports_rtquota || return elif [ -z "${XFS_QUOTA_PROG}" ]; then # xfs quota tools not installed return
common/quota +3 -17
@@ -23,12 +23,7 @@ _require_quota() if [ ! -f /proc/fs/xfs/xqmstat ]; then _notrun "Installed kernel does not support XFS quotas" fi - if [ "$USE_EXTERNAL" = yes -a ! -z "$TEST_RTDEV" ]; then - _notrun "Quotas not supported on realtime test device" - fi - if [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ]; then - _notrun "Quotas not supported on realtime scratch device" - fi + _require_xfs_rtquota_if_rtdev ;; *) _notrun "disk quotas not supported by this filesystem type: $FSTYP"
@@ -44,12 +39,7 @@ _require_xfs_quota() { $here/src/feature -q $TEST_DEV [ $? -ne 0 ] && _notrun "Installed kernel does not support XFS quota" - if [ "$USE_EXTERNAL" = yes -a ! -z "$TEST_RTDEV" ]; then - _notrun "Quotas not supported on realtime test device" - fi - if [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ]; then - _notrun "Quotas not supported on realtime scratch device" - fi + _require_xfs_rtquota_if_rtdev [ -n "$XFS_QUOTA_PROG" ] || _notrun "XFS quota user tools not installed" }
@@ -153,11 +143,7 @@ _require_prjquota() fi $here/src/feature -P $_dev [ $? -ne 0 ] && _notrun "Installed kernel does not support project quotas" - if [ "$USE_EXTERNAL" = yes ]; then - if [ -n "$TEST_RTDEV" -o -n "$SCRATCH_RTDEV" ]; then - _notrun "Project quotas not supported on realtime filesystem" - fi - fi + test "$FSTYP" = "xfs" && _require_xfs_rtquota_if_rtdev } #
common/xfs +62 -0
65 lines not on this page · raw message
Re: [PATCH 1/3] common: enable testing of realtime quota when supported
Looks good:
PATCH 2/3 xfs: fix quota tests to adapt to realtime quota
In reply to Darrick J. WongFrom: Darrick J. Wong <[email protected]>
Fix or limit the scope of tests so that we can turn on testing for realtime quotas.
--- common/quota | 25 +++++++++++++++++++++++++ tests/generic/219 | 1 + tests/generic/230 | 1 + tests/generic/305 | 1 + tests/generic/326 | 1 + tests/generic/327 | 1 + tests/generic/328 | 1 + tests/generic/566 | 4 +++- tests/generic/587 | 1 + tests/generic/603 | 1 + tests/generic/691 | 2 ++ tests/generic/710 | 4 +++- tests/xfs/050 | 2 ++ tests/xfs/096 | 4 ++++ tests/xfs/106 | 1 + tests/xfs/108 | 2 ++ tests/xfs/152 | 1 + tests/xfs/153 | 2 ++ tests/xfs/161 | 1 + tests/xfs/213 | 1 + tests/xfs/214 | 1 + tests/xfs/220 | 2 ++ tests/xfs/299 | 2 ++ tests/xfs/330 | 1 + tests/xfs/434 | 1 + tests/xfs/435 | 1 + tests/xfs/440 | 3 +++ tests/xfs/441 | 1 + tests/xfs/442 | 1 + tests/xfs/508 | 2 ++ tests/xfs/511 | 10 +++++++++- tests/xfs/720 | 5 +++++ 32 files changed, 84 insertions(+), 3 deletions(-)
common/quota +25 -0
@@ -436,5 +436,30 @@ _restore_project_quota() sed -i "/:$id$/d" /etc/projid } +# Reconfigure the mounted fs as needed so that we can test the VFS quota +# utilities. They do not support realtime block limits or reporting, so +# we forcibly inhibit rtinherit on XFS filesystems. +_force_vfs_quota_testing() +{ + local mount="${1:-$TEST_DIR}" + + test "$FSTYP" = "xfs" && _xfs_force_bdev data "$mount" +} + +# Does the mounted scratch filesystem have a realtime volume where quota works? +# Returns nonzero if any of the above are false. +_scratch_supports_rtquota() +{ + case "$FSTYP" in + "xfs") + if [ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_RTDEV" ]; then + _xfs_scratch_supports_rtquota + return + fi + esac + + return 1 +} + # make sure this script returns success /bin/true
tests/generic/219 +1 -0
@@ -92,6 +92,7 @@ test_accounting() _scratch_unmount 2>/dev/null _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" +_force_vfs_quota_testing $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2>/dev/null quotaon $SCRATCH_MNT 2>/dev/null _scratch_unmount
tests/generic/230 +1 -0
@@ -100,6 +100,7 @@ _qmount_option 'defaults' _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" +_force_vfs_quota_testing $SCRATCH_MNT BLOCK_SIZE=$(_get_file_block_size $SCRATCH_MNT) quotacheck -u -g $SCRATCH_MNT 2>/dev/null quotaon $SCRATCH_MNT 2>/dev/null
tests/generic/305 +1 -0
@@ -26,6 +26,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/generic/326 +1 -0
@@ -27,6 +27,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/generic/327 +1 -0
@@ -25,6 +25,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/generic/328 +1 -0
@@ -26,6 +26,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/generic/566 +3 -1
@@ -35,7 +35,9 @@ _qmount dir="$SCRATCH_MNT/dummy" mkdir -p $dir chown $qa_user $dir -$XFS_QUOTA_PROG -x -c "limit -g bsoft=100k bhard=100k $qa_user" $SCRATCH_MNT +_scratch_supports_rtquota && \ + extra_limits="rtbsoft=100k rtbhard=100k" +$XFS_QUOTA_PROG -x -c "limit -g bsoft=100k bhard=100k $extra_limits $qa_user" $SCRATCH_MNT $XFS_IO_PROG -f -c 'pwrite -S 0x58 0 1m' $dir/foo >> $seqres.full chown $qa_user "${dir}/foo"
tests/generic/587 +1 -0
@@ -56,6 +56,7 @@ _scratch_mkfs > $seqres.full # This test must have user quota enabled _qmount_option usrquota _qmount >> $seqres.full +_force_vfs_quota_testing $SCRATCH_MNT testfile=$SCRATCH_MNT/test-$seq touch $testfile
tests/generic/603 +1 -0
@@ -120,6 +120,7 @@ _scratch_mkfs >$seqres.full 2>&1 _scratch_enable_pquota _qmount_option "usrquota,grpquota,prjquota" _qmount +_force_vfs_quota_testing $SCRATCH_MNT _require_prjquota $SCRATCH_DEV BLOCK_SIZE=$(_get_file_block_size $SCRATCH_MNT) rm -rf $SCRATCH_MNT/t
tests/generic/691 +2 -0
@@ -39,6 +39,7 @@ _scratch_mkfs >$seqres.full 2>&1 _scratch_enable_pquota _qmount_option "prjquota" _qmount +_force_vfs_quota_testing $SCRATCH_MNT _require_prjquota $SCRATCH_DEV filter_quota()
@@ -66,6 +67,7 @@ exercise() _scratch_enable_pquota fi _qmount + _force_vfs_quota_testing $SCRATCH_MNT if [ "$type" = "P" ];then _create_project_quota $SCRATCH_MNT/t $projid $qa_user file=$SCRATCH_MNT/t/testfile
tests/generic/710 +3 -1
@@ -32,7 +32,9 @@ $XFS_IO_PROG -f -c 'pwrite -S 0x59 0 64k -b 64k' -c 'truncate 256k' $SCRATCH_MNT chown nobody $SCRATCH_MNT/b # Set up a quota limit -$XFS_QUOTA_PROG -x -c "limit -u bhard=70k nobody" $SCRATCH_MNT +_scratch_supports_rtquota && \ + extra_limits="rtbhard=70k" +$XFS_QUOTA_PROG -x -c "limit -u bhard=70k $extra_limits nobody" $SCRATCH_MNT echo before exchangerange >> $seqres.full $XFS_QUOTA_PROG -x -c 'report -a' $SCRATCH_MNT >> $seqres.full
tests/xfs/050 +2 -0
@@ -33,6 +33,7 @@ _scratch_mkfs >/dev/null 2>&1 orig_mntopts="$MOUNT_OPTIONS" _qmount_option "uquota" _scratch_mount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage bsize=$(_get_file_block_size $SCRATCH_MNT) # needs quota enabled to compute the number of metadata dir files HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT)
@@ -75,6 +76,7 @@ _exercise() . $tmp.mkfs _qmount + _force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage # Figure out whether we're doing large allocations # (bail out if they're so large they stuff the test up)
tests/xfs/096 +4 -0
@@ -20,6 +20,10 @@ _require_scratch _require_xfs_quota _require_xfs_nocrc +if [ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_RTDEV" ]; then + _notrun "Realtime quotas not supported on V4 filesystems" +fi + function option_string() { VAL=$1
tests/xfs/106 +1 -0
@@ -195,6 +195,7 @@ test_xfs_quota() { _qmount_option $1 _qmount + _force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage if [ $type == "p" ]; then _require_prjquota $SCRATCH_DEV
tests/xfs/108 +2 -0
@@ -63,6 +63,7 @@ test_accounting() export MOUNT_OPTIONS="-opquota" _scratch_mkfs_xfs >> $seqres.full _qmount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage _require_prjquota $SCRATCH_DEV rm -f $tmp.projects $seqres.full
@@ -70,6 +71,7 @@ _scratch_unmount 2>/dev/null _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs cat $tmp.mkfs >>$seqres.full _scratch_mount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage uid=1 gid=2
tests/xfs/152 +1 -0
@@ -240,6 +240,7 @@ qmount_idmapped() { wipe_mounts _try_scratch_mount || _fail "qmount failed" + _force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage mkdir -p "${SCRATCH_MNT}/unmapped" mkdir -p "${SCRATCH_MNT}/idmapped"
tests/xfs/153 +2 -0
@@ -38,6 +38,7 @@ _scratch_mkfs >/dev/null 2>&1 orig_mntopts="$MOUNT_OPTIONS" _qmount_option "uquota" _scratch_mount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage bsize=$(_get_file_block_size $SCRATCH_MNT) # needs quota enabled to compute the number of metadata dir files HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT)
@@ -80,6 +81,7 @@ run_tests() . $tmp.mkfs _qmount + _force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage # Figure out whether we're doing large allocations # (bail out if they're so large they stuff the test up)
tests/xfs/161 +1 -0
@@ -36,6 +36,7 @@ _qmount_option "usrquota" _scratch_xfs_db -c 'version' -c 'sb 0' -c 'p' >> $seqres.full _scratch_mount >> $seqres.full +_xfs_force_bdev data $SCRATCH_MNT min_blksz=65536 file_blksz=$(_get_file_block_size "$SCRATCH_MNT")
tests/xfs/213 +1 -0
@@ -28,6 +28,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT # repquota quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/xfs/214 +1 -0
@@ -29,6 +29,7 @@ echo "Format and mount" _scratch_mkfs > $seqres.full 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT # repquota quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/xfs/220 +2 -0
@@ -37,6 +37,7 @@ _scratch_mkfs_xfs >/dev/null 2>&1 # mount with quotas enabled _scratch_mount -o uquota +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage # turn off quota $XFS_QUOTA_PROG -x -c off $SCRATCH_DEV
@@ -49,6 +50,7 @@ _scratch_mkfs_xfs >/dev/null 2>&1 # mount with quotas enabled _scratch_mount -o uquota +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage # turn off quota accounting... $XFS_QUOTA_PROG -x -c off $SCRATCH_DEV
tests/xfs/299 +2 -0
@@ -153,6 +153,7 @@ projid_file="$tmp.projid" echo "*** user, group, and project" _qmount_option "uquota,gquota,pquota" _qmount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage bsize=$(_get_file_block_size $SCRATCH_MNT) HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT)
@@ -180,6 +181,7 @@ cat $tmp.mkfs >>$seqres.full echo "*** uqnoenforce, gqnoenforce, and pqnoenforce" _qmount_option "uqnoenforce,gqnoenforce,pqnoenforce" _qmount +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage _exercise uno _exercise gno _exercise pno
tests/xfs/330 +1 -0
@@ -36,6 +36,7 @@ echo "Format and mount" _scratch_mkfs > "$seqres.full" 2>&1 export MOUNT_OPTIONS="-o usrquota,grpquota $MOUNT_OPTIONS" _scratch_mount >> "$seqres.full" 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT # golden output encodes block usage HIDDEN_QUOTA_FILES=$(_xfs_calc_hidden_quota_files $SCRATCH_MNT) quotacheck -u -g $SCRATCH_MNT 2> /dev/null quotaon $SCRATCH_MNT 2> /dev/null
tests/xfs/434 +1 -0
@@ -44,6 +44,7 @@ _scratch_mount -o noquota >> "$seqres.full" 2>&1 testdir="$SCRATCH_MNT/test-$seq" blksz=65536 +_require_congruent_file_oplen $SCRATCH_MNT $blksz blks=3 mkdir "$testdir"
tests/xfs/435 +1 -0
@@ -35,6 +35,7 @@ _scratch_mount -o quota >> "$seqres.full" 2>&1 testdir="$SCRATCH_MNT/test-$seq" blksz=65536 +_require_congruent_file_oplen $SCRATCH_MNT $blksz blks=3 mkdir "$testdir"
tests/xfs/440 +3 -0
@@ -32,6 +32,9 @@ echo "Format and mount" _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount "-o usrquota,grpquota" >> "$seqres.full" 2>&1 +# Make sure all our files are on the data device +_xfs_force_bdev data $SCRATCH_MNT + echo "Create files" $XFS_IO_PROG -c "cowextsize 1m" $SCRATCH_MNT touch $SCRATCH_MNT/a $SCRATCH_MNT/force_fsgqa
tests/xfs/441 +1 -0
@@ -31,6 +31,7 @@ check_quota() { echo "Format and mount (noquota)" _scratch_mkfs > "$seqres.full" 2>&1 _scratch_mount "-o noquota" >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT # _check_quota_usage uses repquota echo "Create files" _pwrite_byte 0x58 0 1m $SCRATCH_MNT/a >> $seqres.full
tests/xfs/442 +1 -0
@@ -60,6 +60,7 @@ _qmount_option "usrquota,grpquota,prjquota" # tests now have separate faster-running regression tests. _scratch_mkfs_sized $((1600 * 1048576)) > $seqres.full 2>&1 _scratch_mount >> $seqres.full 2>&1 +_force_vfs_quota_testing $SCRATCH_MNT # _check_quota_usage uses repquota nr_cpus=$((LOAD_FACTOR * 4)) nr_ops=$((25000 * TIME_FACTOR))
tests/xfs/508 +2 -0
@@ -57,6 +57,8 @@ _require_prjquota $SCRATCH_DEV mkdir $SCRATCH_MNT/dir $QUOTA_CMD -x -c 'project -s test' $SCRATCH_MNT >>$seqres.full 2>&1 $QUOTA_CMD -x -c 'limit -p bsoft=10m bhard=20m test' $SCRATCH_MNT +_scratch_supports_rtquota && \ + $QUOTA_CMD -x -c 'limit -p rtbsoft=10m rtbhard=20m test' $SCRATCH_MNT # test the Project inheritance bit is a directory only flag, and it's set on # directory by default. Expect no complain about "project inheritance flag is
tests/xfs/511 +9 -1
@@ -38,11 +38,19 @@ $XFS_IO_PROG -f -c "pwrite 0 65536" -c syncfs $SCRATCH_MNT/t/file >>$seqres.full quota_cmd="$XFS_QUOTA_PROG -x" $quota_cmd -c "project -s -p $SCRATCH_MNT/t 42" $SCRATCH_MNT >/dev/null 2>&1 $quota_cmd -c 'limit -p isoft=53 bsoft=100m 42' $SCRATCH_MNT +_scratch_supports_rtquota && \ + $quota_cmd -c 'limit -p rtbsoft=100m 42' $SCRATCH_MNT + +# The golden output for this test was written with the assumption that the file +# allocation unit divides 64k evenly, so the file block usage would be exactly +# 64k. On realtime filesystems this isn't always true (e.g. -rextsize=28k) so +# we'll accept the space usage being the same as what du reports for the file. +file_nblocks=$(du -B 1024 $SCRATCH_MNT/t/file | awk '{print $1}') # The itotal and size should be 53 and 102400(k), as above project quota limit. # The isued and used should be 2 and 64(k), as this case takes. df -k --output=file,itotal,iused,size,used $SCRATCH_MNT/t | \ - _filter_scratch | _filter_spaces + _filter_scratch | _filter_spaces | sed -e "s|$file_nblocks$|64|" # success, all done status=0
tests/xfs/720 +5 -0
@@ -30,6 +30,11 @@ _scratch_mkfs > "$seqres.full" 2>&1 _qmount_option usrquota _qmount +# This test tries to exceed quota limits by creating an N>2 block bmbt, setting +# the block limit to 2N, and rebuilding the bmbt. Hence we must force the +# files to be created on the data device. +_xfs_force_bdev data $SCRATCH_MNT + blocksize=$(_get_block_size $SCRATCH_MNT) alloc_unit=$(_get_file_block_size $SCRATCH_MNT)
Re: [PATCH 2/3] xfs: fix quota tests to adapt to realtime quota
Looks good: