Skip to content

Commit 7c1639b

Browse files
author
zhouhao
committed
validate: modify the validation of mounts.type
Signed-off-by: zhouhao <[email protected]>
1 parent 7150e8d commit 7c1639b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validate/validate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,11 @@ func (v *Validator) CheckRlimits() (msgs []string) {
337337
func supportedMountTypes(OS string, hostSpecific bool) (map[string]bool, error) {
338338
supportedTypes := make(map[string]bool)
339339

340-
if OS != "linux" && OS != "windows" {
340+
if OS != "linux" && OS != "solaris" {
341341
logrus.Warnf("%v is not supported to check mount type", OS)
342342
return nil, nil
343-
} else if OS == "windows" {
344-
supportedTypes["ntfs"] = true
343+
} else if OS == "solaris" {
344+
supportedTypes["lofs"] = true
345345
return supportedTypes, nil
346346
}
347347

0 commit comments

Comments
 (0)