From cdf7c6a1a786e4148420562b1a8bd887dfe52ef0 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 13 Mar 2014 15:10:35 -0400 Subject: [PATCH] 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 (github: vbatts) Upstream-commit: 85a62d9b779bfb351e159f38c2fc95900a0532cd Component: engine --- components/engine/runtime/runtime.go | 1 - components/engine/runtime/runtime_btfs.go | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 components/engine/runtime/runtime_btfs.go diff --git a/components/engine/runtime/runtime.go b/components/engine/runtime/runtime.go index 43230488a2..4408e13902 100644 --- a/components/engine/runtime/runtime.go +++ b/components/engine/runtime/runtime.go @@ -16,7 +16,6 @@ import ( "github.com/dotcloud/docker/runtime/execdriver/execdrivers" "github.com/dotcloud/docker/runtime/execdriver/lxc" "github.com/dotcloud/docker/runtime/graphdriver" - _ "github.com/dotcloud/docker/runtime/graphdriver/btrfs" _ "github.com/dotcloud/docker/runtime/graphdriver/vfs" _ "github.com/dotcloud/docker/runtime/networkdriver/lxc" "github.com/dotcloud/docker/runtime/networkdriver/portallocator" diff --git a/components/engine/runtime/runtime_btfs.go b/components/engine/runtime/runtime_btfs.go new file mode 100644 index 0000000000..5e941386c3 --- /dev/null +++ b/components/engine/runtime/runtime_btfs.go @@ -0,0 +1,7 @@ +// +build !no_btrfs + +package runtime + +import ( + _ "github.com/dotcloud/docker/runtime/graphdriver/btrfs" +)