Hi Serge,

> My 3.2, 3.8 and 3.11 kernels all behave the same:
>
> serge@sergeh1:~$ sudo mount -t tmpfs tmpfs /mnt
> serge@sergeh1:~$ sudo mount --bind /mnt /mnt2
> serge@sergeh1:~$ sudo mount -o remount,ro /mnt2
> serge@sergeh1:~$ sudo touch /mnt/a
> serge@sergeh1:~$ mount | grep /mnt
> tmpfs on /mnt type tmpfs (rw)
> /mnt on /mnt2 type none (ro,bind)

Oh, strange. Then maybe it's just the userns-patched 3.8 kernel
that was sent to this list a while back (it was an Ubuntu ppa,
I can't find the posting on the fly) that behaves differently.
Then maybe all of this is just a false alarm.

(The above commands produce two ro mounts in my test VM.)

(Although, I just also tested in on a Fedora 16 box with kernel
3.6.10 and with mount --make-rprivate / before executing your
commands and that also produced two ro mounts...)

Perhaps Ubuntu has a patch against standard upstream that
reverses the behaviour?

-- Christian


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to