[lxc-devel] snapshots location
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Apr 16 14:40:54 UTC 2014
Hi,
Some time ago someone pointed out that the current lxc snapshot location
isn't ideal. If you have a btrfs mounted at /var/lib/lxc, then the
snapshot locatoni /var/lib/lxcsnaps is not btrfs.
So I'm proposing that
1. we move the snapshot location to /var/lib/lxc/lxcsnaps
2. lxc_container_new() refuses 'lxcsnaps' as a container name
3. snapshot actions first check whether /var/lib/lxcsnaps exists; if so,
and it is non-empty, then uses it. Otherwise it uses the new
location.
Any objections? I didn't want to do this because I didn't want any
cruft under LXCPATH, but I think I'm ok with it, and I don't think
anyone should be bothering to ls /var/lib/lxc anymore, lxc-ls is so
much nicer.
-serge
More information about the lxc-devel
mailing list