mirror of
https://github.com/docker/docs.git
synced 2026-03-31 16:28:59 +07:00
We removed it, because upstream removed it. But now it will be coming back, so work with it either way. Signed-off-by: Vincent Batts <vbatts@redhat.com>
27 lines
483 B
Go
27 lines
483 B
Go
// +build linux,!btrfs_noversion
|
|
|
|
package 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)
|
|
}
|