From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: [PATCH]Remove XendLogging dependency from xen/utils/blkif.py Date: Wed, 21 May 2008 17:11:47 +0800 Message-ID: <4833E753.9080708@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090001030507010008070404" Return-path: 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 List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090001030507010008070404 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------090001030507010008070404 Content-Type: text/x-patch; name="xen-blkif-logging.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-blkif-logging.patch" 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 --- 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 --------------090001030507010008070404 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 --------------090001030507010008070404--