Update metrics_du_test.go
This commit is contained in:
parent
5324dcb37b
commit
a4809bc3c9
@ -22,15 +22,15 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"testing"
|
||||||
|
|
||||||
utiltesting "k8s.io/client-go/util/testing"
|
utiltesting "k8s.io/client-go/util/testing"
|
||||||
. "k8s.io/kubernetes/pkg/volume"
|
. "k8s.io/kubernetes/pkg/volume"
|
||||||
volumetest "k8s.io/kubernetes/pkg/volume/testing"
|
volumetest "k8s.io/kubernetes/pkg/volume/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getExpectedBlockSize(path string) (int64) {
|
func getExpectedBlockSize(path string) int64 {
|
||||||
statfs := &syscall.Statfs_t{}
|
statfs := &syscall.Statfs_t{}
|
||||||
err := syscall.Statfs(path, statfs)
|
err := syscall.Statfs(path, statfs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user