From 190a513cf8df05cfa1c49d8707bba58f5c640604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Sun, 6 Nov 2016 08:08:25 -0800 Subject: [PATCH] Fix the crossbuild that #35132 broke --- pkg/volume/util/fs_unsupported.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/volume/util/fs_unsupported.go b/pkg/volume/util/fs_unsupported.go index 3df7ef2da56..02a39f91efe 100644 --- a/pkg/volume/util/fs_unsupported.go +++ b/pkg/volume/util/fs_unsupported.go @@ -19,17 +19,20 @@ limitations under the License. package util import ( - "errors" "fmt" "k8s.io/kubernetes/pkg/api/resource" ) // FSInfo unsupported returns 0 values for available and capacity and an error. -func FsInfo(path string) (int64, int64, int64, error) { - return 0, 0, 0, errors.New("FsInfo not supported for this build.") +func FsInfo(path string) (int64, int64, int64, int64, int64, int64, error) { + return 0, 0, 0, 0, 0, 0, fmt.Errorf("FsInfo not supported for this build.") } func Du(path string) (*resource.Quantity, error) { - return nil, fmt.Errorf("Du not support for this build.") + return nil, fmt.Errorf("Du not supported for this build.") +} + +func Find(path string) (int64, error) { + return 0, fmt.Errorf("Find not supported for this build.") }