debuggers.hg

changeset 20846:7a412f9f6aae

libxenlight: add error in disk_add if phystype is not recognized

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 14 09:42:06 2010 +0000 (2010-01-14)
parents fd8707f8698d
children ab5845cfa62d
files tools/libxl/libxl.c
line diff
     1.1 --- a/tools/libxl/libxl.c	Thu Jan 14 09:41:34 2010 +0000
     1.2 +++ b/tools/libxl/libxl.c	Thu Jan 14 09:42:06 2010 +0000
     1.3 @@ -1162,6 +1162,9 @@ int libxl_device_disk_add(struct libxl_c
     1.4  
     1.5              device.backend_kind = DEVICE_TAP;
     1.6              break;
     1.7 +        default:
     1.8 +            XL_LOG(ctx, XL_LOG_ERROR, "unrecognized disk physical type: %d\n", disk->phystype);
     1.9 +            return ERROR_INVAL;
    1.10      }
    1.11  
    1.12      flexarray_set(back, boffset++, "frontend-id");