mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
for root disks add additional information in the error log (#19177)
This commit is contained in:
@@ -1330,6 +1330,9 @@ func registerStorageRESTHandlers(router *mux.Router, endpointServerPools Endpoin
|
||||
if err != nil {
|
||||
// if supported errors don't fail, we proceed to
|
||||
// printing message and moving forward.
|
||||
if errors.Is(err, errDriveIsRoot) {
|
||||
err = fmt.Errorf("major: %v: minor: %v: %w", xl.major, xl.minor, err)
|
||||
}
|
||||
logFatalErrs(err, endpoint, false)
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user