Comment 5 for bug 959352

Gary Poster (gary) wrote :

Hi Serge. Thanks for looking at this.

On an aufs-mounted ephemeral:

gary@lpdev-temp-tKJg9Ss:~$ cat /proc/self/maps
08048000-08054000 r-xp 00000000 08:12 414657 /var/lib/lxc/lpdev/rootfs/bin/cat
08054000-08055000 r--p 0000b000 08:12 414657 /var/lib/lxc/lpdev/rootfs/bin/cat
08055000-08056000 rw-p 0000c000 08:12 414657 /var/lib/lxc/lpdev/rootfs/bin/cat
09aba000-09adb000 rw-p 00000000 00:00 0 [heap]
f7629000-f762a000 rw-p 00000000 00:00 0
f762a000-f777d000 r-xp 00000000 08:12 395454 /var/lib/lxc/lpdev/rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f777d000-f777f000 r--p 00153000 08:12 395454 /var/lib/lxc/lpdev/rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f777f000-f7780000 rw-p 00155000 08:12 395454 /var/lib/lxc/lpdev/rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f7780000-f7783000 rw-p 00000000 00:00 0
f778d000-f778f000 rw-p 00000000 00:00 0
f778f000-f7790000 r-xp 00000000 00:00 0 [vdso]
f7790000-f77ab000 r-xp 00000000 08:12 393068 /var/lib/lxc/lpdev/rootfs/lib/ld-2.11.1.so
f77ab000-f77ac000 r--p 0001a000 08:12 393068 /var/lib/lxc/lpdev/rootfs/lib/ld-2.11.1.so
f77ac000-f77ad000 rw-p 0001b000 08:12 393068 /var/lib/lxc/lpdev/rootfs/lib/ld-2.11.1.so
ffd7f000-ffda0000 rw-p 00000000 00:00 0 [stack]

gary@lpdev-temp-tKJg9Ss:~$ cat /proc/self/mounts
rootfs / rootfs rw 0 0
none / aufs rw,relatime,si=bf91329ce378bd10,noplink 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /home/gary aufs rw,relatime,si=bf91329dec9efd10,noplink 0 0
devpts /dev/console devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty1 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty2 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty3 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty4 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=666 0 0
devpts /dev/ptmx devpts rw,relatime,mode=600,ptmxmode=666 0 0
none /lib/init/fstab aufs rw,relatime,si=bf91329ce378bd10,noplink 0 0

On an overlayfs-mounted ephemeral:

gary@lpdev-temp-P4zdc8P:~$ cat /proc/self/maps
08048000-08054000 r-xp 00000000 08:12 414657 /rootfs/bin/cat
08054000-08055000 r--p 0000b000 08:12 414657 /rootfs/bin/cat
08055000-08056000 rw-p 0000c000 08:12 414657 /rootfs/bin/cat
09081000-090a2000 rw-p 00000000 00:00 0 [heap]
f7586000-f7587000 rw-p 00000000 00:00 0
f7587000-f76da000 r-xp 00000000 08:12 395454 /rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f76da000-f76dc000 r--p 00153000 08:12 395454 /rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f76dc000-f76dd000 rw-p 00155000 08:12 395454 /rootfs/lib/tls/i686/cmov/libc-2.11.1.so
f76dd000-f76e0000 rw-p 00000000 00:00 0
f76ea000-f76ec000 rw-p 00000000 00:00 0
f76ec000-f76ed000 r-xp 00000000 00:00 0 [vdso]
f76ed000-f7708000 r-xp 00000000 08:12 393068 /rootfs/lib/ld-2.11.1.so
f7708000-f7709000 r--p 0001a000 08:12 393068 /rootfs/lib/ld-2.11.1.so
f7709000-f770a000 rw-p 0001b000 08:12 393068 /rootfs/lib/ld-2.11.1.so
ff936000-ff957000 rw-p 00000000 00:00 0 [stack]

gary@lpdev-temp-P4zdc8P:~$ cat /proc/self/mounts
rootfs / rootfs rw 0 0
none / overlayfs rw,relatime,lowerdir=/var/lib/lxc/lpdev,upperdir=/tmp/lxc-lp-8lXebKT 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /home/gary overlayfs rw,relatime,lowerdir=/home/gary,upperdir=/var/lib/lxc/lpdev-temp-P4zdc8P/ephemeralbind/home/gary 0 0
devpts /dev/console devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty1 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty2 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty3 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/tty4 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=666 0 0
devpts /dev/ptmx devpts rw,relatime,mode=600,ptmxmode=666 0 0
none /lib/init/fstab overlayfs rw,relatime,lowerdir=/var/lib/lxc/lpdev,upperdir=/tmp/lxc-lp-8lXebKT 0 0

The maps are obviously different. The "rootfs" is not in the aufs version, but then the paths are from the host, and for the template container. I'm not sure what to make of it myself.