]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
CA-45278: Make with-vdi VBDs unpluggable.
authorDaniel Stodden <daniel.stodden@citrix.com>
Tue, 12 Oct 2010 09:31:49 +0000 (10:31 +0100)
committerDaniel Stodden <daniel.stodden@citrix.com>
Tue, 12 Oct 2010 09:31:49 +0000 (10:31 +0100)
Prevent tripping over unplug failures due to VBD.unpluggable=false.
Happens when plugging guest system disks with normal VBD defaults.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
scripts/with-vdi

index 5421673d5e975382fb2d15160b54b8ed65034536..635146eac085fe427da4fb43b9919f00fdb429d5 100755 (executable)
@@ -38,7 +38,7 @@ if [ `xe vdi-param-get uuid=${VDI} param-name=read-only` = "true" ] ; then
 else
     MODE=RW
 fi
-VBD=`xe vbd-create vm-uuid=${CONTROL_DOMAIN_UUID} vdi-uuid=${VDI} device=autodetect mode=${MODE}`
+VBD=`xe vbd-create vm-uuid=${CONTROL_DOMAIN_UUID} vdi-uuid=${VDI} device=autodetect mode=${MODE} unpluggable=true`
 xe vbd-plug uuid=${VBD}
 DEVICE=`xe vbd-param-get uuid=${VBD} param-name=device`
 export DEVICE