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]Remove XendLogging dependency from xen/utils/blkif.py

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]Remove XendLogging dependency from xen/utils/blkif.py
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Date: Wed, 21 May 2008 17:11:47 +0800
Delivery-date: Wed, 21 May 2008 02:12:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080421)
hi,

xen/utils/blkif.py imported log from xen.xend.XendLogging but never uses.

Other tools rather than xend can easily get the block device id by calling
blkdev_name_to_number(). So it's useful to other tools.

But the dependency on XendLogging prevents it from directly resuing.

This patch removes the dependency on XendLogging from xen/utils/blkif.py.

thanks,

zhigang
Remove XendLogging dependency from xen/utils/blkif.py

xen/utils/blkif.py imported log from xen.xend.XendLogging but never uses.

Other tools rather than xend can easily get the block device id by calling
blkdev_name_to_number(). So it's useful to other tools.

But the dependency on XendLogging prevents it from directly resuable.

This patch removes the dependency on XendLogging from xen/utils/blkif.py.

Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>

--- xen-unstable.orig/tools/python/xen/util/blkif.py    2008-05-12 
16:43:51.000000000 +0800
+++ xen-unstable/tools/python/xen/util/blkif.py 2008-05-21 16:55:06.000000000 
+0800
@@ -2,8 +2,6 @@
 import re
 import string
 
-from xen.xend.XendLogging import log
-
 def expand_dev_name(name):
     if not name:
         return name
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]Remove XendLogging dependency from xen/utils/blkif.py, Zhigang Wang <=