mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.6.4 (41177393RXYTn_RK_wu6NpLesN04YA)
Raise an error when vbd grow fails.
This commit is contained in:
1 parent
7993995afc
commit
693c7beb98
1 file changed
+4
-5
@@ -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)
|
||||
|
||||