]> git.ipfire.org Git - thirdparty/lxc.git/commit
bdev_create: don't default to btrfs if possible
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 15 Aug 2013 17:22:26 +0000 (12:22 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 15 Aug 2013 20:35:18 +0000 (15:35 -0500)
commitd3060bd055eac45c1767e1e80fcaba763eb7477d
tree2ab9a4bba5e151a1a01f7715f5abdccdc72a6975
parentd007f8ab3da297ed0de884e0c6e57a66de2fcb42
bdev_create: don't default to btrfs if possible

Ideally it would be great to default to a btrfs subvolume for each new
container created.  However, this is not as we previously thought
without consequence.  'rsync --one-file-system' will not descend into
btrfs subvolumes.  This means that 'lxc-create -B _unset' will cause
different behavior for rsync -vax /var/lib/lxc based on whether that
fs is btrfs or not.

So don't do that.  If -B is not specified, use -B dir.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.c