public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	Bernd Eckenfels <ecki@calista.eckenfels.6bone.ka-ip.net>,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: RO --bind mount implementation ...
Date: Tue, 5 Aug 2003 17:59:24 +0100	[thread overview]
Message-ID: <20030805165924.GF12757@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030804221615.GA18521@www.13thfloor.at>

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)

But yes, it's not that far from where we should eventualy get.

  parent reply	other threads:[~2003-08-05 17:02 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 [this message]
2003-08-05 22:51   ` Herbert Pötzl
2003-08-05 23:14     ` Herbert Pötzl

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=20030805165924.GF12757@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=ecki@calista.eckenfels.6bone.ka-ip.net \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --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