From: Chandan Rajendra <chandan@linux.vnet.ibm.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Eryu Guan <eguan@redhat.com>, fstests <fstests@vger.kernel.org>,
Miklos Szeredi <miklos@szeredi.hu>,
overlayfs <linux-unionfs@vger.kernel.org>
Subject: Re: [PATCH V4] overlay: Test constant d_ino feature
Date: Sun, 03 Sep 2017 18:28:04 +0530 [thread overview]
Message-ID: <42988594.zmNOMRAluC@localhost.localdomain> (raw)
In-Reply-To: <CAOQ4uxgy7CJeFZkbdqes8+3J0he9mX=BEkG5gFO_gcEWcj8UJQ@mail.gmail.com>
On Sunday, September 3, 2017 3:32:11 PM IST Amir Goldstein wrote:
> On Sun, Sep 3, 2017 at 11:40 AM, Chandan Rajendra
> <chandan@linux.vnet.ibm.com> wrote:
> > This commit adds a test to verify constant d_ino feature. The following
> > scenarios are checked,
> > - Parent's (i.e. "..") d_ino must always be calculated because a pure
> > dir can be residing inside a merged dir.
> > - d_ino for "." must always be calculated because the present directory
> > can have a copy-up origin.
> > - Verify d_ino of '.' and '..' before and after dir becomes
> > impure. While at it also verify if trusted.overlay.impure xattr is
> > set/reset appropriately and invalidation of readdir cache.
> > - Verify copied up file's (inside a impure dir) d_ino.
> > - Verify d_ino values corresponding to "." and ".." entries of a pure
> > lower dir.
> > - Verify d_ino of ".." entry of a merged dir.
> > - Verify pure lower residing in dir which has another lower layer
> >
> > Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
> > ---
> > Changelog:
> > v3->v4:
> > 1. Fix error handling as suggested by Amir.
> > 2. Use sane variable names for "Verify pure lower residing in dir which has
> > another lower layer" test.
> >
> ...
> > +# Verify invalidation of readdir cache
> > +$here/src/t_dir_type $impure_dir $test_file_st_ino
> > +[[ $? != 0 ]] || echo "Directory's readdir cache has stale entries"
> > +
> > +$GETFATTR_PROG --absolute-names -n 'trusted.overlay.impure' \
> > + $upperdir/test_dir/impure_dir >>$seqres.full 2>&1
> > +[[ $? == 0 ]] && echo "Pure directory has impure xattr"
> > +
>
> Sorry, I overlooked a few things in v3:
> 1. Why did I say use && echo here I'm not sure. looking again feels
> much better to conform to all other tests
Right. I will fix it up.
> 2. I wanted to write and forgot that you need _require_attrs and
> include common/attr
I will add these lines.
> 3. This test is using double brackets [[ == comparison all around,
> which apparently
> saves the need to surround left side in quotes "". This seems to
> be recommended
> so I have no objection. Just pointing out to Eryu in case he has
> reservations.
--
chandan
prev parent reply other threads:[~2017-09-03 12:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-03 8:40 [PATCH V4] overlay: Test constant d_ino feature Chandan Rajendra
2017-09-03 10:02 ` Amir Goldstein
2017-09-03 12:58 ` Chandan Rajendra [this message]
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=42988594.zmNOMRAluC@localhost.localdomain \
--to=chandan@linux.vnet.ibm.com \
--cc=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