From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <eguan@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
linux-unionfs@vger.kernel.org, fstests@vger.kernel.org
Subject: [PATCH 0/3] Yet another overlayfs exportfs test
Date: Sun, 25 Mar 2018 17:53:08 +0300 [thread overview]
Message-ID: <1521989591-9496-1-git-send-email-amir73il@gmail.com> (raw)
Eryu,
This test should pass on upstream kernel.
It provides test coverage for a state of inode/dentry cache that
was not covered by previous tests.
I had to extend open_by_handle again to reproduce the uncovered
cache state.
Miklos,
I used tracing on index lookup with this test to verify correctness
of ("ovl: lookup in inode cache first when decoding lower file handle").
With your review fix, index lookup is called for non-dir after mount
cycle, but not called after opening by file handle again, when the
diconnected dentries are still in cache.
Thanks,
Amir.
Amir Goldstein (3):
open_by_handle: add -n option to suppress drop caches
open_by_handle: add -s option to sleep and keep files open by handle
overlay: test decoding overlay file handles with warm/cold dentry
cache
src/open_by_handle.c | 57 ++++++++++++++-------
tests/overlay/058 | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++
tests/overlay/058.out | 9 ++++
tests/overlay/group | 1 +
4 files changed, 186 insertions(+), 18 deletions(-)
create mode 100755 tests/overlay/058
create mode 100644 tests/overlay/058.out
--
2.7.4
next reply other threads:[~2018-03-25 14:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-25 14:53 Amir Goldstein [this message]
2018-03-25 14:53 ` [PATCH 1/3] open_by_handle: add -n option to suppress drop caches Amir Goldstein
2018-03-29 3:21 ` Eryu Guan
2018-03-25 14:53 ` [PATCH 2/3] open_by_handle: add -s option to sleep and keep files open by handle Amir Goldstein
2018-03-29 3:30 ` Eryu Guan
2018-03-29 11:59 ` Amir Goldstein
2018-03-25 14:53 ` [PATCH 3/3] overlay: test decoding overlay file handles with warm/cold dentry cache Amir Goldstein
2018-03-29 3:39 ` Eryu Guan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1521989591-9496-1-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox