'Creates a cloned volume.'

def create_cloned_volume(self, volume, src_vref):

    volume_id = src_vref['provider_id']
    snapname = self._id_to_base64(volume.id)
    LOG.info('ScaleIO    create    cloned    volume:    source    volume    %(src)s    to    target    volume    %(tgt)s.', {'src': volume_id, 'tgt': snapname})
    ret = self._snapshot_volume(volume_id, snapname)
    if (volume.size > src_vref.size):
        self._extend_volume(ret['provider_id'], src_vref.size, volume.size)
    return ret
