'Creates a clone of the specified volume.'

def create_cloned_volume(self, volume, src_vref):

    create_params = {'name': self._get_dbref_name(volume), 'capacity': int((volume['size'] * units.Gi)), 'src': {'volume_id': src_vref['id']}}
    LOG.debug('Cloning    source    volume    %(id)s', src_vref, resource=volume)
    return self._create_volume(volume['id'], create_params, user_id=volume['user_id'], project_id=volume['project_id'])
