github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/daemon/graphdriver/btrfs/version.go (about) 1 //go:build linux 2 // +build linux 3 4 package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" 5 6 /* 7 #include <btrfs/version.h> 8 9 // around version 3.16, they did not define lib version yet 10 #ifndef BTRFS_LIB_VERSION 11 #define BTRFS_LIB_VERSION -1 12 #endif 13 14 // upstream had removed it, but now it will be coming back 15 #ifndef BTRFS_BUILD_VERSION 16 #define BTRFS_BUILD_VERSION "-" 17 #endif 18 */ 19 import "C" 20 21 func btrfsBuildVersion() string { 22 return string(C.BTRFS_BUILD_VERSION) 23 } 24 25 func btrfsLibVersion() int { 26 return int(C.BTRFS_LIB_VERSION) 27 }