mirror of
				https://github.com/minio/minio.git
				synced 2025-10-30 00:05:02 -04:00 
			
		
		
		
	convert context.DeadlineExceed to offline disk in DiskInfo() (#15869)
This commit is contained in:
		
							parent
							
								
									6cb2f56395
								
							
						
					
					
						commit
						0fe58dbb34
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user