From 2ec681632bb9ab254bda821ddbff6e3e48f74680 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 19 Feb 2018 17:37:54 +0100 Subject: [PATCH] glusterfs: Remove an outdated comment about GB vs GiB This was originally added due to a misunderstanding of the documentation of Heketi (using a different convention). Heketi's documentation has meanwhile been clarified. Signed-off-by: Michael Adam --- pkg/volume/glusterfs/glusterfs.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go index d668d40b1a8..1e8599545f4 100644 --- a/pkg/volume/glusterfs/glusterfs.go +++ b/pkg/volume/glusterfs/glusterfs.go @@ -741,7 +741,6 @@ func (p *glusterfsVolumeProvisioner) CreateVolume(gid int) (r *v1.GlusterfsVolum var clusterIDs []string customVolumeName := "" capacity := p.options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)] - // Glusterfs creates volumes in units of GiB, but heketi documentation incorrectly reports GBs sz := int(volume.RoundUpToGiB(capacity)) glog.V(2).Infof("create volume of size: %d GiB", sz) if p.url == "" {