[PATCH v5 1/3] test: make parsed nodedevs active and persistent

Cole Robinson posted 3 patches 1 year, 9 months ago
[PATCH v5 1/3] test: make parsed nodedevs active and persistent
Posted by Cole Robinson 1 year, 9 months ago
This was the implied default before nodedevs gained a notion of
being inactive and transient. It also matches the implied default
when parsing other object types

Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
 src/test/test_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 41828f86b6..153ab7cdc2 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -1269,6 +1269,8 @@ testParseNodedevs(testDriver *privconn,
             return -1;
         }
 
+        virNodeDeviceObjSetPersistent(obj, true);
+        virNodeDeviceObjSetActive(obj, true);
         virNodeDeviceObjSetSkipUpdateCaps(obj, true);
         virNodeDeviceObjEndAPI(&obj);
     }
-- 
2.44.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org
Re: [PATCH v5 1/3] test: make parsed nodedevs active and persistent
Posted by Boris Fiuczynski 1 year, 9 months ago
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>

On 4/23/24 15:44, Cole Robinson wrote:
> This was the implied default before nodedevs gained a notion of
> being inactive and transient. It also matches the implied default
> when parsing other object types
> 
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
>   src/test/test_driver.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/test/test_driver.c b/src/test/test_driver.c
> index 41828f86b6..153ab7cdc2 100644
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -1269,6 +1269,8 @@ testParseNodedevs(testDriver *privconn,
>               return -1;
>           }
>   
> +        virNodeDeviceObjSetPersistent(obj, true);
> +        virNodeDeviceObjSetActive(obj, true);
>           virNodeDeviceObjSetSkipUpdateCaps(obj, true);
>           virNodeDeviceObjEndAPI(&obj);
>       }

-- 
Mit freundlichen Grüßen/Kind regards
    Boris Fiuczynski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Wolfgang Wendt
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org