]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: add a mmap test group
authorFilipe Manana <fdmanana@suse.com>
Wed, 14 May 2025 17:13:32 +0000 (18:13 +0100)
committerZorro Lang <zlang@kernel.org>
Wed, 21 May 2025 05:38:45 +0000 (13:38 +0800)
Add a mmap group to tag tests that exercise memory mapped reads/writes, so
that it's easy to filter and run tests that exercise map:

   ./check -g mmap

Very useful during development to quickly test changes to a filesystem's
mmap implementation.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
83 files changed:
doc/group-names.txt
tests/btrfs/209
tests/generic/019
tests/generic/029
tests/generic/030
tests/generic/068
tests/generic/074
tests/generic/080
tests/generic/095
tests/generic/127
tests/generic/140
tests/generic/141
tests/generic/173
tests/generic/215
tests/generic/219
tests/generic/246
tests/generic/247
tests/generic/248
tests/generic/279
tests/generic/281
tests/generic/282
tests/generic/283
tests/generic/325
tests/generic/340
tests/generic/344
tests/generic/345
tests/generic/346
tests/generic/413
tests/generic/428
tests/generic/437
tests/generic/438
tests/generic/446
tests/generic/462
tests/generic/469
tests/generic/470
tests/generic/499
tests/generic/503
tests/generic/511
tests/generic/567
tests/generic/569
tests/generic/570
tests/generic/574
tests/generic/578
tests/generic/605
tests/generic/614
tests/generic/623
tests/generic/630
tests/generic/638
tests/generic/647
tests/generic/651
tests/generic/652
tests/generic/653
tests/generic/654
tests/generic/655
tests/generic/657
tests/generic/658
tests/generic/659
tests/generic/660
tests/generic/661
tests/generic/662
tests/generic/663
tests/generic/664
tests/generic/665
tests/generic/666
tests/generic/669
tests/generic/670
tests/generic/671
tests/generic/672
tests/generic/708
tests/generic/729
tests/generic/742
tests/generic/743
tests/generic/749
tests/generic/758
tests/overlay/061
tests/xfs/090
tests/xfs/108
tests/xfs/166
tests/xfs/194
tests/xfs/550
tests/xfs/551
tests/xfs/552
tests/xfs/559

index f510bb827062f010dc676fa6e90768c50db1ea28..585021315c43bcc6ec18083f134a4b1b555547f8 100644 (file)
@@ -77,6 +77,7 @@ metacopy              overlayfs metadata-only copy-up
 metadata               filesystem metadata update exercisers
 metadump               xfs_metadump/xfs_mdrestore functionality
 mkfs                   filesystem formatting tools
+mmap                   memory mapped reads/writes
 mount                  mount option and functionality checks
 nested                 nested overlayfs instances
 nfs4_acl               NFSv4 access control lists
index 5a5964a3ef9b351f197475621dac9003aeeb76f0..7318f8ae8bccaece516feb18ef9a1f76b1876bcf 100755 (executable)
@@ -10,7 +10,7 @@
 # only when not using the NO_HOLES feature.
 #
 . ./common/preamble
-_begin_fstest auto quick log
+_begin_fstest auto quick log mmap
 
 # Override the default cleanup function.
 _cleanup()
index 676ff27dab8062f98c3f3beec7a0ca4cdac6f5bc..00badf6dc320b20d5b769cd8d786bb29daff5dc6 100755 (executable)
@@ -8,7 +8,7 @@
 # check filesystem consistency at the end.
 #
 . ./common/preamble
-_begin_fstest aio dangerous enospc rw stress recoveryloop
+_begin_fstest aio dangerous enospc rw stress recoveryloop mmap
 
 fio_config=$tmp.fio
 
index c6162b0b4f7a835268c3ccf112798729b86af72c..1fee35f06a4388b056adf179cff0d5926454673c 100755 (executable)
@@ -9,7 +9,7 @@
 # the block size is smaller than the page size.
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/filter
index b1b51469c1ee9455c03200f1c2ab842648e02f90..e1674331bc1f5e6e45217d95b48907244a024320 100755 (executable)
@@ -9,7 +9,7 @@
 # the block size is smaller than the page size.
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/filter
index 26c5ceea6e56c39b772d9a1b2b7b6c2bba54911b..c631963904cdd957de68be9b1d96624d25a434c3 100755 (executable)
@@ -8,7 +8,7 @@
 # The fail case for this test is a hang on an xfs_freeze.
 #
 . ./common/preamble
