Assorted overlay test fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ovelray: drop explicit use of OVERLAY_MOUNT_OPTIONStests/ tests/ tests/ | +6 | 0 replies | |
| 2/4 | overlay/036: fix upper/lower dir mismatchtests/ | +2 | 0 replies | |
| 3/4 | overlay: consider index dir with whiteouts cleantests/ tests/ tests/ | +15 | 0 replies | |
| 4/4 | overlay/017: require and enable redirect_dirtests/ tests/ | +5 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Assorted overlay test fixes
Eryu,
These assorted fixes improve test-ability with different overlay mount option configurtions.
The first 2 patches don't fix any known issue, but they fix correctness of the tests.
Patch 3 prepares the tests to work correctly with nfs_export=on, which is now on Miklos' overlayfs-next branch. It shouldn't change behavior for tests running on kernel without nfs_export.
First 3 patches may have trivial conflicts with Zhangyi's patch ("[5/5]
overlay: correct scratch dirs check").
Patch 4 fixes overlay/017 for the default redirect_dir=off configuration.
I believe there has been a miscommunication between us w.r.t overlay/017. I guess it always fails in your tests and you thought that was expected. Actually, since commit 0d84683 ("overlay/017: Remove constant st_ino/d_ino test for hardlinks") the test was expected to pass with default upstream configuration, but I missed the redirect_dir requirement and probably also missed communicating this expectation to you.
When I tested overlay/017 with different configurations I ran into a strange random failure that only happens with base fs xfs and overlay mount options index=on,nfs_export=off. I finally tracked it down to an xfs v4.15 regression and figured out why index=on improves the chances to hit the bug (because overlay inodes are hashed).
So after patch 4 is applied, overlay/017 is expected to pass on upstream kernel with default configuration and may may with inodex=on. xfs bug fix was sent to Darrick.
Thanks,
Amir.
Amir Goldstein (4):
ovelray: drop explicit use of OVERLAY_MOUNT_OPTIONS overlay/036: fix upper/lower dir mismatch
overlay: consider index dir with whiteouts clean overlay/017: require and enable redirect_dir
tests/overlay/017 | 6 ++++-- tests/overlay/033 | 8 ++++++-- tests/overlay/034 | 8 ++++++-- tests/overlay/036 | 4 ++-- tests/overlay/041 | 6 ++---- tests/overlay/043 | 6 ++---- tests/overlay/044 | 7 ++----- tests/overlay/048 | 4 +++- tests/overlay/group | 2 +- 9 files changed, 28 insertions(+), 23 deletions(-)
Signature · 1 line
2.7.4