mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: Test races between processes doing mmap writes
Add test which spawns two processes both writing one file via mmap. Then to the test when processes first prefault the file by reading it via mmap. This is mainly interesting to uncover races in DAX fault handling. Signed-off-by: Jan Kara <jack@suse.cz> Acked-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
QA output created by 345
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 16777216
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: zero-filled test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: posix_fallocate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
|
||||
INFO: ftruncate test...
|
||||
INFO: sz = 268435456
|
||||
INFO: process 0 created
|
||||
INFO: process 1 created
|
||||
INFO: 0 error(s) detected
|
||||
Reference in New Issue
Block a user