From: "H. Peter Anvin" <hpa@zytor.com>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Al Viro <viro@ftp.linux.org.uk>,
Mark Cannon <random.bits@rogers.com>,
linux-kernel@vger.kernel.org
Subject: Re: Use of directories to hold root?
Date: Sun, 12 Aug 2007 13:57:53 -0700 [thread overview]
Message-ID: <46BF7451.2020306@zytor.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0708122253360.28963@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
> On Aug 12 2007 21:23, Al Viro wrote:
>>> pivot_root is atomic afaict, for `mount --move` (which I think Al meant
>>> which MS_MOVE - or some C program using mount(2) of your own), you'd
>>> need multiple calls to mount.
>> Move itself is done by a single syscall anyway...
>>
> Yes, but you need needed 2 mounts, 1 chdir and one chroot. Plus, you
> have not freed the data in the rootfs. (Well, neither does
> pivot_root, but run-init from klibc will.)
Yes, which is why it is highly inappropriate for this particular case,
since they have multiple roots that they presumably don't want deleted!
-hpa
prev parent reply other threads:[~2007-08-12 21:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 21:24 Use of directories to hold root? Mark Cannon
2007-08-10 21:33 ` Jan Engelhardt
2007-08-11 0:08 ` H. Peter Anvin
2007-08-11 15:55 ` Jan Engelhardt
2007-08-11 16:07 ` Al Viro
2007-08-12 19:39 ` Mark Cannon
2007-08-12 19:49 ` Jan Engelhardt
2007-08-12 20:23 ` Al Viro
2007-08-12 20:55 ` Jan Engelhardt
2007-08-12 20:57 ` H. Peter Anvin [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=46BF7451.2020306@zytor.com \
--to=hpa@zytor.com \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=random.bits@rogers.com \
--cc=viro@ftp.linux.org.uk \
/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