bitkeeper revision 1.1159.6.4 (41177393RXYTn_RK_wu6NpLesN04YA)

Raise an error when vbd grow fails.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-08-09 12:52:35 +00:00
1 parent 7993995afc
commit 693c7beb98
1 file changed
+4 -5
+4 -5
View File
@@ -5,6 +5,7 @@ from twisted.internet import defer
from xen.xend import sxp
from xen.xend.XendLogging import log
from xen.xend.XendError import XendError
import channel
import controller
@@ -193,13 +194,11 @@ class BlkifControllerFactory(controller.ControllerFactory):
@type d: Deferred or None
"""
val = unpackMsg('blkif_be_vbd_grow_t', msg)
# Check status?
status = val['status']
if status != BLKIF_BE_STATUS_OKAY:
log.debug("Error: Adding extent to vbd failed! (device %x)",
val['extent.device'])
# what to do here to abort????
raise XendError("Adding extent to vbd failed: device %x, error %d",
val['extent.device'],
status)
if self.attached:
if d:
d.callback(dev)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.