-_begin_fstest other auto freeze stress
+_begin_fstest other auto freeze stress mmap
 
 status=0       # success is the default!
 
index 923bf36b1ad25986ff49e1694959b831025d5a7e..103d666b4326f88bac53047d03ca864be2e440b9 100755 (executable)
@@ -7,7 +7,7 @@
 # fstest
 #
 . ./common/preamble
-_begin_fstest rw udf auto
+_begin_fstest rw udf auto mmap
 
 fstest_dir=$TEST_DIR/fstest
 status=0       # success is the default!
index 5c38cc205ee1059d043f8a57dd15a92f017318ef..f7d4054339441c826b1aece27fe946c937debb16 100755 (executable)
@@ -7,7 +7,7 @@
 # Verify that mtime is updated when writing to mmap-ed pages
 #
 . ./common/preamble
-_begin_fstest auto quick
+_begin_fstest auto quick mmap
 
 status=0
 
index 47e3b1e612b5bbf5d1b978b961b41a01a1f84625..828274fde1aaf6b1f9619b8076087e31923873b1 100755 (executable)
@@ -7,7 +7,7 @@
 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
 #
 . ./common/preamble
-_begin_fstest auto quick rw stress
+_begin_fstest auto quick rw stress mmap
 
 # Import common functions.
 . ./common/filter
index fcd535b46075e231497d8ec9e88d65ab8af1c934..431188ef2d86e9970288c0f05ae79285f4789d79 100755 (executable)
@@ -11,7 +11,7 @@
 #   - fsx_15_std_mmap
 #
 . ./common/preamble
-_begin_fstest rw auto
+_begin_fstest rw auto mmap
 
 # Override the default cleanup function.
 _cleanup()
index 8cbc23bb00e64166ffa63326f59d315739299964..98c1df24e3cc81481f12a6ba6e0c53d13ee7bb74 100755 (executable)
@@ -10,7 +10,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone
+_begin_fstest auto quick clone mmap
 
 # Override the default cleanup function.
 _cleanup()
index d6fab33f76c643f1e932600f4355fbb10d81cf65..8f34f5b1eab4c525ff7aed297a08da1b2e516aa0 100755 (executable)
@@ -7,7 +7,7 @@
 # Test for xfs_io mmap read problem
 #
 . ./common/preamble
-_begin_fstest rw auto quick
+_begin_fstest rw auto quick mmap
 
 # Import common functions.
 . ./common/filter
index a19ff8070fa69c1f743f9a19e118b112d88b5d8c..5dc24bec5095412cd5ae107cb879c9a198cfbc1f 100755 (executable)
@@ -8,7 +8,7 @@
 # while copy-on-writing the file via mmap.
 #
 . ./common/preamble
-_begin_fstest auto quick clone
+_begin_fstest auto quick clone mmap
 
 # Override the default cleanup function.
 _cleanup()
index 6f51b26a0ae6c59105a25255e1abd1eebc6eb527..5948da48cc66f0ba26f12b7c9021b53964d9337d 100755 (executable)
@@ -9,7 +9,7 @@
 # Based on the testcase in http://bugzilla.kernel.org/show_bug.cgi?id=2645
 #
 . ./common/preamble
-_begin_fstest auto metadata quick
+_begin_fstest auto metadata quick mmap
 
 # Override the default cleanup function.
 _cleanup()
index cc2ec119eb429899ec00f510c6e9b6716cb48376..642823859886f67551a119c582ac311bcd7437d0 100755 (executable)
@@ -8,7 +8,7 @@
 # Simple quota accounting test for direct/buffered/mmap IO.
 #
 . ./common/preamble
-_begin_fstest auto quota quick
+_begin_fstest auto quota quick mmap
 
 # Import common functions.
 . ./common/filter
index ee5afac6050830e8b6cd94138a0b3a6d25c70936..8ef4da99f92da04cccc588fb4baf4287b330997f 100755 (executable)
@@ -10,7 +10,7 @@
 # Marius Tolzmann <tolzmann@molgen.mpg.de>
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/filter
index a758ae24cc9dcc15d12f83b10e82f696c1daa109..7ea5237521ff13aad1ad84e9f70709f3d54fe9c9 100755 (executable)
@@ -7,7 +7,7 @@
 # Test for race between direct I/O and mmap
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 _register_cleanup "_cleanup" BUS
 
