'Creates a clone of the specified volume.'

def create_cloned_volume(self, volume, src_vref):

    vol_size = volume.size
    src_vol_size = src_vref.size
    self._clone_volume_to_volume(src_vref.name, volume.name, src_vref.display_name, src_vref.id)
    share = self._get_provider_location(src_vref.id)
    volume['provider_location'] = share
    path = self.local_path(volume)
    self._set_rw_permissions(path)
    if (vol_size != src_vol_size):
        try:
            self.extend_volume(volume, vol_size)
        except Exception:
            LOG.error('Resizing    %s    failed.    Cleaning    volume.', volume.name)
            self._delete_file(path)
            raise
    return {'provider_location': volume['provider_location']}
