public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arseny Sher <sher-ars@yandex.ru>
To: linux-kernel@vger.kernel.org
Subject: Changes to underlying filesystems in overlayfs
Date: Sat, 07 Nov 2015 17:28:54 +0300	[thread overview]
Message-ID: <435311446906534@web17j.yandex.ru> (raw)

Hi all,

I have some questions regarding making changes to underlying filesystems in overlayfs. From the documentation:
"Changes to the underlying filesystems while part of a mounted overlay filesystem are not allowed.  If the underlying filesystem is changed, the behavior of the overlay is undefined, though it will not result in a crash or deadlock."

Could you tell me, is it safe to
  - freeze the merged mountpoint, remounting it as ro to prevent any external changes
  - directly make changes to lowerdir or upperdir
  - immediate reboot

I hope the rebooting will clean the cache and thus manipulating underlying filesystems in this way can be considered safe. Am I right? 

There is a project overlayroot developed for mounting / as an overlay filesystem:
http://blog.dustinkirkland.com/2012/08/introducing-overlayroot-overlayfs.html
It provides utility overlayroot-chroot which lets to modify lowerdir partition while overlayfs on / is mounted.  It does this by adding proc, run, sys mounts inside lowerdir, than remounting it as rw and finally chrootting into it. It is mainly used for modyfing overlayroot config, so the next action after exiting chroot is usually reboot. The utility even doesn't freezes / while doing this, as far as I know. Is this allowed?

P.S. I know that this mail list is for unionfs'es development, not for users. Unfortunately, I couldn't find more appropriate place for such questions. I'd be happy if someone would tell me the right place.

-- 
Arseny Sher

             reply	other threads:[~2015-11-07 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-07 14:28 Arseny Sher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-11-07 12:59 Changes to underlying filesystems in overlayfs Arseny Sher

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=435311446906534@web17j.yandex.ru \
    --to=sher-ars@yandex.ru \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox