From: "Herbert Pötzl" <herbert@13thfloor.at>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: RO --bind mount implementation ...
Date: Wed, 6 Aug 2003 01:14:49 +0200 [thread overview]
Message-ID: <20030805231449.GD2594@www.13thfloor.at> (raw)
In-Reply-To: <20030805225149.GC2594@www.13thfloor.at>
On Wed, Aug 06, 2003 at 12:51:49AM +0200, Herbert Pötzl wrote:
> On Tue, Aug 05, 2003 at 05:59:24PM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote:
> > On Tue, Aug 05, 2003 at 12:16:15AM +0200, Herbert Pötzl wrote:
> >
> > > anyway, I discussed this with some friends, and
> > > they pointed out that this would be useful ...
> > > so here is the first try ...
> >
> > Umm... You know, the most obvious system call that should care about
> > read-only is open(pathname, O_RDWR) ;-) IOW, taking care of directory
> > modifications is not enough - you need to deal with
> > * opening file for write
> > * truncation (both from *truncate() and from open() with O_TRUNC)
> > * metadata changes (timestamps, ownership, permissions)
>
> well, the open case, IMHO is handled by the
> lookup_create() modifications, truncate is something
more descriptive would have been:
- I guess this is handled in open_namei() by
error = -EROFS;
if ((flag & 2) && (IS_RDONLY(inode) || MNT_IS_RDONLY(nd->mnt)))
goto exit;
> best,
> Herbert
prev parent reply other threads:[~2003-08-05 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 22:16 RO --bind mount implementation Herbert Pötzl
2003-08-04 23:43 ` Sean Neakums
2003-08-05 0:49 ` Herbert Pötzl
2003-08-05 16:59 ` viro
2003-08-05 22:51 ` Herbert Pötzl
2003-08-05 23:14 ` Herbert Pötzl [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=20030805231449.GD2594@www.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.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