From 24c03b2d938d383dd7669dc8faad7e2110a11173 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Wed, 27 Nov 2013 19:12:51 -0800 Subject: [PATCH] Make devicemapper linux-only --- graphdriver/devmapper/attachLoopback.go | 2 ++ graphdriver/devmapper/deviceset.go | 2 ++ graphdriver/devmapper/devmapper.go | 2 ++ graphdriver/devmapper/devmapper_log.go | 2 ++ graphdriver/devmapper/devmapper_test.go | 2 ++ graphdriver/devmapper/devmapper_wrapper.go | 2 ++ graphdriver/devmapper/driver.go | 2 ++ graphdriver/devmapper/driver_test.go | 2 ++ graphdriver/devmapper/ioctl.go | 2 ++ graphdriver/devmapper/mount.go | 2 ++ graphdriver/devmapper/sys.go | 2 ++ 11 files changed, 22 insertions(+) diff --git a/graphdriver/devmapper/attachLoopback.go b/graphdriver/devmapper/attachLoopback.go index 0d556d81c2..57c9a1efa7 100644 --- a/graphdriver/devmapper/attachLoopback.go +++ b/graphdriver/devmapper/attachLoopback.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/deviceset.go b/graphdriver/devmapper/deviceset.go index 77d865ad99..f04cbdc2bd 100644 --- a/graphdriver/devmapper/deviceset.go +++ b/graphdriver/devmapper/deviceset.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/devmapper.go b/graphdriver/devmapper/devmapper.go index db41ed6c25..dfbdf385d7 100644 --- a/graphdriver/devmapper/devmapper.go +++ b/graphdriver/devmapper/devmapper.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/devmapper_log.go b/graphdriver/devmapper/devmapper_log.go index 1f95eb7bac..8d54ad4e3a 100644 --- a/graphdriver/devmapper/devmapper_log.go +++ b/graphdriver/devmapper/devmapper_log.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import "C" diff --git a/graphdriver/devmapper/devmapper_test.go b/graphdriver/devmapper/devmapper_test.go index ce22864361..a43e32e059 100644 --- a/graphdriver/devmapper/devmapper_test.go +++ b/graphdriver/devmapper/devmapper_test.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/devmapper_wrapper.go b/graphdriver/devmapper/devmapper_wrapper.go index 1b636d392f..df95a41e13 100644 --- a/graphdriver/devmapper/devmapper_wrapper.go +++ b/graphdriver/devmapper/devmapper_wrapper.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper /* diff --git a/graphdriver/devmapper/driver.go b/graphdriver/devmapper/driver.go index b08d5768ef..10ac172562 100644 --- a/graphdriver/devmapper/driver.go +++ b/graphdriver/devmapper/driver.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/driver_test.go b/graphdriver/devmapper/driver_test.go index 3204575dd9..bc443a787a 100644 --- a/graphdriver/devmapper/driver_test.go +++ b/graphdriver/devmapper/driver_test.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/ioctl.go b/graphdriver/devmapper/ioctl.go index 65c6c1a512..448d2d5a50 100644 --- a/graphdriver/devmapper/ioctl.go +++ b/graphdriver/devmapper/ioctl.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/mount.go b/graphdriver/devmapper/mount.go index 7a07fff1e8..d0050484bf 100644 --- a/graphdriver/devmapper/mount.go +++ b/graphdriver/devmapper/mount.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import ( diff --git a/graphdriver/devmapper/sys.go b/graphdriver/devmapper/sys.go index 9cf124a9a5..ea33e600bc 100644 --- a/graphdriver/devmapper/sys.go +++ b/graphdriver/devmapper/sys.go @@ -1,3 +1,5 @@ +// +build linux + package devmapper import (