WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]blktap2: fix initializing tapdisk_disk_types table.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH]blktap2: fix initializing tapdisk_disk_types table.
From: Łukasz Oleś <lukaszoles@xxxxxxxxx>
Date: Tue, 17 Aug 2010 22:56:53 +0200
Delivery-date: Tue, 17 Aug 2010 13:58:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=o7ygwUxoUxfvLkmPiimZZB9BSCmcryS3E29MGqI8v/w=; b=K+ZGfb18oZWWUIP0gQt2ihZDTz3gPH7hd0wmyIHFbm8kbYdI3t8kWwQ9oXGP/CKhaq 2mkadVK06xW3NoW15kPKiXADFEjB61eiVBN0OLc1kEozxnV/qO4+3JrJ/u7Ax8sJZur0 +cLvzrLokxmFl+e5X3GIhY4ApSVerftv74Mvc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; b=Wht6nODYmHUPfvOF5d1BXVeD+ZjUX5SA9gpTPxrhNCMecbmc3JXMijLhTEO1eZ0jNO Ef+5dBGePMk52sRj/pDZy6M6T29s7pjWl1MGDNO/A8FNgc00s5oyrq93HLyyMPu9nvLR mb5euD56B3Ww9fHo9ahAWas2w0vB8cVZW/HVI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.3 (Linux/2.6.32-5-686; KDE/4.4.4; i686; ; )
In tapdisk-disktype.c table tapdisk_disk_types at index 8 has NULL value. This  
causes, in function tapdisk_disktype_find, breaking loop without checking all 
values.


Signed-off-by: Lukasz Oles <lukaszoles@xxxxxxxxx>

diff -r e5d3ba8491bb -r 65db3394ef79 tools/blktap2/drivers/tapdisk-disktype.h
--- a/tools/blktap2/drivers/tapdisk-disktype.h  Mon Jun 07 14:53:16 2010 -0700
+++ b/tools/blktap2/drivers/tapdisk-disktype.h  Tue Aug 17 21:19:05 2010 +0000
@@ -37,9 +37,9 @@
 #define DISK_TYPE_RAM         5
 #define DISK_TYPE_QCOW        6
 #define DISK_TYPE_BLOCK_CACHE 7
-#define DISK_TYPE_LOG         9
-#define DISK_TYPE_REMUS       10
-#define DISK_TYPE_VINDEX      11
+#define DISK_TYPE_LOG         8
+#define DISK_TYPE_REMUS       9
+#define DISK_TYPE_VINDEX      10

 #define DISK_TYPE_NAME_MAX    32

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]blktap2: fix initializing tapdisk_disk_types table., Łukasz Oleś <=