[lxc-devel] [PATCH 1/4] Automatic mounts: improvements for /proc and /sys

Serge Hallyn serge.hallyn at ubuntu.com
Fri Sep 27 05:49:30 UTC 2013


Quoting Christian Seiler (christian at iwakd.de):
> No, previously, the kernel has behaved differently. As I said,
> on my 3.2 and 2.6.32 a mount -o remount,ro /bindmount without
> the bind option would only change the bind mount and not the
> entire filesystem.

My 3.2, 3.8 and 3.11 kernels all behave the same:

serge at sergeh1:~$ sudo mount -t tmpfs tmpfs /mnt
serge at sergeh1:~$ sudo mount --bind /mnt /mnt2
serge at sergeh1:~$ sudo mount -o remount,ro /mnt2
serge at sergeh1:~$ sudo touch /mnt/a
serge at sergeh1:~$ mount | grep /mnt
tmpfs on /mnt type tmpfs (rw)
/mnt on /mnt2 type none (ro,bind)

(I'll dig deeper later.)




More information about the lxc-devel mailing list