Glusterfs expands in units of GB not GiB

This commit is contained in:
Hemant Kumar 2017-09-11 14:04:04 -04:00
parent db809c0eb7
commit 7e8b4a2d60

View File

@ -1080,7 +1080,7 @@ func (plugin *glusterfsPlugin) ExpandVolumeDevice(spec *volume.Spec, newSize res
// Find out delta size
expansionSize := (newSize.Value() - oldSize.Value())
expansionSizeGB := int(volume.RoundUpSize(expansionSize, 1024*1024*1024))
expansionSizeGB := int(volume.RoundUpSize(expansionSize, 1000*1000*1000))
// Make volume expansion request
volumeExpandReq := &gapi.VolumeExpandRequest{Size: expansionSizeGB}