Linux Overlay Filesystem development
 help / color / mirror / Atom feed
From: Dominique Martinet <asmadeus@codewreck.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Zheng Liu <gnehzuil.liu@gmail.com>,
	v9fs-developer@lists.sourceforge.net,
	"linux-unionfs@vger.kernel.org" <linux-unionfs@vger.kernel.org>,
	Zheng Liu <wenqing.lz@taobao.com>
Subject: Re: [V9fs-developer] [RFC][PATCH] ovl: count subdirs to get the correct link count
Date: Mon, 12 Oct 2015 18:15:28 +0200	[thread overview]
Message-ID: <20151012161528.GA22376@nautica> (raw)
In-Reply-To: <CAJfpegsbLD+hKBRVmPVBRvMyJ-RR8nDqsd+sPrknGDc_t=DfOw@mail.gmail.com>

Miklos Szeredi wrote on Mon, Oct 12, 2015:
> On Mon, Oct 12, 2015 at 10:01 AM, Zheng Liu <gnehzuil.liu@gmail.com> wrote:
> > This warning can be reproduced by the following steps.
> >
> > [In host os]
> > 1. build a ROOTFS for booting up a vm using 9pfs
> > 2. mount -t overlay -olowerdir=${lower},upperdir=${upper},workdir={work} none ${ROOTFS}/mnt
> > 3. run a vm using 9pfs
> >    e.g. http://www.linux-kvm.org/page/9p_virtio
> > [In guest os]
> > 4. cd /mnt
> > 5. mkdir 1
> > 6. rm -rf 1; mkdir 1
> 
> In the stack trace above I don'[t see overlayfs calls.  So apparently
> the mkdir goes directly to the 9p filesystem.  So where's overlayfs in
> all this?

It's probably as he described:
host os overlayfs mount exported by qemu as a 9P mount to a guest linux

The warning is on the client (where 9P is mounted), basically
complaining that the server, so qemu, is lying -- and it is because
overlayfs apparently does.


You won't see any new crash/warn with 9p and overlayfs mixed in because
that broke in 4.2 (4bacc9 "overlayfs: Make f_path always point to the
overlay and f_inode to the underlay"), and I never got any reply when
asking how 9P could "pick" its inode/file struct.
Maybe that's not possible and I should look for another way of fixing
this, but I haven't had much time and no-one seems to care...
Anyway, I don't mean to hijack this thread, sorry for disgressing.

-- 
Dominique Martinet

      reply	other threads:[~2015-10-12 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-12  8:01 [RFC][PATCH] ovl: count subdirs to get the correct link count Zheng Liu
2015-10-12 14:35 ` Miklos Szeredi
2015-10-12 16:15   ` Dominique Martinet [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=20151012161528.GA22376@nautica \
    --to=asmadeus@codewreck.org \
    --cc=gnehzuil.liu@gmail.com \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=v9fs-developer@lists.sourceforge.net \
    --cc=wenqing.lz@taobao.com \
    /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