mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/338: Add mmap race test
Add test which spawns two threads racing to write to file via mmap and checks the result. This is mainly interesting to uncover races in DAX fault handling. Signed-off-by: Jan Kara <jack@suse.cz> Acked-by: Brian Boylston <brian.boylston@hpe.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
QA output created by 340
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 1048576
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 1048576
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: fallocate test...
|
||||
INFO: sz = 1048576
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 1048576
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 16777216
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: fallocate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 268435456
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: fallocate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: thread 0 created
|
||||
INFO: thread 1 created
|
||||
INFO: 0 error(s) detected
|
||||
Reference in New Issue
Block a user