Browse code

btrfs: build tags

Default to the same build behavior, but allow a go build tag to disable
building of the btrfs graphdriver

go build -tags no_btrfs' ...
$ go build
$ objdump -S docker | grep btrfs | wc -l
194
$ go build -tags no_btrfs
$ objdump -S docker | grep btrfs | wc -l
1
# that is a comment ;-)

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)

Vincent Batts authored on 2014/03/14 04:10:35
Showing 2 changed files
... ...
@@ -16,7 +16,6 @@ import (
16 16
 	"github.com/dotcloud/docker/runtime/execdriver/execdrivers"
17 17
 	"github.com/dotcloud/docker/runtime/execdriver/lxc"
18 18
 	"github.com/dotcloud/docker/runtime/graphdriver"
19
-	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
20 19
 	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs"
21 20
 	_ "github.com/dotcloud/docker/runtime/networkdriver/lxc"
22 21
 	"github.com/dotcloud/docker/runtime/networkdriver/portallocator"
23 22
new file mode 100644
... ...
@@ -0,0 +1,7 @@
0
+// +build !no_btrfs
1
+
2
+package runtime
3
+
4
+import (
5
+	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
6
+)