[lxc-devel] [PATCH 1/1] snapshots: move snapshot directory

Serge Hallyn serge.hallyn at ubuntu.com
Wed Apr 30 20:25:47 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Wed, Apr 16, 2014 at 02:04:45PM -0500, Serge Hallyn wrote:
> > Originally we kept snapshots under /var/lib/lxcsnaps.  If a
> > separate btrfs is mounted at /var/lib/lxc, then we can't
> > make btrfs snapshots under /var/lib/lxcsnaps.
> > 
> > This patch moves the default directory to /var/lib/lxc/lxcsnaps.
> > If /var/lib/lxcsnaps already exists, then use that.  Don't allow
> > any container to be used with the name 'lxcsnaps'.
> 
> Just to follow up on thoughts I shared on IRC.
> 
> I wonder why we shouldn't move those to
> /var/lib/lxc/<container>/snapshots/ instead. Regardless of where they

I was wanting to keep them out of the container itself, but I
can't really make a good case for wanting that.  So +1, let's
do that - if someone else wants to write the patch before I get to
it, shout.


More information about the lxc-devel mailing list