]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs: add tests that exercise raid profiles to the raid group
authorFilipe Manana <fdmanana@suse.com>
Thu, 15 May 2025 11:50:07 +0000 (12:50 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 23 May 2025 15:23:41 +0000 (23:23 +0800)
Many tests (in fact most) that exercise one or more raid profiles are not
tagged in the raid group. Tag them with the raid group so that we can
easily run only raid test with "./check -g raid" when testing changes that
affect only raid code.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
51 files changed:
tests/btrfs/003
tests/btrfs/011
tests/btrfs/020
tests/btrfs/023
tests/btrfs/027
tests/btrfs/060
tests/btrfs/061
tests/btrfs/062
tests/btrfs/063
tests/btrfs/064
tests/btrfs/065
tests/btrfs/066
tests/btrfs/067
tests/btrfs/068
tests/btrfs/069
tests/btrfs/070
tests/btrfs/071
tests/btrfs/072
tests/btrfs/073
tests/btrfs/074
tests/btrfs/100
tests/btrfs/101
tests/btrfs/124
tests/btrfs/125
tests/btrfs/140
tests/btrfs/141
tests/btrfs/142
tests/btrfs/143
tests/btrfs/146
tests/btrfs/148
tests/btrfs/150
tests/btrfs/151
tests/btrfs/160
tests/btrfs/175
tests/btrfs/184
tests/btrfs/195
tests/btrfs/197
tests/btrfs/198
tests/btrfs/223
tests/btrfs/242
tests/btrfs/249
tests/btrfs/254
tests/btrfs/265
tests/btrfs/266
tests/btrfs/267
tests/btrfs/268
tests/btrfs/269
tests/btrfs/270
tests/btrfs/286
tests/btrfs/296
tests/btrfs/335

index ecefdd14bdec50470406cc7030416dc3cabb9e50..d9b3b8547c130ae470f59d6d66bdeeaebfa7fa0a 100755 (executable)
@@ -7,7 +7,7 @@
 # btrfs vol tests
 #
 . ./common/preamble
-_begin_fstest auto replace volume balance
+_begin_fstest auto replace volume balance raid
 
 dev_removed=0
 removed_dev_htl=""
index c46f2cc46f9deea0be1bf1105d833d54a61ac29f..822ce82e97d44a9bfc7dba63408962502d4648d9 100755 (executable)
@@ -20,7 +20,7 @@
 # performed, a btrfsck run, and finally the filesystem is remounted.
 #
 . ./common/preamble
-_begin_fstest auto replace volume scrub
+_begin_fstest auto replace volume scrub raid
 
 noise_pid=0
 
index 7e5c6fd7b25229f84e2bc40b70f3a7d6c84191f2..4e3e2cc4fdd21f4f340edf7c7450bdc7e8404206 100755 (executable)
@@ -10,7 +10,7 @@
 # bbb651e Btrfs: don't allow the replace procedure on read only filesystems
 #
 . ./common/preamble
-_begin_fstest auto quick replace volume
+_begin_fstest auto quick replace volume raid
 
 # Override the default cleanup function.
 _cleanup()
index f03bcbb98774743eadd90d9956af0dc293344e45..52fe0dfb0f7c4a91196ffd312a9352dc126a0552 100755 (executable)
@@ -9,7 +9,7 @@
 # The test aims to create the raid and verify that its created
 #
 . ./common/preamble
-_begin_fstest auto
+_begin_fstest auto raid
 
 . ./common/filter
 
index 2828777164b024d9a6552999175296b5019b087c..3a35d8f3ee6ae52f97acdbebe973eb5a294a5696 100755 (executable)
@@ -7,7 +7,7 @@
 # Test replace of a missing device on various data and metadata profiles.
 #
 . ./common/preamble
-_begin_fstest auto replace volume scrub
+_begin_fstest auto replace volume scrub raid
 
 . ./common/filter
 
index 21f15ec8973baf3af83f39af57f0ecc8ed1bf3a8..d548612209f56c14add15fdafe1fd6b745d1d1ab 100755 (executable)
@@ -8,7 +8,7 @@
 # with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto balance subvol scrub
+_begin_fstest auto balance subvol scrub raid
 
 _cleanup()
 {
index 5a2bd709061f09e2f562b519a945ea6480fe3b22..5b614420ce4bf85c8829ffd9013e32bc6ebec556 100755 (executable)
@@ -8,7 +8,7 @@
 # running in background.
 #
 . ./common/preamble
-_begin_fstest auto balance scrub
+_begin_fstest auto balance scrub raid
 
 _cleanup()
 {
index a25d6d117dcf86d7c10f799efd47f41cabacaf58..9461d790452e89eb24e3252c84c4a25b56b9ddc4 100755 (executable)
@@ -8,7 +8,7 @@
 # running in background.
 #
 . ./common/preamble
-_begin_fstest auto balance defrag compress scrub
+_begin_fstest auto balance defrag compress scrub raid
 
 _cleanup()
 {
index 7d51ff554bfe1bc9523094aa5175d844c5318b85..719d14d305ee1230e1e834d55babd77e6ed46521 100755 (executable)
@@ -8,7 +8,7 @@
 # simultaneously, with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto balance remount compress scrub
+_begin_fstest auto balance remount compress scrub raid
 
 _cleanup()
 {
index 3b98f327e5b1b3fd4c7427ff46a7faf7f0cb3e8f..e0cae009e24016a3888a4c44afc4088529dbfa18 100755 (executable)
@@ -10,7 +10,7 @@
 # run simultaneously. One of them is expected to fail when the other is running.
 
 . ./common/preamble
-_begin_fstest auto balance replace volume scrub
+_begin_fstest auto balance replace volume scrub raid
 
 _cleanup()
 {
index f0c9ffb043a0a502d2de9d5f028fede1bd83dfdf..0f069afa7a0f8eaee1cc6c2f8ac689228cc63fec 100755 (executable)
@@ -8,7 +8,7 @@
 # operation simultaneously, with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto subvol replace volume scrub
+_begin_fstest auto subvol replace volume scrub raid
 
 _cleanup()
 {
index e3a083b94ad23f89cb141b6e734353413f6214cb..53caabf200a8c8d1d635fc8900ad13e54fd8ebe4 100755 (executable)
@@ -8,7 +8,7 @@
 # operation simultaneously, with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto subvol scrub
+_begin_fstest auto subvol scrub raid
 
 _cleanup()
 {
index 768993116bd6de0363f439327b0fe775ce02fc93..e080549fdef937f64b450a9426b39cb11762777c 100755 (executable)
@@ -8,7 +8,7 @@
 # operation simultaneously, with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto subvol defrag compress scrub
+_begin_fstest auto subvol defrag compress scrub raid
 
 _cleanup()
 {
index 3d221259fa8cc45ea63065e364f6281eadfcd5b8..311ad23ee553b05d4b58660b19684319a0d81155 100755 (executable)
@@ -9,7 +9,7 @@
 # in background.
 #
 . ./common/preamble
-_begin_fstest auto subvol remount compress scrub
+_begin_fstest auto subvol remount compress scrub raid
 
 _cleanup()
 {
index 7954e80a8c3ab3841a28f83ad2add25e4a21b4af..b99d567c8903f2dbbf065ea0c5abd64faade3fc5 100755 (executable)
@@ -8,7 +8,7 @@
 # running in background.
 #
 . ./common/preamble
-_begin_fstest auto replace scrub volume
+_begin_fstest auto replace scrub volume raid
 
 _cleanup()
 {
index c183800349a71b84e9b15f4c0a3d658422771879..177a24ea953c7ab096bfd111c7849ffc854826a9 100755 (executable)
@@ -8,7 +8,7 @@
 # running in background.
 #
 . ./common/preamble
-_begin_fstest auto replace defrag compress volume scrub
+_begin_fstest auto replace defrag compress volume scrub raid
 
 _cleanup()
 {
index 5c2b725b01161951d3329b574e2d258134bbc8f4..161c570c272e549daf26f4b2be34a2394b728266 100755 (executable)
@@ -8,7 +8,7 @@
 # algorithms simultaneously with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto replace remount compress volume scrub
+_begin_fstest auto replace remount compress volume scrub raid
 
 _cleanup()
 {
index 3275088743823475b72b02cbe653309c846ae56a..02f34e3f387066686d233d50f248971035521557 100755 (executable)
@@ -8,7 +8,7 @@
 # running in background.
 #
 . ./common/preamble
-_begin_fstest auto scrub defrag compress
+_begin_fstest auto scrub defrag compress raid
 
 _cleanup()
 {
index b77e14c914b16786492958374e88ad1368229fd8..6154089b5f83fc9b633dfd46b3810a1519a1ad8e 100755 (executable)
@@ -8,7 +8,7 @@
 # simultaneously with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto scrub remount compress
+_begin_fstest auto scrub remount compress raid
 
 _cleanup()
 {
index a752707db54b5ac319ca2d53b54508a637c38bd4..6157bd15b6287631416e651c1282c6043c7935d9 100755 (executable)
@@ -8,7 +8,7 @@
 # simultaneously with fsstress running in background.
 #
 . ./common/preamble
-_begin_fstest auto defrag remount compress scrub
+_begin_fstest auto defrag remount compress scrub raid
 
 _cleanup()
 {
index a319c7bbb091459240bc2e342a1d7d951983e0a5..cbbc7da11d73420b951778af3a2f6221af61dbc4 100755 (executable)
@@ -8,7 +8,7 @@
 #
 #
 . ./common/preamble
-_begin_fstest auto replace volume eio
+_begin_fstest auto replace volume eio raid
 
 # Override the default cleanup function.
 _cleanup()
index cb14d6a0783e0e866a8fe1164c9cc5e5576a8e19..5f679ce7af924d923ac9b4a3c7811352bd73429a 100755 (executable)
@@ -8,7 +8,7 @@
 #
 #
 . ./common/preamble
-_begin_fstest auto replace volume eio
+_begin_fstest auto replace volume eio raid
 
 # Override the default cleanup function.
 _cleanup()
index af079c2864de8ee5c2c3d88538e1778a6aae3e52..f7cbefee5205d3bb71037eee63bb57a5ff312642 100755 (executable)
@@ -23,7 +23,7 @@
 # Verify if all three checkpoints match
 #
 . ./common/preamble
-_begin_fstest auto replace volume balance
+_begin_fstest auto replace volume balance raid
 
 # Override the default cleanup function.
 _cleanup()
index c8c0dd422f72b609acb8b3ce33a72c763b05285b..bd6d998d3156a120fd54cedaf846ada81e17379c 100755 (executable)
@@ -22,7 +22,7 @@
 # Verify if all three checkpoints match
 #
 . ./common/preamble
-_begin_fstest replace volume balance auto quick
+_begin_fstest replace volume balance auto quick raid
 
 # Override the default cleanup function.
 _cleanup()
index cb70f9676e1a6e37c2e2466cf3df5a5b98d94edd..affb9322051c9c5eb006073da3635a69afd78b0b 100755 (executable)
@@ -12,7 +12,7 @@
 #      commit 2e949b0a5592 ("Btrfs: fix invalid dereference in btrfs_retry_endio")
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair fiemap
+_begin_fstest auto quick read_repair fiemap raid
 
 . ./common/filter
 
index 4afd3304ee73e454f5f25daa3b8740e5d8ef1ed8..a6a05236bcb5adf8e6ed9dbd97e7c520558a3288 100755 (executable)
@@ -13,7 +13,7 @@
 #      Commit 9d0d1c8b1c9d ("Btrfs: bring back repair during read")
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index 0ab0f8012bad7461d287880faaf1827443dab106..af3666db68a31732b0b0b8fbc4f0f700bdbab000 100755 (executable)
@@ -13,7 +13,7 @@
 #      commit 97bf5a5589aa ("Btrfs: fix segmentation fault when doing dio read")
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 . ./common/dmdust
index 490f27b5b82f5e4c2cbf6f73d964f2ac5eb233a4..7e25af96cbd680d8fbde2900cf3a279ea494b7c0 100755 (executable)
@@ -20,7 +20,7 @@
 #      commit 9d0d1c8b1c9d ("Btrfs: bring back repair during read")
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 . ./common/dmdust
index c12437571e5469e33b91a3b579946e2a54803393..1cafbc2f2fadc761152368a9b7247e37e1940a10 100755 (executable)
@@ -10,7 +10,7 @@
 # Then fsync on all one last time and verify that all return 0.
 #
 . ./common/preamble
-_begin_fstest auto quick eio
+_begin_fstest auto quick eio raid
 
 # Override the default cleanup function.
 _cleanup()
index 3f651e54a353d15e5ddae5513aa563d63af4f1d5..746d9e8de9c172085a207b3951bfacbe12da06c8 100755 (executable)
@@ -7,7 +7,7 @@
 # Test that direct IO writes work on RAID5 and RAID6 filesystems.
 #
 . ./common/preamble
-_begin_fstest auto quick rw scrub
+_begin_fstest auto quick rw scrub raid
 
 . ./common/filter
 
index a37f252b311b066c0d0838db5f6db597a774b182..ad0b854fca4041986dfc8cba39ce057ffe4ca0e5 100755 (executable)
@@ -11,7 +11,7 @@
 #      Btrfs: fix kernel oops while reading compressed data
 #
 . ./common/preamble
-_begin_fstest auto quick dangerous read_repair compress
+_begin_fstest auto quick dangerous read_repair compress raid
 
 . ./common/filter
 . ./common/fail_make_request
index f635aa250d5cc16f66b744278573a8e941d163c2..32e06e87806ee75a8d5d5d7d018a6ad35035c0b5 100755 (executable)
@@ -11,7 +11,7 @@
 #      Btrfs: avoid losing data raid profile when deleting a device
 #
 . ./common/preamble
-_begin_fstest auto quick volume
+_begin_fstest auto quick volume raid
 
 . ./common/filter
 
index c4a01d3304264276c825db85889cc56e8edbfaec..eb6e74a306dba79ff71729bfa860c11634a702c4 100755 (executable)
@@ -9,7 +9,7 @@
 # then call fsync on it. Is the error reported?
 #
 . ./common/preamble
-_begin_fstest auto quick eio
+_begin_fstest auto quick eio raid
 
 # Override the default cleanup function.
 _cleanup()
index 2208d5f1c80060efb751411972b2e02c1049fc03..be40015159cd2db6fd7712bf55fc20a70a6243b2 100755 (executable)
@@ -7,7 +7,7 @@
 # Test swap file activation on multiple devices.
 #
 . ./common/preamble
-_begin_fstest auto quick swap volume
+_begin_fstest auto quick swap volume raid
 
 . ./common/filter
 
index 575807b0bf8f37d1b2081973ca65a0b78d167e9e..1e284e8feeadf90d641e9b221ba707567c06dd63 100755 (executable)
@@ -8,7 +8,7 @@
 # filesystem its superblock copies are correctly deleted
 #
 . ./common/preamble
-_begin_fstest auto quick volume
+_begin_fstest auto quick volume raid
 
 . ./common/filter
 
index 4dffddc1ac57c098544d3313cf9be8325008f693..8816459058ee7d8839ba65b9c1673603b7e6e8af 100755 (executable)
@@ -8,7 +8,7 @@
 # source profiles just rely on being able to read the data and metadata.
 #
 . ./common/preamble
-_begin_fstest auto volume balance scrub
+_begin_fstest auto volume balance scrub raid
 
 . ./common/filter
 
index 9f1d879a4e267a8edde02598dc0e7ee49a8452a6..77eb9b797eed2e03980ac845877d3305dbb966c8 100755 (executable)
@@ -10,7 +10,7 @@
 #   btrfs: remove identified alien btrfs device in open_fs_devices
 #
 . ./common/preamble
-_begin_fstest auto quick volume
+_begin_fstest auto quick volume raid
 
 # Override the default cleanup function.
 _cleanup()
index d17ab6dab17cce206603ab6db4ad11659fb84207..69ac13c4a8a978aaecec1da7dd76e388d6300c27 100755 (executable)
@@ -7,7 +7,7 @@
 # Test outdated and foreign non-btrfs devices in the device listing.
 #
 . ./common/preamble
-_begin_fstest auto quick volume
+_begin_fstest auto quick volume raid
 
 . ./common/filter
 . ./common/filter.btrfs
index f6c0daa646810c75c5134ea7dc0810a416af9348..dd154318606b9dc43235c6c0aa79a38868a1037c 100755 (executable)
@@ -10,7 +10,7 @@
 # new device only in degraded mode, as this is the easiest way to verify it.
 #
 . ./common/preamble
-_begin_fstest auto quick replace trim
+_begin_fstest auto quick replace trim raid
 
 . ./common/filter
 
index daa2d972e3f930ecff0f59fa5159f7bae76b2d8d..d0fa317f444d66e5086793e189aea08de2c7dac4 100755 (executable)
@@ -9,7 +9,7 @@
 #     [patch] btrfs: check for missing device in btrfs_trim_fs
 
 . ./common/preamble
-_begin_fstest auto quick volume trim
+_begin_fstest auto quick volume trim raid
 
 . ./common/filter
 
index 641a3c87e3bd639af7b3ba4350b8eaffe73d16d1..c2129d397e31e326004655441260a4670eadbf04 100755 (executable)
@@ -14,7 +14,7 @@
 #
 
 . ./common/preamble
-_begin_fstest auto quick seed volume
+_begin_fstest auto quick seed volume raid
 
 _require_scratch_dev_pool 3
 _require_command "$WIPEFS_PROG" wipefs
index e1b4fb011f1a4bc995e0c0a93a588eefcc7f7f0c..8e1333fb0743fde0e2fa252699cd57ceee0f7b66 100755 (executable)
@@ -8,7 +8,7 @@
 # Test if the kernel can free the stale device entries.
 #
 . ./common/preamble
-_begin_fstest auto quick volume
+_begin_fstest auto quick volume raid
 
 # Override the default cleanup function.
 node=$seq-test
index 823d4d967fc0f27d9068ac19a9dd55a546967fd9..edb4a87010b57e3ca35846f403bbec57329314e4 100755 (executable)
@@ -9,7 +9,7 @@
 # mirrors for the same logical offset.
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index bffcec27903c3b81b96a286bff40cc80e3e53877..3490ecce5ea60fe64cd14ec336dd2d1af4c62475 100755 (executable)
@@ -10,7 +10,7 @@
 #
 
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index b4ea31063d207f72769cacd078b3869204048977..66e08d182a0684ddf20120131deef5a71cc5e7dc 100755 (executable)
@@ -10,7 +10,7 @@
 #
 
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index 7681b1a55e9845fa2b9389b255ada4fdd612737f..0e44ea20fe7102d7fc37b83e1444af769218644f 100755 (executable)
@@ -9,7 +9,7 @@
 #
 
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index c048da44438e9425f027aaa143c3a49f93ee28b5..21e8ac762258b2f0ed13e337d008ebcedf5975a8 100755 (executable)
@@ -13,7 +13,7 @@
 #
 
 . ./common/preamble
-_begin_fstest auto quick read_repair
+_begin_fstest auto quick read_repair raid
 
 . ./common/filter
 
index c8651fa17d8da44ae892c52df3873f1cfe2f6d5e..acdf90f3b2b73507e5f98bbe4f4031860cd6824a 100755 (executable)
@@ -7,7 +7,7 @@
 # Regression test for btrfs buffered read repair of compressed data.
 #
 . ./common/preamble
-_begin_fstest auto quick read_repair compress
+_begin_fstest auto quick read_repair compress raid
 
 . ./common/filter
 
index 7909fa5075f5cf8079af6ff70a4a0f91fbbf6aed..05b6fb47aef5b0beb11c86d44fcd654b3306be01 100755 (executable)
@@ -8,7 +8,7 @@
 # for NODATASUM data.
 #
 . ./common/preamble
-_begin_fstest auto replace
+_begin_fstest auto replace raid
 
 . ./common/filter
 
index f4f7cec65a478fbda2458f02cb59bafde8b02fdd..0baf89c013367d5310ed63717153d9bc2d13bcea 100755 (executable)
@@ -8,7 +8,7 @@
 # when a new feature is added.
 #
 . ./common/preamble
-_begin_fstest auto quick balance
+_begin_fstest auto quick balance raid
 
 _require_scratch_dev_pool 3
 _fixed_by_kernel_commit b7625f461da6 \
index 82085d4f04ef2c1cbe70121d1423f6c21f7630a0..f3a705ee4d4413dd8fcdb2fbf6175393e0e31000 100755 (executable)
@@ -9,7 +9,7 @@
 # position in the target zone.
 #
 . ./common/preamble
-_begin_fstest zone quick volume
+_begin_fstest zone quick volume raid
 
 . ./common/filter