linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jordi Pujol <jordipujolp@gmail.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Amir Goldstein <amir73il@gmail.com>,
	overlayfs <linux-unionfs@vger.kernel.org>,
	Andrei Vagin <avagin@openvz.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Ram Pai <linuxram@us.ibm.com>
Subject: Re: ovl: mounting two times the same mount overlayfs will not list any directory entry anymore
Date: Thu, 14 Sep 2017 16:54:21 +0200	[thread overview]
Message-ID: <CACTE=grAxpm_Bpfa85tCtR7ORt2Y2r1Ee64LHO74ORy693GCuA@mail.gmail.com> (raw)
In-Reply-To: <CAJfpegtRqtAG=9mr48VjbL-OuM9cVmPh3Qpc1mFu4EaoaJZEuQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 718 bytes --]

Here is kernel v4.13 and one squashfs file

Thanks,

Jordi Pujol

On Thu, Sep 14, 2017 at 12:12 PM, Miklos Szeredi <miklos@szeredi.hu> wrote:
> On Tue, Sep 12, 2017 at 3:04 PM, Jordi Pujol <jordipujolp@gmail.com> wrote:
>> On Tue, Sep 12, 2017 at 12:47 PM, Amir Goldstein <amir73il@gmail.com> wrote:
>>
>>> So is this reproducible at every run with v4.13?
>> yes,
>>
>>> Are you able to try this without overlayfs? i.e. chroot to squashfs mount?
>> I have found the same in 4.12 when mounting only one squashfs image.
>> Therefore we could say that when working with previous versions
>> overlayfs was solving the problem in some way.
>
> Can you please post the contents of /proc/self/mountinfo?
>
> Thanks,
> Miklos

