* @author Steve Jin.
*/
private VirtualDeviceConfigSpec createDiskSpec
(String dsName, int cKey, long diskSizeMB, String diskMode, int unitNumber)
{
VirtualDeviceConfigSpec diskSpec =
new VirtualDeviceConfigSpec();
diskSpec.setOperation(VirtualDeviceConfigSpecOperation.add);
diskSpec.setFileOperation
(VirtualDeviceConfigSpecFileOperation.create);
VirtualDisk vd = new VirtualDisk();
vd.setCapacityInKB(diskSizeMB * 1024L);
diskSpec.setDevice(vd);
vd.setKey(0);
vd.setUnitNumber(unitNumber);
vd.setControllerKey(cKey);
VirtualDiskFlatVer2BackingInfo diskfileBacking =