Re: RO --bind mount implementation ...

From: viro@parcelfarce.linux.theplanet.co.uk
Date: Tue Aug 05 2003 - 11:59:24 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:29 EST