<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - duplicate bind mounts"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81695#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - duplicate bind mounts"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81695">bug 81695</a>
from <span class="vcard"><a class="email" href="mailto:bugfood-c@fatooh.org" title="Corey Hickey <bugfood-c@fatooh.org>"> <span class="fn">Corey Hickey</span></a>
</span></b>
<pre>Thanks for the explanation. I do wish the default behavior hadn't changed, but
this does get me an acceptable workaround. I wasn't aware of those mount
options. I think what I actually want is --make-private, i.e.:
[root@dcoreytest01 mnt]# mount --bind --make-private / foo
[root@dcoreytest01 mnt]# mount --bind --make-private / bar
[root@dcoreytest01 mnt]# mount | egrep '(foo|bar)'
/dev/vda3 on /mnt/foo type ext4 (rw,relatime,data=ordered)
/dev/vda3 on /mnt/bar type ext4 (rw,relatime,data=ordered)
That works fine for me. Alternatively, making / private first works as well:
[root@dcoreytest01 mnt]# mount --make-private /
[root@dcoreytest01 mnt]# mount --bind / foo
[root@dcoreytest01 mnt]# mount --bind / bar
[root@dcoreytest01 mnt]# mount | egrep '(foo|bar)'
/dev/vda3 on /mnt/foo type ext4 (rw,relatime,data=ordered)
/dev/vda3 on /mnt/bar type ext4 (rw,relatime,data=ordered)
Thanks,
Corey</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>