mirror of
https://github.com/minio/minio.git
synced 2025-11-22 02:35:30 -05:00
Show the cause error in startup when directio is not supported (#9497)
This commit tries to create a file using direct i/o in the startup so the server returns quickly and avoid cryptic other errors.
This commit is contained in:
@@ -747,7 +747,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpointZones EndpointZones
|
||||
}
|
||||
hint := fmt.Sprintf("Run the following command to add the convenient permissions: `sudo chown %s %s && sudo chmod u+rxw %s`",
|
||||
username, endpoint.Path, endpoint.Path)
|
||||
logger.Fatal(config.ErrUnableToWriteInBackend(err).Hint(hint),
|
||||
logger.Fatal(config.ErrUnableToWriteInBackend(err).Msg(err.Error()).Hint(hint),
|
||||
"Unable to initialize posix backend")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user