github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/daemon/graphdriver/btrfs/version.go (about)

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