os-cmpi-xen

changeset 124:7d3fcd10080c

When creating VBD devices through XenAPI, set bootable field to true for all vbds.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Jim Fehlig <jfehlig@novell.com>
date Mon Jun 11 15:38:51 2007 -0600 (2007-06-11)
parents 3e8654ff41d1
children ce72210a88c6
files src/Xen_VirtualSystemManagementService.c
line diff
     1.1 --- a/src/Xen_VirtualSystemManagementService.c	Mon Jun 11 14:52:47 2007 -0600
     1.2 +++ b/src/Xen_VirtualSystemManagementService.c	Mon Jun 11 15:38:51 2007 -0600
     1.3 @@ -1958,7 +1958,7 @@ static int disk_rasd2vmconfig(CMPIInstan
     1.4           CMSetStatusWithChars(_BROKER, status, CMPI_RC_ERROR_SYSTEM, "Unable to malloc memory");
     1.5           goto Error;
     1.6        }
     1.7 -            
     1.8 +
     1.9        /* Extract the image, dev and mode params from the DiskConfigInfo string */
    1.10        char *tok;
    1.11        char *next_tok;
    1.12 @@ -2013,8 +2013,12 @@ static int disk_rasd2vmconfig(CMPIInstan
    1.13        /*
    1.14         * TODO:
    1.15         * 1. Handle specifying type.  For now just say its a disk.
    1.16 +       * 2. What does it mean for a disk to be bootable?  Particularly for a
    1.17 +       *    paravirtualized domain?  For now we'll set all disks created
    1.18 +       *    through CIM to bootable.
    1.19         */
    1.20        (*vbd_rec)->type = XEN_VBD_TYPE_DISK;
    1.21 +      (*vbd_rec)->bootable = true;
    1.22  
    1.23        free(tmp_str);
    1.24        _SBLIM_TRACE(2,("--- uname = %s", vdi_params->contents[0].val));