From 6c96239eaa600a30e1ee42650ed76375104bf70f Mon Sep 17 00:00:00 2001 From: Daniel Swarbrick Date: Sun, 12 May 2024 18:53:12 +0200 Subject: [PATCH] zfs: rename zfs.go to zfs_common.go Also add build-tags to ensure it is ignored on non-relevant archs. Signed-off-by: Daniel Swarbrick --- collector/{zfs.go => zfs_common.go} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename collector/{zfs.go => zfs_common.go} (89%) diff --git a/collector/zfs.go b/collector/zfs_common.go similarity index 89% rename from collector/zfs.go rename to collector/zfs_common.go index 11b46fae..7934ec5a 100644 --- a/collector/zfs.go +++ b/collector/zfs_common.go @@ -11,8 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !nozfs +//go:build !nozfs && (freebsd || linux || solaris) // +build !nozfs +// +build freebsd linux solaris package collector