Commit 7e8b4a2d authored by Hemant Kumar's avatar Hemant Kumar

Glusterfs expands in units of GB not GiB

parent db809c0e
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment