[lxc-devel] Cleanup of .hold files

Serge Hallyn serge.hallyn at ubuntu.com
Tue May 14 13:39:11 UTC 2013


Quoting Brent Tubbs (brent.tubbs at yougov.com):
> Hi,
> 
> I see in conf.c that a .hold file is automatically created whenever
> you use a directory as the rootfs.  I'm seeing those start to
> accumulate on the filesystem.  Is it my job to clean them up, or
> should there be code in LXC deleting them when the container shuts
> down?

Would be nice for lxc to remove them.

I'm not 100% sure, but I suspect if we unlink the file right after
opening it in src/lxc/conf.c:pin_rootfs(), that should still suffice
to prevent unmounting the filesystem.




More information about the lxc-devel mailing list