index 49089534905decc8c7ec4a9b40dd51e20cb48597..ca37d6496b3510b906c0b60e011c8b7fae407f54 100755 (executable)
@@ -7,7 +7,7 @@
 # Test for pwrite hang problem when writing from mmaped buffer of the same page 
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Override the default cleanup function.
 _cleanup()
index 599b4b6dc08a830e4e54534b9b224f89e37ffcb3..60204cdf033f448310936d321a97bbea9e3c7af3 100755 (executable)
@@ -7,7 +7,7 @@
 # Test mmap CoW behavior when the write temporarily fails.
 #
 . ./common/preamble
-_begin_fstest auto quick clone eio
+_begin_fstest auto quick clone eio mmap
 
 # Override the default cleanup function.
 _cleanup()
index 474b8b73a193971cbdf0661f57bdf1deb5fbde3e..d88d35f7b9968ffe0668dc53bb4134541b8d2939 100755 (executable)
@@ -7,7 +7,7 @@
 # Test mmap CoW behavior when the write permanently fails.
 #
 . ./common/preamble
-_begin_fstest auto quick clone eio
+_begin_fstest auto quick clone eio mmap
 
 # Override the default cleanup function.
 _cleanup()
index 7279781302a48012ec0a74a7ba80b63a8a273e75..90b97e6d1e6da1f36e12a5f8593a09abd94dc82c 100755 (executable)
@@ -7,7 +7,7 @@
 # Test mmap CoW behavior when the write temporarily fails and we unmount.
 #
 . ./common/preamble
-_begin_fstest auto quick clone eio
+_begin_fstest auto quick clone eio mmap
 
 # Override the default cleanup function.
 _cleanup()
index cdad47a24d0b0d52354091b99b9d34b1917139db..99f3e94bb4851768349f91e5732b0a1a1e8b1a5a 100755 (executable)
@@ -8,7 +8,7 @@
 # program writes again.
 #
 . ./common/preamble
-_begin_fstest auto quick clone eio
+_begin_fstest auto quick clone eio mmap
 
 # Override the default cleanup function.
 _cleanup()
index f850663377b016bed33e2548bf205d3b0b9923bc..932c18f17ef4b9375f85b98f9ad7af57569c3c27 100755 (executable)
@@ -16,7 +16,7 @@
 #     Btrfs: fix fsync data loss after a ranged fsync
 #
 . ./common/preamble
-_begin_fstest auto quick data log
+_begin_fstest auto quick data log mmap
 
 # Override the default cleanup function.
 _cleanup()
index 631324f159637875be05971749224d5806c8c252..96c8884de32cb1e3f837afd330a4dd046f153578 100755 (executable)
@@ -7,7 +7,7 @@
 # Test mmap writing races from racing threads
 #
 . ./common/preamble
-_begin_fstest auto
+_begin_fstest auto mmap
 
 # get standard environment and checks
 
index e6a3a5fe068969e2d46be95a3b98964da6061db9..884e65ba918dd48c29cb2a4d585ce424a7fed78e 100755 (executable)
@@ -8,7 +8,7 @@
 # Test races between mmap and buffered writes when pages are prefaulted.
 #
 . ./common/preamble
-_begin_fstest auto
+_begin_fstest auto mmap
 
 # get standard environment and checks
 
index cc1080f3f07faae72585b0d2a6ed530180ab213a..a73903e2bb7f21df7f2630402ed17219d936f8d3 100755 (executable)
@@ -7,7 +7,7 @@
 # Test races between mmap from racing processes with and without prefaulting.
 #
 . ./common/preamble
-_begin_fstest auto
+_begin_fstest auto mmap
 
 # get standard environment and checks
 
index 89652ea569c1d90fac2f5df4da3874a1c23850f5..aaf4c28e1a2a3a28f19cdcb5dfaa7444fa0cc5cd 100755 (executable)
@@ -7,7 +7,7 @@
 # Test races between mmap and normal writes from racing threads
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # get standard environment and checks
 
