mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-20 14:00:35 -05:00
Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) from 0.40.0 to 0.41.0. - [Release notes](https://github.com/testcontainers/testcontainers-go/releases) - [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.40.0...v0.41.0) --- updated-dependencies: - dependency-name: github.com/testcontainers/testcontainers-go dependency-version: 0.41.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
495 B
Go
33 lines
495 B
Go
//go:build aix
|
|
// +build aix
|
|
|
|
package perfstat
|
|
|
|
/*
|
|
#include "c_helpers.h"
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func FileSystemStat() ([]FileSystem, error) {
|
|
var fsinfo *C.struct_fsinfo
|
|
var nmounts C.int
|
|
|
|
fsinfo = C.get_all_fs(&nmounts)
|
|
if nmounts <= 0 {
|
|
return nil, fmt.Errorf("No mounts found")
|
|
}
|
|
|
|
fs := make([]FileSystem, nmounts)
|
|
for i := 0; i < int(nmounts); i++ {
|
|
f := C.get_filesystem_stat(fsinfo, C.int(i))
|
|
if f != nil {
|
|
fs[i] = fsinfo2filesystem(f)
|
|
}
|
|
}
|
|
return fs, nil
|
|
}
|