From: Karel Zak <kzak@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Daniel Drake <dsd@laptop.org>, linux-fsdevel@vger.kernel.org
Subject: Re: Remount root RO after the root dentry drops from the namespace
Date: Wed, 18 Nov 2009 15:52:12 +0100 [thread overview]
Message-ID: <20091118145212.GA24178@nb.net.home> (raw)
In-Reply-To: <E1NAk7D-0005Sl-QI@pomaz-ex.szeredi.hu>
On Wed, Nov 18, 2009 at 01:58:31PM +0100, Miklos Szeredi wrote:
> On Wed, 18 Nov 2009, Daniel Drake wrote:
> >
> > if (flags & MS_BIND)
> > err = change_mount_flags(path->mnt, flags);
> > else
> > err = do_remount_sb(sb, flags, data, 0);
> >
>
> Note: the "flags" tested here are supplied from the argument of
> mount(2), and are not flags stored in the mount. And btw, MS_BIND is
> not stored in the mount at all, there's absolutely no difference
> between a mount created with "--bind" and one without.
The "flags" argument of mount(2) always contains MS_BIND for bind
mounts (if you use standard mount(8) command and /etc/mtab) for -o
remount.
Karel
--
Karel Zak <kzak@redhat.com>
next prev parent reply other threads:[~2009-11-18 14:52 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 [this message]
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
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=20091118145212.GA24178@nb.net.home \
--to=kzak@redhat.com \
--cc=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).