index c9274e448c88a10ad94b6117e12ee7793bc78312..8a81e9014e85c28082fcbb20255190e047d2d269 100755 (executable)
@@ -7,7 +7,7 @@
 # mmap direct/buffered io between DAX and non-DAX mountpoints.
 #
 . ./common/preamble
-_begin_fstest auto quick dax prealloc
+_begin_fstest auto quick dax prealloc mmap
 
 # Import common functions.
 . ./common/filter
index c2c78778399c4bb25c1480b776cb57e2b8d6750b..d35dcbe086cd69669efc6547fdac32579744b1bc 100755 (executable)
@@ -9,7 +9,7 @@
 # created by Ross Zwisler <ross.zwisler@linux.intel.com>
 #
 . ./common/preamble
-_begin_fstest auto quick dax
+_begin_fstest auto quick dax mmap
 
 # Import common functions.
 . ./common/filter
index afba473111fa5e6a0faa90d7dc729a209c8a8a9a..ce89d24f2051f67f578ea5f7c26feeb2b750449c 100755 (executable)
@@ -10,7 +10,7 @@
 # created by Ross Zwisler <ross.zwisler@linux.intel.com>
 #
 . ./common/preamble
-_begin_fstest auto quick dax
+_begin_fstest auto quick dax mmap
 
 # Import common functions.
 . ./common/filter
index df9c23d26af6e5417e7523efaae2fd6a3f45e232..2ed1e52ed2cd09465e1e97868cd3b1d5ee874e6c 100755 (executable)
@@ -14,7 +14,7 @@
 # Based on test program by Michael Zimmer <michael@swarm64.com>
 #
 . ./common/preamble
-_begin_fstest auto
+_begin_fstest auto mmap
 
 # Override the default cleanup function.
 _cleanup()
index c0d32e4eae48d6a51ff6a0f9cab196e32cdd2625..cfa28759a871c959246aefaeabf1a6b843454432 100755 (executable)
@@ -12,7 +12,7 @@
 # will trigger a BUG_ON().
 #
 . ./common/preamble
-_begin_fstest auto quick rw punch
+_begin_fstest auto quick rw punch mmap
 
 # get standard environment and checks
 . ./common/filter
index 42f18ad2fd14e5b0fde841e99831b75f5212b93e..49b0df40d0d86716b69d2f4a9ae02c2e9e8e23ee 100755 (executable)
@@ -12,7 +12,7 @@
 # which is configured in "memory mode", not in "raw mode".
 #
 . ./common/preamble
-_begin_fstest auto quick dax
+_begin_fstest auto quick dax mmap
 
 # Import common functions.
 . ./common/filter
index f7718185b7114a6539f49cf478f349632eb9d112..c36544b09999f2d229c8d8d7f18b3fcc76b211ba 100755 (executable)
@@ -14,7 +14,7 @@
 # the bug on XFS.
 #
 . ./common/preamble
-_begin_fstest auto quick punch zero prealloc
+_begin_fstest auto quick punch zero prealloc mmap
 
 file=$TEST_DIR/$seq.fsx
 
index aef262c8764c5365692f829af7d988c163d9a40a..96ccbab34e741825fefe3068c125087629222136 100755 (executable)
@@ -8,7 +8,7 @@
 # page faults.
 #
 . ./common/preamble
-_begin_fstest auto quick dax
+_begin_fstest auto quick dax mmap
 
 # Override the default cleanup function.
 _cleanup()
index 868413bad698eafe5386cfb1b22fca3b32a87a7c..eca9b3d3827b950e85f39031074aa03da091bcc8 100755 (executable)
@@ -8,7 +8,7 @@
 # eof to return nonzero contents.
 #
 . ./common/preamble
-_begin_fstest auto quick rw collapse zero prealloc
+_begin_fstest auto quick rw collapse zero prealloc mmap
 
 # Import common functions.
 . ./common/punch
index f9796e6945f35fae50bc14bd0a480032a7de196f..eb67c483a4d40350b150bcb00b4f71e3d1ce1da6 100755 (executable)
@@ -14,7 +14,7 @@
 # don't require the DAX mount option or a specific filesystem for the test.
 
 . ./common/preamble
-_begin_fstest auto quick dax punch collapse zero prealloc
+_begin_fstest auto quick dax punch collapse zero prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 66557ab9369059a19f0eda3b5cd1b6db2f84821c..296859c21f28cc40ad4043fd817f831f0dfd6962 100755 (executable)
@@ -8,7 +8,7 @@
 # eof to return nonzero contents.
 #
 . ./common/preamble
