This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] libxenlight: add error in disk_add if phy

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: add error in disk_add if phystype is not recognized
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jan 2010 02:20:18 -0800
Delivery-date: Thu, 14 Jan 2010 02:20:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263462126 0
# Node ID 7a412f9f6aae72add9d1e68530064b4b911e9425
# Parent  fd8707f8698d6cc101332187bf080827826a460e
libxenlight: add error in disk_add if phystype is not recognized

Signed-off-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
 tools/libxl/libxl.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r fd8707f8698d -r 7a412f9f6aae tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Jan 14 09:41:34 2010 +0000
+++ b/tools/libxl/libxl.c       Thu Jan 14 09:42:06 2010 +0000
@@ -1162,6 +1162,9 @@ int libxl_device_disk_add(struct libxl_c
             device.backend_kind = DEVICE_TAP;
+        default:
+            XL_LOG(ctx, XL_LOG_ERROR, "unrecognized disk physical type: %d\n", 
+            return ERROR_INVAL;
     flexarray_set(back, boffset++, "frontend-id");

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: add error in disk_add if phystype is not recognized, Xen patchbot-unstable <=