Re: Bind Mount Extensions (RO --bind mounts)

From: Sean Neakums
Date: Tue Mar 09 2004 - 06:33:28 EST


Olivier ARCHER <olivier.archer@xxxxxxxxx> writes:

> Hi,
> I've tried
> http://www.ussg.iu.edu/hypermail/linux/kernel/0309.3/0802.html
> to try the 'Bind Mount Extensions (RO --bind mounts)'
>
> I've applied the patch on 2.4.24 and 2.6.3, without effects, ie
>
> mount -t ext2 -o ro /dev/hdc7 /mnt/ro
> mount --bind -o rw /mnt/ro /mnt/ro2rw
> touch /mnt/ro2rw/test
> touch: connot touch '/mnt/ro2rw/test': Read Only file system
>
> have I miss something ?

As far as I can tell, you have it backwards. BME seems to be designed
to enable you to do ro binds of an rw FS, not an rw bind of an ro FS.

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