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][RFC] Fix value set for uname of phantom tap devices

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][RFC] Fix value set for uname of phantom tap devices
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 18 Feb 2010 11:52:20 +0900
Delivery-date: Wed, 17 Feb 2010 18:53:15 -0800
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
Hi,

cfg_xenapi['image'] is always set to dev_info['uname'] even if 
cfg_xenapi['image'] does not include 'tap:'.
I'm not sure about phantom tap devices.  However, I think that 
the following patch is correct.  How do you think?

diff -r b4041e7bbe1b tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Wed Feb 17 12:11:13 2010 +0000
+++ b/tools/python/xen/xend/XendConfig.py       Thu Feb 18 11:35:30 2010 +0900
@@ -1686,8 +1686,9 @@
                 elif dev_type == 'tap':
                     if cfg_xenapi.get('image').find('tap:') == -1:
                         dev_info['uname'] = 'tap:qcow:%s' % 
cfg_xenapi.get('image')
+                    else:
+                        dev_info['uname'] = cfg_xenapi.get('image')
                     dev_info['dev'] =  '/dev/%s' % cfg_xenapi.get('device')
-                    dev_info['uname'] = cfg_xenapi.get('image')
                 dev_info['mode'] = cfg_xenapi.get('mode')
                 dev_info['backend'] = '0'
                 dev_uuid = cfg_xenapi.get('uuid', uuid.createString())


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: phantom_device_add.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][RFC] Fix value set for uname of phantom tap devices, Masaki Kanno <=