[lxc-devel] RFC: should lxc-create default to -B best?

Dwight Engen dwight.engen at oracle.com
Wed Sep 24 18:42:00 UTC 2014


In lxc-0.9.0 if -B wasn't given to lxc-create (the shell script), it
would test if $rootfs was on a btrfs and if so would act as if -B btrfs
were given (ie. create a subvolume).

In lxc-1.x with the bdev backend, lxc-create has the option -B best
which would have a similar result, but this is not the default. Is
there a reason 'dir' was made the default? This seems like a change in
default behavior, at least with respect to btrfs backend storage. I'd
be happy to send a patch making lxc-create default to -B best, but
wanted to understand if there were any issues first. Thanks.

P.S. doing this change might allow simplification of the lxc-ubuntu
template since it appears to always create a subvolume when $rootfs is
a btrfs.


More information about the lxc-devel mailing list