int unitNumber = diskDev.getUnitNumber();
String diskMode = null;
/* Get required values in the BackingInfo data. */
if (vdbi instanceof VirtualDiskFlatVer2BackingInfo) {
VirtualDiskFlatVer2BackingInfo bi
= (VirtualDiskFlatVer2BackingInfo) vdbi;
changeId = bi.getChangeId();
uuid = bi.getUuid();
diskMode = bi.getDiskMode();
} else if (vdbi instanceof VirtualDiskSparseVer2BackingInfo) {
VirtualDiskSparseVer2BackingInfo bi =
(VirtualDiskSparseVer2BackingInfo) vdbi;
changeId = bi.getChangeId();
uuid = bi.getUuid();
diskMode = bi.getDiskMode();
}
/* get the controller information */
Integer ckeyI = diskDev.getControllerKey(); assert ckeyI != null;
int ckey = ckeyI.intValue();