[Libguestfs] [v2v PATCH] convert/libosinfo-c.c: turn caml_copy_*() return blocks into root values

Richard W.M. Jones rjones at redhat.com
Wed Jan 12 14:23:03 UTC 2022


On Wed, Jan 12, 2022 at 03:14:43PM +0100, Laszlo Ersek wrote:
> On 01/12/22 12:26, Daniel P. Berrangé wrote:
> > On Tue, Jan 11, 2022 at 11:22:56AM +0000, Richard W.M. Jones wrote:
> >> On Tue, Jan 11, 2022 at 12:15:13PM +0100, Laszlo Ersek wrote:
> >>> By the way, we have more "offenders" left:
> >>>
> >>> - three in "bundled/libvirt-ocaml/libvirt_c_common.c":
> >>
> >> I'm quite sure this happens in a lot of places.
> >>
> >> BTW libvirt-ocaml is a separate project, so fixes should go to:
> >>
> >> https://libvirt.org/git/?p=libvirt-ocaml.git;a=summary
> >>
> >> (and really we should remove all bundled code - I can't recall why it
> >> was added, but it's not needed now.)
> > 
> > NB that's a read-only mirror, the primary repo is:
> > 
> >   https://gitlab.com/libvirt/libvirt-ocaml/
> > 
> > and takes patches via merge requests
> 
> What is the status of
> "contrib/0001-Add-Libvirt.Domain.get_cpu_stats_total.patch"?

It's 10 years old so I doubt it applies.  Looks like it's a patch from
Fujitsu that for some reason we were unhappy with, but didn't want to
reject outright (probably not for a good reason - we should be
up-front about rejecting bad patches).

I suggest deleting it.

> It is affected by the issue, but I totally don't want to touch it if the
> patch is not actually applied. It is a patch from Hu Tao
> <hutao at cn.fujitsu.com>, from 2012, which got added in 2018 (commit
> 669cbc5a0ce1), but not actually merged. I can't see any machinery within
> the project that would apply it.
> 
> My recommendation would be to just delete this directory (contrib). I
> certainly can't do anyting about this patch (prove it right or wrong,
> test it, etc).

Yes I agree on deleting the patch and the directory (which will be empty).

> On the other hand, fixing some instances of
> 
>   Store_field (block, fieldnr, caml_copy_... (...));
> 
> but not the instance in this explicit patch, feels wrong.
> 
> If we can't drop the "contrib" directory, I'll abandon this effort.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list