From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: [PATCH 4/5] add error in disk_add if phystype is not recognized Date: Wed, 13 Jan 2010 16:14:54 +0000 Message-ID: <1263399295-19453-5-git-send-email-vincent.hanquez@eu.citrix.com> References: <1263399295-19453-1-git-send-email-vincent.hanquez@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.6" Return-path: In-Reply-To: <1263399295-19453-1-git-send-email-vincent.hanquez@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Vincent Hanquez List-Id: xen-devel@lists.xenproject.org --------------1.6.6 Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable Signed-off-by: Vincent Hanquez --- tools/libxl/libxl.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --------------1.6.6 Content-Type: text/x-patch; name="0004-add-error-in-disk_add-if-phystype-is-not-recognized.patch" Content-Disposition: attachment; filename="0004-add-error-in-disk_add-if-phystype-is-not-recognized.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index ede485b..909bd17 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1162,6 +1162,9 @@ int libxl_device_disk_add(struct libxl_ctx *ctx, ui= nt32_t domid, libxl_device_di =20 device.backend_kind =3D DEVICE_TAP; break; + default: + XL_LOG(ctx, XL_LOG_ERROR, "unrecognized disk physical type: = %d\n", disk->phystype); + return ERROR_INVAL; } =20 flexarray_set(back, boffset++, "frontend-id"); --------------1.6.6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------1.6.6--