'Copy the volume to the specified image.'

def _copy_volume_to_image(self, context, volume, image_service, image_meta):

    volume_format = self.get_volume_format(volume)
    if (volume_format == DISK_FORMAT_PLOOP):
        with PloopDevice(self.local_path(volume), execute=self._execute) as dev:
            image_utils.upload_volume(context, image_service, image_meta, dev, volume_format='raw')
    else:
        super(VZStorageDriver, self)._copy_volume_to_image(context, volume, image_service, image_meta)
