<div dir="ltr">Also here is the debug log;<div><a href="http://pastebin.com/Fh45gDLg">http://pastebin.com/Fh45gDLg</a><br></div><div><br></div><div>There's an entry that says rootfs is mounted but nothing to say it's been unmounted, and a look through the source code but I'm a bit out of my depth.</div>
<div><br></div><div>I've attempted to reproduce the bug directly using losetup/mount, but it works without problem;</div><div><a href="http://pastebin.com/Vk4M360P">http://pastebin.com/Vk4M360P</a></div><div><br></div>
<div>Cal</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 4:54 AM, Cal Leeming [Simplicity Media Ltd] <span dir="ltr"><<a href="mailto:cal.leeming@simplicitymedialtd.co.uk" target="_blank">cal.leeming@simplicitymedialtd.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sorry, I had sent the wrong link previously.<div><br></div><div>The correct link is;</div><div><a href="http://pastebin.com/chBWt5u1" target="_blank">http://pastebin.com/chBWt5u1</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Cal</div></font></span></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 4:36 AM, Cal Leeming [Simplicity Media Ltd] <span dir="ltr"><<a href="mailto:cal.leeming@simplicitymedialtd.co.uk" target="_blank">cal.leeming@simplicitymedialtd.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure if this helps but here is a simple test scenario that will reproduce the problem;<div><a href="http://pastebin.com/V0GJsNcx" target="_blank">http://pastebin.com/V0GJsNcx</a><span><font color="#888888"><br>

</font></span></div><span><font color="#888888"><div><br></div><div>Cal</div></font></span></div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 3:59 AM, Cal Leeming [Simplicity Media Ltd] <span dir="ltr"><<a href="mailto:cal.leeming@simplicitymedialtd.co.uk" target="_blank">cal.leeming@simplicitymedialtd.co.uk</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm able to create containers which use a single file for their rootfs;</div>


<div><br></div><div>$ dd if=/dev/zero of=/rootfs.img bs=1 count=1024</div><div>$ mkfs.ext4 /rootfs.img</div>
<div>-- other debootstrap commands here --</div><div><br></div><div>The image runs successfully in both lxc-start, lxc-start-ephemeral and lxc-execute.</div><div><br></div><div>However if I then attempt to delete the rootfs image after running lxc-start or lxc-execute, the disk space is not given back and I have to reboot in order to reclaim the disk space.</div>



<div><br></div><div>Does anyone know why this might be happening? Perhaps LXC is keeping a scale descriptor open somewhere?</div><div><br></div><div>Any help would be really appreciated, can provide more info/debugging if needed.</div>



<div><br></div><div>Thanks</div><span><font color="#888888"><div><br>Cal</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>