mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: check for O_DIRECT support for reads and writes (#11331)
In-case user enables O_DIRECT for reads and backend does not support it we shall proceed to turn it off instead and print a warning. This validation avoids any unexpected downtimes that users may incur.
This commit is contained in:
1 parent
1b453728a3
commit
43f973c4cf
5 files changed
+72
-136
No files matched your search
+1
-1
@@ -123,7 +123,7 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) {
|
||||
}
|
||||
|
||||
var err error
|
||||
if fsPath, err = getValidPath(fsPath, false); err != nil {
|
||||
if fsPath, err = getValidPath(fsPath); err != nil {
|
||||
if err == errMinDiskSize {
|
||||
return nil, config.ErrUnableToWriteInBackend(err).Hint(err.Error())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user