Skip to content

fstests: more tests for overlay constant inode numbers

Amir Goldstein fstests linux-unionfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v15 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Re-factor check_inode_numbers
- Move -maxdepth option position
- Fix somme comments
- Blurb more in commit messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6overlay/017: silence test outputtests/overlay/017 tests/overlay/017.out+6 -80 replies
2/6overlay/017: fix some commentstests/overlay/017+3 -40 replies
3/6overlay/017: use af_unix to create socket test filetests/overlay/017+4 -10 replies
4/6overlay/017: create helpers to record and check inode numberstests/overlay/017+42 -153 replies
5/6overlay/017: verify constant inode number after renametests/overlay/017+14 -10 replies
6/6overlay/017: test persistent inode numbers after mount cycletests/overlay/017+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] fstests: more tests for overlay constant inode numbers

Hi Eryu,

This series contains enhancements to overlay/017, which I used to test my work on overlayfs constant inode numbers. [1]

The original test was a bit naiive, not taking into account renames, drop caches and mount cycle. All those are added by this series. Since the original test does not pass on stable kernel nor will it pass with the changes by this series, these changes should cause no regressions to testers.

My work covers only the inode numbers returned from stat(2) and not the inode numbers returned in d_ino from readdir(3), so the 'find -inum' part of this test could still fail with my overlayfs patches.

However, I ran my tests in kvm-xfstests VM, where 'find -inum' called stat(2) for each entry, so the test did pass.

I will dig deeper into this behavior when I work on fixing d_ino values in the next part of my work.

Changes since v1:
- Re-factor check_inode_numbers
- Move -maxdepth option position
- Fix somme comments
- Blurb more in commit messages

Amir.

[1] https://marc.info/?l=linux-unionfs&m=149324252301397&w=2

Amir Goldstein (6):
overlay/017: silence test output
overlay/017: fix some comments
overlay/017: use af_unix to create socket test file overlay/017: create helpers to record and check inode numbers overlay/017: verify constant inode number after rename overlay/017: test persistent inode numbers after mount cycle

 tests/overlay/017     | 86 +++++++++++++++++++++++++++++++++++++++++----------
 tests/overlay/017.out |  7 +----
 2 files changed, 70 insertions(+), 23 deletions(-)
Signature · 1 line
2.7.4