[-- Attachment #2: notes.txt --]
[-- Type: text/plain, Size: 505 bytes --]

root@pcjordi:notes# cat /proc/self/mountinfo > mountinfo-4.13.2-previous,txt
root@pcjordi:notes# mkdir /tmp/fs
root@pcjordi:notes# mount -o loop,ro /lnet/image/LneTLXQT64/00filesystem.squashfs /tmp/fs/     
root@pcjordi:notes# mount -o bind /tmp /tmp/fs/tmp/
root@pcjordi:notes# cat /proc/self/mountinfo > mountinfo-4.13.2-mount1,txt
root@pcjordi:notes# mount -o bind /tmp /tmp/fs/tmp/
root@pcjordi:notes# ls -lA /tmp/fs/
total 0
root@pcjordi:notes# cat /proc/self/mountinfo > mountinfo-4.13.2-mount2,txt

[-- Attachment #3: mountinfo-4.13.2-mount1,txt --]
[-- Type: application/octet-stream, Size: 3937 bytes --]

17 27 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:15 - sysfs sysfs rw
18 27 0:5 / /proc rw,nosuid,nodev,noexec,relatime shared:21 - proc proc rw
19 27 0:6 / /dev rw,nosuid,relatime shared:10 - devtmpfs udev rw,size=3913928k,nr_inodes=978482,mode=755
20 19 0:18 / /dev/pts rw,nosuid,noexec,relatime shared:11 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
21 27 0:19 / /run rw,nosuid,noexec,relatime shared:13 - tmpfs tmpfs rw,size=786156k,mode=755
22 27 0:20 / /lnet rw,relatime shared:5 - tmpfs tmpfs rw,size=7861540k,mode=755
23 22 8:1 / /lnet/image ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
24 22 7:0 / /lnet/00filesystem.squashfs ro,noatime shared:7 - squashfs /dev/loop0 ro
25 22 7:1 / /lnet/10interfaces.squashfs ro,noatime shared:8 - squashfs /dev/loop1 ro
26 22 8:2 / /lnet/cowroot rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
27 1 0:21 / / rw,relatime shared:1 - overlay overlay rw,lowerdir=/lnet/00filesystem.squashfs:/lnet/10interfaces.squashfs,upperdir=/lnet/cowroot/LneTXFCECOW/upper,workdir=/lnet/cowroot/LneTXFCECOW/work,index=off
31 27 0:22 / /tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k
32 27 0:23 / /var/log rw,nosuid,relatime shared:3 - tmpfs tmpfs rw,size=7861540k,mode=755
33 27 0:24 / /var/tmp rw,nosuid,nodev,relatime shared:4 - tmpfs tmpfs rw,size=7861540k
34 17 0:7 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:16 - securityfs securityfs rw
35 19 0:25 / /dev/shm rw,nosuid,nodev shared:12 - tmpfs tmpfs rw
36 21 0:26 / /run/lock rw,nosuid,nodev,noexec,relatime shared:14 - tmpfs tmpfs rw,size=5120k
37 17 0:27 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:17 - tmpfs tmpfs ro,mode=755
38 37 0:28 / /sys/fs/cgroup/unified rw,nosuid,nodev,noexec,relatime shared:18 - cgroup2 cgroup rw
39 37 0:29 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:19 - cgroup cgroup rw,xattr,name=systemd
40 17 0:30 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:20 - pstore pstore rw
41 37 0:31 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime shared:22 - cgroup cgroup rw,cpu
42 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:23 - autofs systemd-1 rw,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct
43 27 8:1 /LneTXFCE64 /boot ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
44 19 0:16 / /dev/mqueue rw,relatime shared:24 - mqueue mqueue rw
45 19 0:33 / /dev/hugepages rw,relatime shared:25 - hugetlbfs hugetlbfs rw,pagesize=2M
46 27 8:2 /LneTXFCEhome /home rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
47 17 0:8 / /sys/kernel/debug rw,relatime shared:26 - debugfs debugfs rw
48 43 8:1 /grub /boot/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
49 23 8:1 /grub /lnet/image/LneTXFCE64/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
50 46 8:2 /JPLive /home/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
51 26 8:2 /JPLive /lnet/cowroot/LneTXFCEhome/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
52 27 8:2 /JPLive/apt-lib-amd64 /var/lib/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
53 27 8:2 /LneTXFCEhome/root /root rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
54 27 8:2 /JPLive/apt-cache-amd64 /var/cache/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
55 27 8:2 /JPLive/var-spool /var/spool rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
232 21 0:37 / /run/user/1001 rw,nosuid,nodev,relatime shared:162 - tmpfs tmpfs rw,size=786152k,mode=700,uid=1001,gid=100
237 27 0:38 / /media/sshfs rw,nosuid,nodev,relatime shared:166 - fuse.sshfs livenet://home rw,user_id=0,group_id=0,allow_other
243 17 0:39 / /sys/fs/fuse/connections rw,relatime shared:170 - fusectl fusectl rw
248 31 7:2 / /tmp/fs ro,relatime shared:174 - squashfs /dev/loop2 ro
253 248 0:22 / /tmp/fs/tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k

[-- Attachment #4: mountinfo-4.13.2-mount2,txt --]
[-- Type: application/octet-stream, Size: 4113 bytes --]

17 27 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:15 - sysfs sysfs rw
18 27 0:5 / /proc rw,nosuid,nodev,noexec,relatime shared:21 - proc proc rw
19 27 0:6 / /dev rw,nosuid,relatime shared:10 - devtmpfs udev rw,size=3913928k,nr_inodes=978482,mode=755
20 19 0:18 / /dev/pts rw,nosuid,noexec,relatime shared:11 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
21 27 0:19 / /run rw,nosuid,noexec,relatime shared:13 - tmpfs tmpfs rw,size=786156k,mode=755
22 27 0:20 / /lnet rw,relatime shared:5 - tmpfs tmpfs rw,size=7861540k,mode=755
23 22 8:1 / /lnet/image ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
24 22 7:0 / /lnet/00filesystem.squashfs ro,noatime shared:7 - squashfs /dev/loop0 ro
25 22 7:1 / /lnet/10interfaces.squashfs ro,noatime shared:8 - squashfs /dev/loop1 ro
26 22 8:2 / /lnet/cowroot rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
27 1 0:21 / / rw,relatime shared:1 - overlay overlay rw,lowerdir=/lnet/00filesystem.squashfs:/lnet/10interfaces.squashfs,upperdir=/lnet/cowroot/LneTXFCECOW/upper,workdir=/lnet/cowroot/LneTXFCECOW/work,index=off
31 27 0:22 / /tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k
32 27 0:23 / /var/log rw,nosuid,relatime shared:3 - tmpfs tmpfs rw,size=7861540k,mode=755
33 27 0:24 / /var/tmp rw,nosuid,nodev,relatime shared:4 - tmpfs tmpfs rw,size=7861540k
34 17 0:7 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:16 - securityfs securityfs rw
35 19 0:25 / /dev/shm rw,nosuid,nodev shared:12 - tmpfs tmpfs rw
36 21 0:26 / /run/lock rw,nosuid,nodev,noexec,relatime shared:14 - tmpfs tmpfs rw,size=5120k
37 17 0:27 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:17 - tmpfs tmpfs ro,mode=755
38 37 0:28 / /sys/fs/cgroup/unified rw,nosuid,nodev,noexec,relatime shared:18 - cgroup2 cgroup rw
39 37 0:29 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:19 - cgroup cgroup rw,xattr,name=systemd
40 17 0:30 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:20 - pstore pstore rw
41 37 0:31 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime shared:22 - cgroup cgroup rw,cpu
42 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:23 - autofs systemd-1 rw,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct
43 27 8:1 /LneTXFCE64 /boot ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
44 19 0:16 / /dev/mqueue rw,relatime shared:24 - mqueue mqueue rw
45 19 0:33 / /dev/hugepages rw,relatime shared:25 - hugetlbfs hugetlbfs rw,pagesize=2M
46 27 8:2 /LneTXFCEhome /home rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
47 17 0:8 / /sys/kernel/debug rw,relatime shared:26 - debugfs debugfs rw
48 43 8:1 /grub /boot/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
49 23 8:1 /grub /lnet/image/LneTXFCE64/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
50 46 8:2 /JPLive /home/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
51 26 8:2 /JPLive /lnet/cowroot/LneTXFCEhome/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
52 27 8:2 /JPLive/apt-lib-amd64 /var/lib/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
53 27 8:2 /LneTXFCEhome/root /root rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
54 27 8:2 /JPLive/apt-cache-amd64 /var/cache/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
55 27 8:2 /JPLive/var-spool /var/spool rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
232 21 0:37 / /run/user/1001 rw,nosuid,nodev,relatime shared:162 - tmpfs tmpfs rw,size=786152k,mode=700,uid=1001,gid=100
237 27 0:38 / /media/sshfs rw,nosuid,nodev,relatime shared:166 - fuse.sshfs livenet://home rw,user_id=0,group_id=0,allow_other
243 17 0:39 / /sys/fs/fuse/connections rw,relatime shared:170 - fusectl fusectl rw
248 31 7:2 / /tmp/fs ro,relatime shared:174 - squashfs /dev/loop2 ro
253 248 0:22 / /tmp/fs/tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k
258 253 0:22 / /tmp/fs/tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k
259 31 0:22 / /tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k

[-- Attachment #5: mountinfo-4.13.2-previous,txt --]
[-- Type: application/octet-stream, Size: 3776 bytes --]

17 27 0:17 / /sys rw,nosuid,nodev,noexec,relatime shared:15 - sysfs sysfs rw
18 27 0:5 / /proc rw,nosuid,nodev,noexec,relatime shared:21 - proc proc rw
19 27 0:6 / /dev rw,nosuid,relatime shared:10 - devtmpfs udev rw,size=3913928k,nr_inodes=978482,mode=755
20 19 0:18 / /dev/pts rw,nosuid,noexec,relatime shared:11 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
21 27 0:19 / /run rw,nosuid,noexec,relatime shared:13 - tmpfs tmpfs rw,size=786156k,mode=755
22 27 0:20 / /lnet rw,relatime shared:5 - tmpfs tmpfs rw,size=7861540k,mode=755
23 22 8:1 / /lnet/image ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
24 22 7:0 / /lnet/00filesystem.squashfs ro,noatime shared:7 - squashfs /dev/loop0 ro
25 22 7:1 / /lnet/10interfaces.squashfs ro,noatime shared:8 - squashfs /dev/loop1 ro
26 22 8:2 / /lnet/cowroot rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
27 1 0:21 / / rw,relatime shared:1 - overlay overlay rw,lowerdir=/lnet/00filesystem.squashfs:/lnet/10interfaces.squashfs,upperdir=/lnet/cowroot/LneTXFCECOW/upper,workdir=/lnet/cowroot/LneTXFCECOW/work,index=off
31 27 0:22 / /tmp rw,nosuid,nodev,relatime shared:2 - tmpfs tmpfs rw,size=7861540k
32 27 0:23 / /var/log rw,nosuid,relatime shared:3 - tmpfs tmpfs rw,size=7861540k,mode=755
33 27 0:24 / /var/tmp rw,nosuid,nodev,relatime shared:4 - tmpfs tmpfs rw,size=7861540k
34 17 0:7 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:16 - securityfs securityfs rw
35 19 0:25 / /dev/shm rw,nosuid,nodev shared:12 - tmpfs tmpfs rw
36 21 0:26 / /run/lock rw,nosuid,nodev,noexec,relatime shared:14 - tmpfs tmpfs rw,size=5120k
37 17 0:27 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:17 - tmpfs tmpfs ro,mode=755
38 37 0:28 / /sys/fs/cgroup/unified rw,nosuid,nodev,noexec,relatime shared:18 - cgroup2 cgroup rw
39 37 0:29 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:19 - cgroup cgroup rw,xattr,name=systemd
40 17 0:30 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:20 - pstore pstore rw
41 37 0:31 / /sys/fs/cgroup/cpu rw,nosuid,nodev,noexec,relatime shared:22 - cgroup cgroup rw,cpu
42 18 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:23 - autofs systemd-1 rw,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct
43 27 8:1 /LneTXFCE64 /boot ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
44 19 0:16 / /dev/mqueue rw,relatime shared:24 - mqueue mqueue rw
45 19 0:33 / /dev/hugepages rw,relatime shared:25 - hugetlbfs hugetlbfs rw,pagesize=2M
46 27 8:2 /LneTXFCEhome /home rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
47 17 0:8 / /sys/kernel/debug rw,relatime shared:26 - debugfs debugfs rw
48 43 8:1 /grub /boot/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
49 23 8:1 /grub /lnet/image/LneTXFCE64/grub ro,noatime shared:6 - ext2 /dev/sda1 ro,errors=continue,nouser_xattr,noacl
50 46 8:2 /JPLive /home/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
51 26 8:2 /JPLive /lnet/cowroot/LneTXFCEhome/JPLive rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
52 27 8:2 /JPLive/apt-lib-amd64 /var/lib/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
53 27 8:2 /LneTXFCEhome/root /root rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
54 27 8:2 /JPLive/apt-cache-amd64 /var/cache/apt rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
55 27 8:2 /JPLive/var-spool /var/spool rw,relatime shared:9 - ext4 /dev/sda2 rw,data=ordered
232 21 0:37 / /run/user/1001 rw,nosuid,nodev,relatime shared:162 - tmpfs tmpfs rw,size=786152k,mode=700,uid=1001,gid=100
237 27 0:38 / /media/sshfs rw,nosuid,nodev,relatime shared:166 - fuse.sshfs livenet://home rw,user_id=0,group_id=0,allow_other
243 17 0:39 / /sys/fs/fuse/connections rw,relatime shared:170 - fusectl fusectl rw

      reply	other threads:[~2017-09-14 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12  9:38 ovl: mounting two times the same mount overlayfs will not list any directory entry anymore Jordi Pujol Palomer
2017-09-12 10:47 ` Amir Goldstein
2017-09-12 13:04   ` Jordi Pujol
2017-09-14 10:12     ` Miklos Szeredi
2017-09-14 14:54       ` Jordi Pujol [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACTE=grAxpm_Bpfa85tCtR7ORt2Y2r1Ee64LHO74ORy693GCuA@mail.gmail.com' \
    --to=jordipujolp@gmail.com \
    --cc=amir73il@gmail.com \
    --cc=avagin@openvz.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=linuxram@us.ibm.com \
    --cc=miklos@szeredi.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).