-_begin_fstest auto quick rw zero prealloc
+_begin_fstest auto quick rw zero prealloc mmap
 
 # Import common functions.
 . ./common/punch
index fc109d0d4acf29cb8446031c1e15cea0a4ca47ba..ee479e682bd1a235276af2a33fa172189c30de2a 100755 (executable)
@@ -11,7 +11,7 @@
 # (generic/029 is a similar test but for truncate.)
 #
 . ./common/preamble
-_begin_fstest auto quick rw punch
+_begin_fstest auto quick rw punch mmap
 
 # Import common functions.
 . ./common/filter
index 345e474409ff0a6a09b89b1aff9f45508020e911..efc3710aac22a09869fcf9a402c56a64ba2b86f6 100755 (executable)
@@ -7,7 +7,7 @@
 # Check that we can't modify a file that's an active swap file.
 
 . ./common/preamble
-_begin_fstest auto quick rw swap prealloc
+_begin_fstest auto quick rw swap prealloc mmap
 
 # Override the default cleanup function.
 _cleanup()
index 6b50303cd81548bf3320124e45b353939f6884c7..5f33453f1f169c8173a50f72d2a00f26321688d7 100755 (executable)
@@ -7,7 +7,7 @@
 # Check that we can't modify a block device that's an active swap device.
 
 . ./common/preamble
-_begin_fstest auto quick rw swap
+_begin_fstest auto quick rw swap mmap
 
 # Override the default cleanup function.
 _cleanup()
index cf287d2bbfe81d6aa28b4f2f11d255d9ed2a29bc..ebe081e80c07bca52fdfb331a5ba85bc27977ab7 100755 (executable)
@@ -10,7 +10,7 @@
 # part of the contents is later read by any means.
 #
 . ./common/preamble
-_begin_fstest auto quick verity
+_begin_fstest auto quick verity mmap
 
 # Override the default cleanup function.
 _cleanup()
index 347f6f979822875be69ca6dc9df5e6bd7f969f11..48e54f312a31b53f9c1ce3ce6e674d7b12706189 100755 (executable)
@@ -7,7 +7,7 @@
 # Make sure that we can handle multiple mmap writers to the same file.
 
 . ./common/preamble
-_begin_fstest auto quick rw clone fiemap
+_begin_fstest auto quick rw clone fiemap mmap
 
 # Override the default cleanup function.
 _cleanup()
index 2c372db7ca6f3e2fc150ac36104fd16b8bb71141..017a72e238ddbc9d7bde75471f1595c19032f004 100755 (executable)
@@ -7,7 +7,7 @@
 # Test per-inode DAX flag by mmap direct/buffered IO.
 #
 . ./common/preamble
-_begin_fstest auto attr quick dax prealloc
+_begin_fstest auto attr quick dax prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 2299c1338dd0ca6ea9580375a1fcd975341b2293..4ae4fc36d36abf7648fad54799e4dab14ee31065 100755 (executable)
@@ -8,7 +8,7 @@
 # stat(2) reports a non-zero number of used blocks.
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/filter
index 9f41b5cc6297783682258ce6ebff4080c079dce6..b97e2adbe67f729ea90ce9b1373b8b07e206b686 100755 (executable)
@@ -7,7 +7,7 @@
 # Test a write fault scenario on a shutdown fs.
 #
 . ./common/preamble
-_begin_fstest auto quick shutdown
+_begin_fstest auto quick shutdown mmap
 
 . ./common/filter
 
index b2cbdcf050c715c3ffe443aff5e20465e85c8d4d..aa6ac9655cdd5518cb8d0872dc0e8e5a91ebb3bb 100755 (executable)
@@ -9,7 +9,7 @@
 # are identical and we can therefore go ahead with the remapping.
 
 . ./common/preamble
-_begin_fstest auto quick rw dedupe clone
+_begin_fstest auto quick rw dedupe clone mmap
 
 # Import common functions.
 . ./common/reflink
