mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Incorrect error message for insufficient volume fix (#6099)
Reply back with appropriate error message when the server is spawn with volume of insufficient size (< 1GiB). Fixes #5993.
This commit is contained in:
committed by
kannappanr
parent
8bd7a19d50
commit
ea76e72054
@@ -224,7 +224,7 @@ func checkDiskMinTotal(di disk.Info) (err error) {
|
||||
// used for journalling, inodes etc.
|
||||
totalDiskSpace := float64(di.Total) * 0.95
|
||||
if int64(totalDiskSpace) <= diskMinTotalSpace {
|
||||
return errDiskFull
|
||||
return errMinDiskSize
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user