mirror of
https://github.com/containers/podman.git
synced 2025-10-19 12:12:36 +08:00

Bump: c/storage v1.58.0 c/image v5.35.0 c/common v0.63.0 In preparation for Podman v5.5.0 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
27 lines
474 B
Go
27 lines
474 B
Go
//go:build linux && cgo
|
|
|
|
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)
|
|
}
|