final IVcTaskCallback callback) throws Exception {
final VirtualDisk[] diskArray = { disk };
VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
public VcTask body() throws Exception {
VirtualMachine vm = getManagedObject();
return new VcTask(TaskType.PromoteDisks, vm.promoteDisks(unlink,
diskArray), callback);
}
});
return task;
}