'Clones directly in nfs share.'

def _direct_clone(self, volume, image_location, image_id, image_name):

    LOG.info('Checking    image    clone    %s    from    glance    share.', image_id)
    cloned = False
    image_location = self._get_image_nfs_url(image_location)
    share = self._is_cloneable_share(image_location)
    run_as_root = self._execute_as_root
    dst_share = None
    for dst in self._mounted_shares:
        if (dst and self._is_share_vol_compatible(volume, dst)):
            dst_share = dst
            LOG.debug('Image    dst    share:    %s', dst)
            break
    if (not dst_share):
        return cloned
    LOG.debug('Share    is    cloneable    %s', dst_share)
    volume['provider_location'] = dst_share
    (__, ___, img_file) = image_location.rpartition('/')
    dir_path = self._get_mount_point_for_share(share)
    dst_path = self._get_mount_point_for_share(dst_share)
    img_path = ('%s/%s' % (dir_path, img_file))
    img_info = image_utils.qemu_img_info(img_path, run_as_root=run_as_root)
    if (img_info.file_format == 'raw'):
        LOG.debug('Image    is    raw    %s', image_id)
        self._clone_volume_to_volume(img_file, volume['name'], image_name, volume_id=None, share=share, dst=dst_share, image_id=image_id)
        cloned = True
    else:
        LOG.info('Image    will    locally    be    converted    to    raw    %s', image_id)
        dst = ('%s/%s' % (dst_path, volume['name']))
        image_utils.convert_image(img_path, dst, 'raw', run_as_root=run_as_root)
        data = image_utils.qemu_img_info(dst, run_as_root=run_as_root)
        if (data.file_format != 'raw'):
            raise exception.InvalidResults((_('Converted    to    raw,    but    format    is    now    %s') % data.file_format))
        else:
            cloned = True
            self._create_image_snapshot(volume['name'], volume['provider_location'], image_id, image_name)
    return cloned