index 3de9801c5d6ba0fc6402cf6fb1fded736fe121d3..a5616c90a79f35ea8f3e752309e02c6be8902242 100755 (executable)
@@ -20,7 +20,7 @@
 #   4f06dd92b5d0 ("fuse: fix write deadlock")
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/filter
index 99b13b387b6da2ec100d75411687722b6b2cc03d..f50e017150e63de5f603ff29947ae2b488fdbbd5 100755 (executable)
@@ -7,7 +7,7 @@
 # Trigger page faults in the same file during read and write
 #
 . ./common/preamble
-_begin_fstest auto quick
+_begin_fstest auto quick mmap
 
 # Override the default cleanup function.
 _cleanup()
index 0d79f3f21d02cfef7b9ef18ce645dcf9db662be0..ff7a933edc42477a956073ebd093f0ed58e86d4a 100755 (executable)
@@ -10,7 +10,7 @@
 # the golden output; we can only compare to a check file.
 #
 . ./common/preamble
-_begin_fstest auto quick clone
+_begin_fstest auto quick clone mmap
 
 # Import common functions.
 . ./common/filter
index e45dbbd21d159e3def0d2f12f837d05d492d085d..7e156fc13286d23f47e7689795dd6309e824b730 100755 (executable)
@@ -10,7 +10,7 @@
 # the golden output; we can only compare to a check file.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index bd3896cb935a096cbc80a1fd2686e626594f35b0..32416dd16f7de18f57f2f319684d347d53e3eb0e 100755 (executable)
@@ -10,7 +10,7 @@
 # the golden output; we can only compare to a check file.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 4b2986ec7e2dca4bee3609ee285ff169fec71a35..05ef9e9c013142f75b4d0afcbc7d3520043923df 100755 (executable)
@@ -10,7 +10,7 @@
 # the golden output; we can only compare to a check file.
 #
 . ./common/preamble
-_begin_fstest auto quick clone fiemap prealloc
+_begin_fstest auto quick clone fiemap prealloc mmap
 
 # Import common functions.
 . ./common/filter
index e2a503b441cd00683327ac4b530be6449f955f26..75f1c341668be1873b3c5dac7fb6c89e09b446e1 100755 (executable)
@@ -11,7 +11,7 @@
 # the golden output; we can only compare to a check file.
 #
 . ./common/preamble
-_begin_fstest auto quick clone fiemap prealloc
+_begin_fstest auto quick clone fiemap prealloc mmap
 
 # Import common functions.
 . ./common/filter
index df45afcbe9f65c7261f0ed3c73276a8aeb33d74e..8e3d08e7cebb909b0528598e180cdd0c4612d9d9 100755 (executable)
@@ -12,7 +12,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone
+_begin_fstest auto quick clone mmap
 
 # Import common functions.
 . ./common/filter
index 03d5a7a1c3d1eb98cd1713959dfcc1c56a4659e1..7d326cb75aa1c098d2b85010dff0fa3d59ef234f 100755 (executable)
@@ -12,7 +12,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index cef2b2325068f058f0ed80738bb881887563acbc..29f299bb7b0469ca6ac9156959346dc978ebac2c 100755 (executable)
@@ -12,7 +12,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 650e5e8398db4ac0073c9cdc14a314bbc5c416f3..5455b460d16a8e1840cbe8bb62cb77dd7c5a30ee 100755 (executable)
@@ -12,7 +12,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 74c080ab5207111845a942474cf2f7d2908ad6b6..70762cb1751ea8336898ea39e629a921a7794609 100755 (executable)
@@ -13,7 +13,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 54405b98eca450335b6d8860c414835e026962e1..c6d8ce96428f565453a7a705a7d0c958f2472bbf 100755 (executable)
@@ -17,7 +17,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone punch prealloc
+_begin_fstest auto quick clone punch prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 2129805c720c4d88e1b3a946ec01b0e93e3dee64..05d1069c525cc987ea86a8434cca1962104026e0 100755 (executable)
@@ -13,7 +13,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index fdedc486fbc9818366f1fab9f34fa0da16405b49..711af8faafaacc31456b4d6d20c2bdc2bc9307fd 100755 (executable)
@@ -15,7 +15,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index b0676dc81998d19dfa8778b83c7160f5668c237c..a4379099b82ad746a891ebcfad6ddadec5371f4f 100755 (executable)
@@ -15,7 +15,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 8575c06ca66c2e55651e02814662f526313c84e8..9fff80390551a5199fd40a953054ec22832f759e 100755 (executable)
@@ -16,7 +16,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone prealloc
+_begin_fstest auto quick clone prealloc mmap
 
 # Import common functions.
 . ./common/filter
