overlay/016: split into two tests
PATCH v3 1/1 overlay/016: split into two tests
overlay/016 tests two cases of ro/rw fd data inconsistecies - one using pread and one using mmap read (i.e. mread).
The first case now passes with stacked overlay file operations patch set merged. The second case will still fail.
By splitting the two test cases we get one regression test for the common case of ro/rw fd data inconsistecy with pread and one test to track the remaining non-standard behavior of overlayfs w.r.t mmap.
---
Eryu,
The overlayfs ro/rw fd data inconsistecies patches were finally merged, so we can now merge this test change to reflect new behavior.
After this change on current master:
- overlay/16 is expected to pass
- overlay/61 is expected to fail
FYI, overlay/60 (new metacopy feature test) is also expected to run and pass on master.
Thanks,
Amir.
Changes from v2:
- remove unimplemented feature copy_up_shared
tests/overlay/016 | 15 ------------ tests/overlay/016.out | 3 --- tests/overlay/061 | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ tests/overlay/061.out | 4 ++++ tests/overlay/group | 1 + 5 files changed, 70 insertions(+), 18 deletions(-) create mode 100755 tests/overlay/061 create mode 100644 tests/overlay/061.out
tests/overlay/016 +0 -15
@@ -43,13 +43,11 @@ _scratch_mkfs >>$seqres.full 2>&1 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER mkdir -p $lowerdir echo "This is old news" > $lowerdir/foo -echo "This is old news" > $lowerdir/bar _scratch_mount # -# case #1: # open file for read (rofd) # open file for write (rwfd) # write to rwfd
@@ -62,18 +60,5 @@ $XFS_IO_PROG -r $SCRATCH_MNT/foo \ -C "pread -v 0 16" \ | _filter_xfs_io | _filter_scratch -# -# case #2: -# mmap MAP_SHARED|PROT_READ of rofd -# write to rwfd -# read from mapped memory -# -$XFS_IO_PROG -r $SCRATCH_MNT/bar \ - -C "mmap -r 0 16" \ - -C "open $SCRATCH_MNT/bar" \ - -C "pwrite -S 0x61 0 16" \ - -C "mread -v 0 16" \ -| _filter_xfs_io | _filter_scratch - status=0 exit
tests/overlay/016.out +0 -3
@@ -6,6 +6,3 @@ XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 00000000: 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa read 16/16 bytes at offset 0 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 16/16 bytes at offset 0 -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -00000000: 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa
tests/overlay/061 new file +65 -0
65 lines not on this page · raw message
tests/overlay/061.out new file +4 -0
@@ -0,0 +1,4 @@ +QA output created by 061 +wrote 16/16 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +00000000: 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa
tests/overlay/group +1 -0
@@ -63,3 +63,4 @@ 058 auto quick exportfs 059 auto quick copyup 060 auto quick metacopy +061 auto quick copyup
Signature · 1 line
2.7.4
Quoted 21 lines · Amir Goldstein
overlay/016 tests two cases of ro/rw fd data inconsistecies - one using pread and one using mmap read (i.e. mread).
The first case now passes with stacked overlay file operations patch set merged. The second case will still fail.
By splitting the two test cases we get one regression test for the common case of ro/rw fd data inconsistecy with pread and one test to track the remaining non-standard behavior of overlayfs w.r.t mmap.
Signed-off-by Amir Goldstein <[email protected]>---
Eryu,
The overlayfs ro/rw fd data inconsistecies patches were finally merged, so we can now merge this test change to reflect new behavior.
Quoted 7 lines
After this change on current master:
- overlay/16 is expected to pass
- overlay/61 is expected to failFYI, overlay/60 (new metacopy feature test) is also expected to run and pass on master.
Eryu,
More FYI from testing overlayfs over ext4/xfs on master:
- With base fs xfs, swap group tests crash the kernel - sent out a fix
- With base fs xfs, overlay/019 stress test hits lockdep "circular dependency" and "downgrading a read lock" warnings - it seems like a 4.18-rc1 regression I will need more time to investigate
- With base fs ext4, the 6 tests that do "_test_generic_punch -d" fail - all expect for generic/009 are regressions from this cycle
The above generic tests failures are the only failures I observed with "check -overlay -g quick" apart from test that also fail on base fs (e.g. generic/484).
Thanks,
Amir.
Quoted 40 lines · Amir Goldstein
Quoted 21 lines · Amir Goldstein
overlay/016 tests two cases of ro/rw fd data inconsistecies - one using pread and one using mmap read (i.e. mread).
The first case now passes with stacked overlay file operations patch set merged. The second case will still fail.
By splitting the two test cases we get one regression test for the common case of ro/rw fd data inconsistecy with pread and one test to track the remaining non-standard behavior of overlayfs w.r.t mmap.
Signed-off-by Amir Goldstein <[email protected]>---
Eryu,
The overlayfs ro/rw fd data inconsistecies patches were finally merged, so we can now merge this test change to reflect new behavior.
Quoted 7 lines
After this change on current master:
- overlay/16 is expected to pass
- overlay/61 is expected to failFYI, overlay/60 (new metacopy feature test) is also expected to run and pass on master.
Eryu,
More FYI from testing overlayfs over ext4/xfs on master:
- With base fs xfs, swap group tests crash the kernel - sent out a fix
- With base fs xfs, overlay/019 stress test hits lockdep "circular dependency" and "downgrading a read lock" warnings - it seems like a 4.18-rc1 regression I will need more time to investigate
- With base fs ext4, the 6 tests that do "_test_generic_punch-d" fail - all expect for generic/009 are regressions from this cycle
Quoted 3 lines
The above generic tests failures are the only failures I observed with "check -overlay -g quick" apart from test that also fail on base fs (e.g. generic/484).
Thanks a lot for the detailed information!
Eryu
Quoted 28 lines · Eryu Guan
Quoted 26 lines · Amir Goldstein
Quoted 25 lines · Amir Goldstein
overlay/016 tests two cases of ro/rw fd data inconsistecies - one using pread and one using mmap read (i.e. mread).
The first case now passes with stacked overlay file operations patch set merged. The second case will still fail.
By splitting the two test cases we get one regression test for the common case of ro/rw fd data inconsistecy with pread and one test to track the remaining non-standard behavior of overlayfs w.r.t mmap.
Signed-off-by Amir Goldstein <[email protected]>---
Eryu,
The overlayfs ro/rw fd data inconsistecies patches were finally merged, so we can now merge this test change to reflect new behavior.
After this change on current master:
- overlay/16 is expected to pass
- overlay/61 is expected to fail
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
FYI, overlay/60 (new metacopy feature test) is also expected to run and pass on master.
Eryu,
More FYI from testing overlayfs over ext4/xfs on master:
Some updates:
Quoted 1 line
Quoted 1 line
- With base fs xfs, swap group tests crash the kernel - sent out a fix
v2 of ovl fixes will be posted shortly.
v2 doesn't fix overlayfs swap file support - it disables it - so the swap group is due to not run if the fix is merged.
Quoted 5 lines
Quoted 5 lines
- With base fs xfs, overlay/019 stress test hits lockdep "circular dependency" and "downgrading a read lock" warnings - it seems like a 4.18-rc1 regression I will need more time to investigate
- With base fs ext4, the 6 tests that do "_test_generic_punch-d" fail - all expect for generic/009 are regressions from this cycle
Will post an ovl fix shortly.
generic/009 was failing on overlay over ext4 because the test is not "overlay friendly" (it has "$FSTYP" = "ext4") - will send a fix.
Quoted 5 lines
Quoted 4 lines
The above generic tests failures are the only failures I observed with "check -overlay -g quick" apart from test that also fail on base fs (e.g. generic/484).
FYI2, there are ~150 generic tests that are notrun when running overlay over xfs-reflink compared to xfs-reflink for various reasons (mostly _require_block_device), but found one test generic/474 that is notrun on overlay over ext4 that is not expected and that test was written specifically to cover an overlayfs bug fix. Will follow up on that.
Thanks,
Amir.