All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <guan@eryu.me>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Eryu Guan <guaneryu@gmail.com>,
	Chengguang Xu <cgxu519@mykernel.net>,
	Miklos Szeredi <miklos@szeredi.hu>,
	overlayfs <linux-unionfs@vger.kernel.org>,
	fstests <fstests@vger.kernel.org>
Subject: Re: [PATCH] overlay/029: fix test failure with index feature enabled
Date: Mon, 20 Apr 2020 01:01:19 +0800	[thread overview]
Message-ID: <20200419170119.GJ388005@desktop> (raw)
In-Reply-To: <CAOQ4uxg15=Yv3rCiKXxZqsF+5+y__foRbW_D6kfbRWhZ-gEAwA@mail.gmail.com>

On Sun, Apr 19, 2020 at 07:12:33PM +0300, Amir Goldstein wrote:
> On Sun, Apr 19, 2020 at 7:05 PM Eryu Guan <guan@eryu.me> wrote:
> >
> > On Thu, Apr 09, 2020 at 02:29:00PM +0300, Amir Goldstein wrote:
> > > When overlayfs index feature is enabled by default in either kernel
> > > config or module parameters, this test fails:
> > >
> > >     mount: /tmp/8751/mnt: mount(2) system call failed: Stale file handle.
> > >     cat: /tmp/8751/mnt/bar: No such file or directory
> > >
> > > The reason is that with index feature enabled, an upper/work dirs cannot
> > > be reused for mounting with a different lower layer.
> >
> > I re-built my test kernel with CONFIG_OVERLAY_FS_INDEX=y, and confirmed
> > /sys/module/overlay/parameters/index is 'Y', but test still passes for
> > me. And I do notice the following info in dmesg:
> >
> > [  598.663923] overlayfs: fs on '/mnt/scratch/ovl-mnt/up' does not support file handles, falling back to index=off,nfs_export=off.
> > [  598.674299] overlayfs: fs on '/mnt/scratch/ovl-mnt/low' does not support file handles, falling back to index=off,nfs_export=off.
> > [  598.684594] overlayfs: fs on '/mnt/scratch/ovl-mnt/' does not support file handles, falling back to index=off,nfs_export=off.
> >
> > Seems it has something to do with nfs_export feature? I have it disabled
> > by default.
> >
> >  # CONFIG_OVERLAY_FS_NFS_EXPORT is not set
> >
> > Could you please help confirm?
> >
> 
> I confirm. enabling index on nested overlay requires that
> the lower overlay has nfs_export enabled.

Thanks!

> 
> Missed that, but in the bug report, CONFIG_OVERLAY_FS_NFS_EXPORT
> was indeed set.

Would you please update the commit log accordingly as well?

> 
> You do not need to rebuild the kernel.
> You can reproduce the failure by setting overlay module parameter before
> running the tests.
> 
> echo Y > /sys/module/overlay/parameters/index
> echo Y > /sys/module/overlay/parameters/nfs_export

Ah, forgot about that.. it's easier now :)

Thanks,
Eryu

  reply	other threads:[~2020-04-19 17:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09 11:29 [PATCH] overlay/029: fix test failure with index feature enabled Amir Goldstein
2020-04-19 16:06 ` Eryu Guan
2020-04-19 16:12   ` Amir Goldstein
2020-04-19 17:01     ` Eryu Guan [this message]
2020-04-19 17:54       ` 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=20200419170119.GJ388005@desktop \
    --to=guan@eryu.me \
    --cc=amir73il@gmail.com \
    --cc=cgxu519@mykernel.net \
    --cc=fstests@vger.kernel.org \
    --cc=guaneryu@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.