From 7c1639bf3596e3ed3fc53c99e542638eed0caba7 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 16 Jun 2017 14:17:33 +0800 Subject: [PATCH] validate: modify the validation of mounts.type Signed-off-by: zhouhao --- validate/validate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validate/validate.go b/validate/validate.go index b3b1bbffc..a7c595cfd 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -337,11 +337,11 @@ func (v *Validator) CheckRlimits() (msgs []string) { func supportedMountTypes(OS string, hostSpecific bool) (map[string]bool, error) { supportedTypes := make(map[string]bool) - if OS != "linux" && OS != "windows" { + if OS != "linux" && OS != "solaris" { logrus.Warnf("%v is not supported to check mount type", OS) return nil, nil - } else if OS == "windows" { - supportedTypes["ntfs"] = true + } else if OS == "solaris" { + supportedTypes["lofs"] = true return supportedTypes, nil }