disable check for DirectIO in standalone FS mode (#9558)

This commit is contained in:
Anis Elleuch
2020-05-08 20:07:51 +01:00
committed by GitHub
parent 0f1389e992
commit 6885c72f32
2 changed files with 11 additions and 7 deletions
+1 -4
View File
@@ -129,12 +129,9 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) {
}
var err error
if fsPath, err = getValidPath(fsPath); err != nil {
if fsPath, err = getValidPath(fsPath, false); err != nil {
if err == errMinDiskSize {
return nil, config.ErrUnableToWriteInBackend(err).Hint(err.Error())
} else if err == errUnsupportedDisk {
hint := fmt.Sprintf("'%s' does not support O_DIRECT flags, refusing to use", fsPath)
return nil, config.ErrUnsupportedBackend(err).Hint(hint)
}
// Show a descriptive error with a hint about how to fix it.