cephfs: refactoring for CSI 0.2.0 part 1

This commit is contained in:
gman
2018-03-13 10:25:50 +01:00
parent 06f411bbf3
commit 66c16e35e6
7 changed files with 9 additions and 8 deletions

View File

@ -41,7 +41,7 @@ type cephfsDriver struct {
var (
driver *cephfsDriver
version = csi.Version{
Minor: 1,
Minor: 2,
}
)

View File

@ -75,9 +75,9 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
glog.V(4).Infof("cephfs: volume created at %s", vol.Root)
return &csi.CreateVolumeResponse{
VolumeInfo: &csi.VolumeInfo{
Volume: &csi.Volume{
Id: volId.id,
CapacityBytes: uint64(volSz),
CapacityBytes: volSz,
Attributes: vol.makeMap(),
},
}, nil