2001-10-29 16:35:52

by Maxim Timofeyev

[permalink] [raw]
Subject: mount --bind -o ro /tmp /mnt/tmp

Why I can't mounted a r/w /tmp as r/o /mnt/tmp?

--
[2:5030/[email protected]] [[email protected]] [http://tma.spb.ru]


2001-10-29 17:06:42

by Rik van Riel

[permalink] [raw]
Subject: Re: mount --bind -o ro /tmp /mnt/tmp

On Mon, 29 Oct 2001, Maxim Timofeyev wrote:

> Why I can't mounted a r/w /tmp as r/o /mnt/tmp?

Because a filesystem being read-only is something the
kernel keeps track of on a per-superblock basis.

According to Al Viro, doing this on a per mount point
basis will be trivial in the future, once more parts
of the namespace patch will have been integrated into
the kernel.

(and yes, I'm looking forward to that day)

regards,

Rik
--
DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ (volunteers needed)

http://www.surriel.com/ http://distro.conectiva.com/