mirror of
https://github.com/minio/minio.git
synced 2025-11-27 20:58:55 -05:00
object: handle Error responses and handle errDiskFull. (#1331)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
6bc17a3aea
commit
e0f8fed011
2
fs.go
2
fs.go
@@ -111,7 +111,7 @@ func checkDiskFree(diskPath string, minFreeDisk int64) (err error) {
|
||||
// space used for journalling, inodes etc.
|
||||
availableDiskSpace := (float64(di.Free) / (float64(di.Total) - (0.05 * float64(di.Total)))) * 100
|
||||
if int64(availableDiskSpace) <= minFreeDisk {
|
||||
return errDiskPathFull
|
||||
return errDiskFull
|
||||
}
|
||||
|
||||
// Success.
|
||||
|
||||
Reference in New Issue
Block a user