[PATCH] ch: set shared drivers

Wei Liu posted 1 patch 2 years, 10 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210604145052.1990166-1-liuwe@microsoft.com
src/ch/ch_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] ch: set shared drivers
Posted by Wei Liu 2 years, 10 months ago
We want to use those shared drivers provided by libvirt to avoid
implementing our own.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
---
 src/ch/ch_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index 7d1e97098aef..f1f88ad30cf5 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -922,7 +922,7 @@ static virStateDriver chStateDriver = {
 
 int chRegister(void)
 {
-    if (virRegisterConnectDriver(&chConnectDriver, false) < 0)
+    if (virRegisterConnectDriver(&chConnectDriver, true) < 0)
         return -1;
     if (virRegisterStateDriver(&chStateDriver) < 0)
         return -1;
-- 
2.30.2

Re: [PATCH] ch: set shared drivers
Posted by Daniel P. Berrangé 2 years, 10 months ago
On Fri, Jun 04, 2021 at 02:50:52PM +0000, Wei Liu wrote:
> We want to use those shared drivers provided by libvirt to avoid
> implementing our own.
> 
> Signed-off-by: Wei Liu <liuwe@microsoft.com>
> ---
>  src/ch/ch_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|