[lxc-devel] /proc/mounts and bind mounts

Daniel Lezcano daniel.lezcano at free.fr
Thu Nov 12 09:22:54 UTC 2009


Christophe Varoqui wrote:
> Hi Daniel, all,
>
> After bind mounting /tmp on /unxtstencap in a container, the
> corresponding entry in /proc/mounts is displayed as :
> /dev/mapper/zezette-root /unxdrpencap ext4
> rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
>
> /dev/mapper/zezette-root being the device holding /tmp.
>
> The source directory information is lost. Is that expected ?
>   
Yes and that's already the case without containers. The mount 
information, done with the mount(1) command, write information in 
/etc/mtab. You should check this file instead.




More information about the lxc-devel mailing list