public inbox for linux-unionfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <eguan@redhat.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	overlayfs <linux-unionfs@vger.kernel.org>,
	fstests <fstests@vger.kernel.org>
Subject: Re: [PATCH 5/5] overlay: test mount error cases with exclusive directories
Date: Wed, 12 Jul 2017 19:46:07 +0800	[thread overview]
Message-ID: <20170712114607.GF7015@eguan.usersys.redhat.com> (raw)
In-Reply-To: <CAOQ4uxhVQf+dP1_p6tqxbcMe__EsNMC_Wd16Vkh4LAmCJbRVNA@mail.gmail.com>

On Wed, Jul 12, 2017 at 02:08:56PM +0300, Amir Goldstein wrote:
> On Wed, Jul 12, 2017 at 1:47 PM, Eryu Guan <eguan@redhat.com> wrote:
> > On Tue, Jul 11, 2017 at 10:52:06PM +0300, Amir Goldstein wrote:
> >> Expect EBUSY when trying to mount overlay when:
> >> - Upper dir is in-use by another overlay mount
> >> - Work dir is in-use by another overlay mount
> >>
> >> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
> >
> > From patch 2/5, seems this behavior requires inode index feature to be
> > enabled, and now test fails on old kernels for me. Is this expected?
> >
> 
> From my cover letter:
> "The new test overlay/036 checks for new overlay mount behaviors related
> to exclusivity of upper and work dirs among overlay mounts. This test
> is expected to fail on upstream kernel, but for a good reason, because
> the mount configurations that it tests (sharing upper dir among two
> overlay mounts) are not wise at all."
> 
> So the answer is yes, this is expected and also does not depend
> on index feature.

I usually read the cover letter (I saved it in my 'review' mailbox along
with patches to review), but somehow I forgot about it this time..

> 
> I know this is a bit confusing, but inode index enforces that 2
> *subsequent* overlay
> mount don't reuse the same upper/work dir with different lower/upper.
> The test that checks this behavior is overlay/037, still on my
> overlayfs-devel branch.
> 
> overlay/036 verifies that 2 *concurrent* overlay mount don't reuse the same
> upper/work dir. The is enforced by overlayfs-next regardless on index feature.
> A setup like this will cause troubles in old kernel as well, but mount
> will not detect it.

Thanks for the explanation! The commit log and test description don't
provide enough background information. If you could resend with detailed
explanation on the test, that'd be great!

Thanks,
Eryu

  reply	other threads:[~2017-07-12 11:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 19:52 [PATCH 0/5] overlay mount tests Amir Goldstein
2017-07-11 19:52 ` [PATCH 1/5] overlay/014: remove unneeded require and include Amir Goldstein
2017-07-11 19:52 ` [PATCH 2/5] overlay/014: fix test with inodes index enabled Amir Goldstein
2017-07-12 10:36   ` Eryu Guan
2017-07-12 10:45     ` Amir Goldstein
2017-07-11 19:52 ` [PATCH 3/5] overlay: create overlay/mount test group Amir Goldstein
2017-07-11 19:52 ` [PATCH 4/5] overlay: test cases that force read-only mount Amir Goldstein
2017-07-12 10:31   ` Eryu Guan
2017-07-12 10:37     ` Amir Goldstein
2017-07-11 19:52 ` [PATCH 5/5] overlay: test mount error cases with exclusive directories Amir Goldstein
2017-07-12 10:47   ` Eryu Guan
2017-07-12 11:08     ` Amir Goldstein
2017-07-12 11:46       ` Eryu Guan [this message]
2017-07-12 11:53         ` Amir Goldstein
2017-07-12 12:07   ` [PATCH v2 " Amir Goldstein

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=20170712114607.GF7015@eguan.usersys.redhat.com \
    --to=eguan@redhat.com \
    --cc=amir73il@gmail.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