mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
686be57d0a
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
27 lines
545 B
Go
27 lines
545 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
|
|
|
/*
|
|
#include <btrfs/version.h>
|
|
|
|
// around version 3.16, they did not define lib version yet
|
|
#ifndef BTRFS_LIB_VERSION
|
|
#define BTRFS_LIB_VERSION -1
|
|
#endif
|
|
|
|
// upstream had removed it, but now it will be coming back
|
|
#ifndef BTRFS_BUILD_VERSION
|
|
#define BTRFS_BUILD_VERSION "-"
|
|
#endif
|
|
*/
|
|
import "C"
|
|
|
|
func btrfsBuildVersion() string {
|
|
return string(C.BTRFS_BUILD_VERSION)
|
|
}
|
|
|
|
func btrfsLibVersion() int {
|
|
return int(C.BTRFS_LIB_VERSION)
|
|
}
|