<div dir="ltr">Hi All,<div><br></div><div> Binding / folder onto someother folder say /opt/lxc is not working but otherway round is working. Can I get some help on this.</div><div><br></div><div>The following code snippet is executed after cloning </div><div>After executing the following code snippet the contents of / is visible in /opt/lxc</div><div><div> ret = mount("/", "/opt/lxc", NULL, MS_BIND, NULL);</div><div> if (ret) {</div><div> perror("mount bind / on /opt/lxc");</div><div> exit(1);<br></div><div> }</div><div><br></div><div>But after executing the following code snippet the contents of /opt/lxc is not visible in /</div><div><div> ret = mount("/opt/lxc", "/", NULL, MS_BIND, NULL);</div><div> if (ret) {</div><div> perror("mount bind /opt/lxc on /");</div><div> exit(1);<br></div><div> }</div></div><div><br></div><div>The code is executing successfully, but the result is not as expected. </div><div><br></div><div>Regards,<br>Prabhu</div><div><br></div><div class="gmail_signature"><br></div>
</div></div>