mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
43c3528091
overlay/061 is currently the only overlay test that is expected to fail on upstream kernel. It is a flavor of test overlay/016 with mread in stead of pread. The ro/rw inconsistencies related to file read()/write() API were fixed with stacked file operations in v4.19, but the ro/rw inconsistencies related to shared mmap read/write remain to be fixed. The test currently checks cache coherency between mmap read and file write(), but this sort of cache coherency is a Linux implementation detail not a requirement of the API. Instead of mread vs. pwrite, check consistency of mread vs. mwrite to shared mmap, which is required by the MMAP_SHARED API. Because we can, perform the test on shared memory that maps files that are already close and check also that mwrite after file is closed is persistent. This adds test coverage for future overlayfs writeback code. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
5 lines
198 B
Plaintext
5 lines
198 B
Plaintext
QA output created by 061
|
|
00000000: 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa
|
|
After mount cycle:
|
|
00000000: 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa
|