object: handle Error responses and handle errDiskFull. (#1331)

This commit is contained in:
Harshavardhana authored and Anand Babu (AB) Periasamy committed 2016-04-19 02:42:10 -07:00
1 parent 6bc17a3aea
commit e0f8fed011
11 files changed
+77 -202

No files matched your search

+1 -1
View File
@@ -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.