diff --git a/cmd/erasure.go b/cmd/erasure.go index 7dcf58ca4..f24fa12e0 100644 --- a/cmd/erasure.go +++ b/cmd/erasure.go @@ -108,7 +108,7 @@ func (d byDiskTotal) Less(i, j int) bool { func diskErrToDriveState(err error) (state string) { switch { - case errors.Is(err, errDiskNotFound): + case errors.Is(err, errDiskNotFound) || errors.Is(err, context.DeadlineExceeded): state = madmin.DriveStateOffline case errors.Is(err, errCorruptedFormat): state = madmin.DriveStateCorrupt