Is it possible to backport interface change
Hello,
My team is working on a new libvirt feature based on v10 source code, that includes a new api. We submitted pr to libvirt community and waiting for review now.
My question is:
Is it possible to backport the libvirt new feature from a high version(v10) to a low version (v8)?
If that is possible, how does the libvirt-go-module work with the lower version's new backport feature. When we add the new api support to libvirt-go-module project, we found that has some generated files that check server versions.
To make it easier to understand what I'm saying, let me give you an example:
As you know, the libvirt v9 add a new api
.domainFDAs
After backport the domainFDAssociate feature related code to version 8.0.0, the libvirtd should work well, and virsh client should be good also to call the new api
But how to use the new api with libvirt-go-module ? Is it possible
I find there are some checks in libvirt-go-module:
-------------
#if !LIBVIR_
setVirError
#else
ret = virDomainFDAsso
if (ret < 0) {
}
#endif
---------
And when we run a go client (built with latest libvirt-go-module code) on libvirt 8.0.0, we see error:
/root/libvirt-
/root/libvirt-
/root/libvirt-
/root/libvirt-
/root/libvirt-
/root/libvirt-
/root/libvirt-
Does it mean the ubuntu libvirt backport version must >= community libvirt version for new api change?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu libvirt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Judy Gu for more information if necessary.