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

@@ -76,6 +76,9 @@ var errBitrotHashAlgoInvalid = errors.New("bit-rot hash algorithm is invalid")
// errCrossDeviceLink - rename across devices not allowed.
var errCrossDeviceLink = errors.New("Rename across devices not allowed, please fix your backend configuration")
// errMinDiskSize - cannot create volume or files when disk size is less than threshold.
var errMinDiskSize = errors.New("The disk size is less than the minimum threshold")
// hashMisMatchError - represents a bit-rot hash verification failure
// error.
type hashMismatchError struct {