bug 7941: mark data disk as unpluggable

status 7941: resolved fixed
This commit is contained in:
anthony 2011-01-13 11:57:35 -08:00
parent 877741030c
commit 9fccc637d7
1 changed files with 7 additions and 3 deletions

View File

@ -659,11 +659,15 @@ public abstract class CitrixResourceBase implements ServerResource {
if (volume.getType() == VolumeType.ISO) {
vbdr.mode = Types.VbdMode.RO;
vbdr.type = Types.VbdType.CD;
} else if (volume.getType() == VolumeType.ROOT) {
vbdr.mode = Types.VbdMode.RW;
vbdr.type = Types.VbdType.DISK;
vbdr.unpluggable = false;
} else {
vbdr.mode = Types.VbdMode.RW;
vbdr.type = Types.VbdType.DISK;
}
vbdr.type = Types.VbdType.DISK;
vbdr.unpluggable = true;
}
VBD vbd = VBD.create(conn, vbdr);
if (s_logger.isDebugEnabled()) {