Skip to content

Commit

Permalink
returned CapacityBytes after NodeExpansion
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Oct 22, 2024
1 parent fe7cefe commit 6baca64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/spdk/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func (ns *nodeServer) NodeExpandVolume(_ context.Context, req *csi.NodeExpandVol

volumeID := req.GetVolumeId()
volumeMountPath := req.GetVolumePath()
updatedSize := req.GetCapacityRange().GetRequiredBytes()

stagingParentPath := req.GetStagingTargetPath()
volumeContext, err := util.LookupVolumeContext(stagingParentPath)
Expand Down Expand Up @@ -332,7 +333,7 @@ func (ns *nodeServer) NodeExpandVolume(_ context.Context, req *csi.NodeExpandVol
}
}

return &csi.NodeExpandVolumeResponse{}, nil
return &csi.NodeExpandVolumeResponse{CapacityBytes: updatedSize}, nil
}

// must be idempotent
Expand Down

0 comments on commit 6baca64

Please sign in to comment.