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:
Praveen raj Mani
2018-06-29 00:31:05 +05:30
committed by kannappanr
parent 8bd7a19d50
commit ea76e72054
4 changed files with 8 additions and 2 deletions

View File

@@ -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
}