ia64/xen-unstable

changeset 2609:03d1ce22b0b2

bitkeeper revision 1.1159.103.2 (4163f8fdRWsu23t9HYw_MCuUZuSSPA)

Make vbd error message more informative.
author mjw@wray-m-3.hpl.hp.com
date Wed Oct 06 13:54:05 2004 +0000 (2004-10-06)
parents b44a94edc865
children da2af6f3a95e
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Wed Oct 06 13:33:17 2004 +0000
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Wed Oct 06 13:54:05 2004 +0000
     1.3 @@ -340,8 +340,8 @@ class BlkDev(controller.SplitDev):
     1.4          val = unpackMsg('blkif_be_vbd_grow_t', msg)
     1.5  	status = val['status']
     1.6  	if status != BLKIF_BE_STATUS_OKAY:
     1.7 -            raise XendError("Adding extent to vbd failed: device %d, error %d"
     1.8 -                            % (self.vdev, status))
     1.9 +            raise XendError("Adding extent to vbd failed: device %s, error %d"
    1.10 +                            % (sxp.to_string(self.config), status))
    1.11          return self
    1.12  
    1.13      def send_be_vbd_destroy(self):