[Libvirt-cim] [PATCH] Make migration return proper value for "Job Started"

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Mar 12 19:56:19 UTC 2008


Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1205331569 25200
> # Node ID 82b18a386bda9c09e6f4f41a0b3acbeeba7f0ea9
> # Parent  b739fc9b13320e07a39f3932396c8411c2d4ad75
> Make migration return proper value for "Job Started"
> 
> Signed-off-by: Dan Smith <danms at us.ibm.com>
> 
> diff -r b739fc9b1332 -r 82b18a386bda src/Virt_VSMigrationService.c
> --- a/src/Virt_VSMigrationService.c	Tue Mar 11 13:28:04 2008 -0700
> +++ b/src/Virt_VSMigrationService.c	Wed Mar 12 07:19:29 2008 -0700
> @@ -927,7 +927,7 @@ static CMPIStatus migrate_do(const CMPIO
> 
>          thread = _BROKER->xft->newThread((void*)migration_thread, job, 0);
> 
> -        retcode = 0;
> +        retcode = 4096; /* Job Started */
> 
>   out:
>          CMReturnData(results, (CMPIValue *)&retcode, CMPI_uint32);
> 

My ignorance here - not sure where the 4096 value is coming from.

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list