linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Drake <dsd@laptop.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Remount root RO after the root dentry drops from the namespace
Date: Wed, 18 Nov 2009 15:18:34 +0000	[thread overview]
Message-ID: <1258557514.23957.10.camel@localhost.localdomain> (raw)
In-Reply-To: <E1NAk7D-0005Sl-QI@pomaz-ex.szeredi.hu>

On Wed, 2009-11-18 at 13:58 +0100, Miklos Szeredi wrote:
> I see some confusion here, there's no "path/to/realroot", the bind
> mount didn't actually do anything to the namespace, it just made
> "/versions/run/1" (which will later become "/") a mountpoint.

Ah yes, I misunderstood.

This bind-mounting trick actually allows for a simplification to the
whole procedure I listed earlier. Everything is working now.

We previously added support to util-linux-ng's switch_root utility to
execute that procedure for the case when the target root is not a mount
point. I'll submit a patch to revert that and instead note this trick in
the manpage.

Thanks for your help!
Daniel



      parent reply	other threads:[~2009-11-18 15:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 11:12 Remount root RO after the root dentry drops from the namespace Daniel Drake
2009-11-18 11:50 ` Miklos Szeredi
2009-11-18 12:38   ` Daniel Drake
2009-11-18 12:58     ` Miklos Szeredi
2009-11-18 14:52       ` Karel Zak
2009-11-18 15:28         ` Miklos Szeredi
2009-11-18 17:08           ` Karel Zak
2009-11-18 17:38             ` Miklos Szeredi
2009-11-18 15:18       ` Daniel Drake [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=1258557514.23957.10.camel@localhost.localdomain \
    --to=dsd@laptop.org \
    --cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).