index aa7b0d55cc67bf25351c65a92bb273dd78d31098..6ddd2ad76d496efb8e7f4c5bf7547a7d29a56db6 100755 (executable)
@@ -16,7 +16,7 @@
 #   - Check that the files are now different where we say they're different.
 #
 . ./common/preamble
-_begin_fstest auto quick clone punch prealloc
+_begin_fstest auto quick clone punch prealloc mmap
 
 # Import common functions.
 . ./common/filter
index f32199e70f4bd548eb9744b62a1225b0360d2f1b..034aa8a738c304353f97054364cc107f7c0cb14a 100755 (executable)
@@ -7,7 +7,7 @@
 # target file. (MMAP version of generic/164,165)
 #
 . ./common/preamble
-_begin_fstest auto clone
+_begin_fstest auto clone mmap
 
 _register_cleanup "_cleanup" BUS
 
index 3abe12274f564f32cecafcb38efdd2d0ab011c0f..285e810ea823946c399efddc9bdf509688a19666 100755 (executable)
@@ -7,7 +7,7 @@
 # the source of a reflink operation. (MMAP version of generic/167,166)
 #
 . ./common/preamble
-_begin_fstest auto clone
+_begin_fstest auto clone mmap
 
 _register_cleanup "_cleanup" BUS
 
index a5e65042e4960bb23a00e28086d2f2ea7e8e8e13..aa63ec8e35e9db9b67fd028762fe8296b924714f 100755 (executable)
@@ -7,7 +7,7 @@
 # the target of a reflink operation. (MMAP version of generic/168,170)
 #
 . ./common/preamble
-_begin_fstest auto clone
+_begin_fstest auto clone mmap
 
 _register_cleanup "_cleanup" BUS
 
index 53bb0ee4b310734656f1af5840af0ace4179b511..ec7e48a9f274145dfa1a67e55d558898165e878c 100755 (executable)
@@ -12,7 +12,8 @@
 # thus the iomap direct_io partial write codepath.
 #
 . ./common/preamble
-_begin_fstest quick auto
+_begin_fstest quick auto mmap
+
 [ $FSTYP == "btrfs" ] && \
        _fixed_by_kernel_commit b73a6fd1b1ef \
                "btrfs: split partial dio bios before submit"
index e0cd18d8c79a13db071c4b76a536e4b4d12ae95e..b206a196255c2b7532e61c22d9da0546fe18c29b 100755 (executable)
@@ -14,7 +14,7 @@
 # with page faults disabled will never make any progress.
 #
 . ./common/preamble
-_begin_fstest auto quick
+_begin_fstest auto quick mmap
 
 # Override the default cleanup function.
 _cleanup()
index 68cf20e403eb26d6f09ecb8d8e8179b27c3a4e1e..ceecbdf9edd49a72523bce2657f825f5fbd5ae73 100755 (executable)
@@ -12,7 +12,8 @@
 # result in a deadlock if we page faulted.
 #
 . ./common/preamble
-_begin_fstest quick auto fiemap
+_begin_fstest quick auto fiemap mmap
+
 [ $FSTYP == "btrfs" ] && \
        _fixed_by_kernel_commit b0ad381fa769 \
                "btrfs: fix deadlock with fiemap and extent locking"
index efdeec82d7a78b98d2e7c549fd79d62f8166e42a..4eebdc063562929f14fe5cbedec865d52972000a 100755 (executable)
@@ -9,7 +9,7 @@
 # MADV_POPULATE_READ on the mapping to fault in the pages.
 #
 . ./common/preamble
-_begin_fstest auto rw eio
+_begin_fstest auto rw eio mmap
 
 # Override the default cleanup function.
 _cleanup()
index 451f283e020622538ed4e8b338fa18a0babd308f..7af019ddd7f98f4f824e5a8936f7d24fac5aa217 100755 (executable)
@@ -15,7 +15,7 @@
 # boundary and ensures we get a SIGBUS if we write to data beyond the system
 # page size even if the block size is greater than the system page size.
 . ./common/preamble
-_begin_fstest auto quick prealloc
+_begin_fstest auto quick prealloc mmap
 
 # Import common functions.
 . ./common/filter
