~go-bot/juju-core/trunk

« back to all changes in this revision

Viewing changes to container/lxc/export_test.go

[r=wallyworld],[bug=1318485] Use lxc clone by default

All providers now support configuring lxc
clone support, not just local provider. The
config attributes which previously were just
for local provider now are available on all
providers:
lxc-clone
lxc-clone-aufs

lxc-clone, if unspecified, will be set to
true if the underlying platform supports it.
The test is for Ubuntu trusty or greater. The
final check is done when the container manager
is created.

1.19.2 used a setting lxc-use-clone. This is now
removed in place of the universal lxc-clone setting.

https://codereview.appspot.com/94410043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
package lxc
5
5
 
 
6
import "launchpad.net/juju-core/container"
 
7
 
6
8
var (
7
9
        ContainerConfigFilename = containerConfigFilename
8
10
        ContainerDirFilesystem  = containerDirFilesystem
9
11
        GenerateNetworkConfig   = generateNetworkConfig
10
12
        NetworkConfigTemplate   = networkConfigTemplate
11
13
        RestartSymlink          = restartSymlink
 
14
        ReleaseVersion          = &releaseVersion
 
15
        PreferFastLXC           = preferFastLXC
12
16
)
 
17
 
 
18
func GetCreateWithCloneValue(mgr container.Manager) bool {
 
19
        return mgr.(*containerManager).createWithClone
 
20
}