From: Goldwyn Rodrigues <rgoldwyn@suse.de>
To: linux-unionfs@vger.kernel.org
Subject: Re: Unmounting lower filesystem while overlayfs uses it
Date: Thu, 10 Mar 2016 16:22:47 -0600 [thread overview]
Message-ID: <56E1F3B7.2090306@suse.de> (raw)
In-Reply-To: <56E1CF7C.1010505@suse.de>
On 03/10/2016 01:48 PM, Goldwyn Rodrigues wrote:
> Hi,
>
> I noticed that you can continue using overlayfs while the underlying
> filesystem is unmounted. While overlayfs continues to use and show the
> entries from the underlying filesystem. Howerver, /proc/mounts is
> missing the lowerdir mount entry. This could be pretty confusing for
> users (say for example for users looking to hot swap devices)
>
> I traced it down to the vfs mount point being copied/cloned as opposed
> to using the original one. Is there a reason why a new vfsmount is used
> as opposed to using the lowerdir's vfsmount? Perhaps I did not look hard
> enough, but I did not find any changes being made to the cloned lowerdir
> vfsmount.
I found the changes to cloned vfsmount: MS_RDONLY flag.
So, we would have to preserve the stack[].mnt [from ovl_fill_super()]
variables in ovl_fs and perform the mntput() in ovl_put_super()/ Is that
okay?
--
Goldwyn
next prev parent reply other threads:[~2016-03-10 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 19:48 Unmounting lower filesystem while overlayfs uses it Goldwyn Rodrigues
2016-03-10 22:22 ` Goldwyn Rodrigues [this message]
2016-03-10 23:43 ` Theodore Ts'o
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=56E1F3B7.2090306@suse.de \
--to=rgoldwyn@suse.de \
--cc=linux-unionfs@vger.kernel.org \
/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.