index ad08b83f8aebb7c2d5ade6db4b0be438aa2b1d3c..00b3658d449f956f999906ef0ff4609366cb145f 100755 (executable)
@@ -11,7 +11,7 @@
 # (generic/567 is a similar test but for punch hole.)
 #
 . ./common/preamble
-_begin_fstest auto quick rw zero
+_begin_fstest auto quick rw zero mmap
 
 # Import common functions.
 . ./common/filter
index bf4ad6de643dbc74581271844b592d5fba2677b0..1458686514b76c71bc46bf46a7b456d355679d88 100755 (executable)
@@ -15,7 +15,7 @@
 # - process A reads old data from shared mmap
 #
 . ./common/preamble
-_begin_fstest posix copyup
+_begin_fstest posix copyup mmap
 
 # Import common functions.
 . ./common/filter
index dfc10d88bfc8555264171a97aec4c9c981e1cf82..e2a5086c5e4e41b2c78527a67a695bd168ebf790 100755 (executable)
@@ -7,7 +7,7 @@
 # Exercise IO on the realtime device (direct, buffered, mmapd)
 #
 . ./common/preamble
-_begin_fstest rw auto realtime
+_begin_fstest rw auto realtime mmap
 
 # Import common functions.
 . ./common/filter
index 8adc63d4e56e4ff099fa93dff8ec21672cb44ef1..96621f65074a4af620fc465e8ab0952cc2873961 100755 (executable)
@@ -7,7 +7,7 @@
 # Simple quota accounting test for direct/buffered/mmap IO.
 #
 . ./common/preamble
-_begin_fstest quota auto quick
+_begin_fstest quota auto quick mmap
 
 # Import common functions.
 . ./common/filter
index beb05031789873b7d6b9797e0f080bce41fc7d6b..57461d89b9f90d79293ec9c1e5b4afc0c3d1c5ed 100755 (executable)
@@ -7,7 +7,7 @@
 # ->page-mkwrite test - unwritten extents and mmap
 #
 . ./common/preamble
-_begin_fstest rw metadata auto quick prealloc
+_begin_fstest rw metadata auto quick prealloc mmap
 
 # Import common functions.
 . ./common/filter
index 1f83d534ca7a66503e6fba80cbf36fe2ae90f1fb..737ae482b9bb9f331f9aab22f16ea8587595e33c 100755 (executable)
@@ -7,7 +7,7 @@
 # Test mapping around/over holes for sub-page blocks
 #
 . ./common/preamble
-_begin_fstest rw auto
+_begin_fstest rw auto mmap
 
 # Override the default cleanup function.
 _cleanup()
index cecc2ea2928937e807f9a3e67d7f0dd1bbd77310..b283231f695f8029b8f588ba3a253c95653f8e32 100755 (executable)
@@ -7,7 +7,7 @@
 # Test memory failure mechanism when dax enabled
 #
 . ./common/preamble
-_begin_fstest auto quick dax
+_begin_fstest auto quick dax mmap
 
 # Import common functions.
 . ./common/filter
index 72f71e25b8019c5a0a413c5a2ae52f6b4ac5a5bf..4ba19633a60779fa71670c4f59433e30e36ff38c 100755 (executable)
@@ -7,7 +7,7 @@
 # Test memory failure mechanism when dax and reflink working together
 #
 . ./common/preamble
-_begin_fstest auto quick clone dax
+_begin_fstest auto quick clone dax mmap
 
 # Import common functions.
 . ./common/filter
index facee8cd6ca9f1c57dbc34b1e4d2514e84454262..c065676183991a198c34080cd11838a735434b37 100755 (executable)
@@ -8,7 +8,7 @@
 #   test for partly reflinked file
 #
 . ./common/preamble
-_begin_fstest auto quick clone dax
+_begin_fstest auto quick clone dax mmap
 
 # Import common functions.
 . ./common/filter
index fb29d208ae6dcc68baa71244229fb0f34ef68042..2d617d7e3e42cce94d978d5e1e22087a6e907b53 100755 (executable)
@@ -8,7 +8,7 @@
 # buffered write routines.
 #
 . ./common/preamble
-_begin_fstest auto quick rw
+_begin_fstest auto quick rw mmap
 
 # Import common functions.
 . ./common/inject