Changeset 24493 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 9, 2009 11:59:49 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r24397 r24493 1181 1181 else 1182 1182 uuid = Guid().toString(); 1183 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid ));1183 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid, FALSE /* aForce */)); 1184 1184 } 1185 1185 else if (!strcmp(a->argv[1], "floppyattach")) … … 1237 1237 } 1238 1238 floppyMedium->COMGETTER(Id)(uuid.asOutParam()); 1239 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid ));1239 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid, FALSE /* aForce */)); 1240 1240 } 1241 1241 #ifdef VBOX_WITH_MEM_BALLOONING -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r24321 r24493 910 910 if (dvdMedium) 911 911 dvdMedium->COMGETTER(Id)(uuid.asOutParam()); 912 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid ));912 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid, FALSE /* aForce */)); 913 913 break; 914 914 } … … 978 978 } 979 979 floppyMedium->COMGETTER(Id)(uuid.asOutParam()); 980 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid ));980 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid, FALSE /* aForce */)); 981 981 } 982 982 break; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r24381 r24493 238 238 { 239 239 /* just unmount the floppy/dvd */ 240 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, Bstr("") ));240 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, Bstr(""), FALSE /* aForce */)); 241 241 } 242 242 else … … 493 493 { 494 494 dvdMedium->COMGETTER(Id)(uuid.asOutParam()); 495 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, uuid ));495 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, uuid, FALSE /* aForce */)); 496 496 } 497 497 } … … 588 588 { 589 589 floppyMedium->COMGETTER(Id)(uuid.asOutParam()); 590 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, uuid ));590 CHECK_ERROR(machine, MountMedium(Bstr(pszCtl), port, device, uuid, FALSE /* aForce */)); 591 591 } 592 592 } -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r24301 r24493 1670 1670 } 1671 1671 1672 CHECK_ERROR (gMachine, MountMedium(storageCtlName, 0, 0, id ));1672 CHECK_ERROR (gMachine, MountMedium(storageCtlName, 0, 0, id, FALSE /* aForce */)); 1673 1673 } 1674 1674 while (0); … … 1754 1754 } 1755 1755 1756 CHECK_ERROR(gMachine, MountMedium(storageCtlName, 1, 0, id ));1756 CHECK_ERROR(gMachine, MountMedium(storageCtlName, 1, 0, id, FALSE /*aForce */)); 1757 1757 } 1758 1758 while (0); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r24488 r24493 1090 1090 if (!ctrName.isNull()) 1091 1091 { 1092 m.MountMedium (ctrName, ctrPort, ctrDevice, uuid );1092 m.MountMedium (ctrName, ctrPort, ctrDevice, uuid, false /* force */); 1093 1093 AssertWrapperOk (m); 1094 1094 if (m.isOk()) … … 2374 2374 machine.MountMedium (target.name, target.port, target.device, 2375 2375 target.id.isEmpty() || medium.isNull() || medium.GetId() != target.id || 2376 target.type != VBoxDefs::MediumType_Invalid ? target.id : QString ("") );2376 target.type != VBoxDefs::MediumType_Invalid ? target.id : QString (""), false /* force */); 2377 2377 } 2378 2378 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r24445 r24493 1202 1202 if (medium.id() == aMedium.id()) 1203 1203 { 1204 machine.MountMedium (attachment.GetController().GetName(), attachment.GetPort(), attachment.GetDevice(), QString("") );1204 machine.MountMedium (attachment.GetController().GetName(), attachment.GetPort(), attachment.GetDevice(), QString(""), false /* force */); 1205 1205 if (!machine.isOk()) 1206 1206 { … … 1223 1223 if (medium.id() == aMedium.id()) 1224 1224 { 1225 machine.MountMedium (attachment.GetController().GetName(), attachment.GetPort(), attachment.GetDevice(), QString("") );1225 machine.MountMedium (attachment.GetController().GetName(), attachment.GetPort(), attachment.GetDevice(), QString(""), false /* force */); 1226 1226 if (!machine.isOk()) 1227 1227 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMFirstRunWzd.cpp
r23585 r24493 106 106 Assert (!ctr.isNull()); 107 107 /* Mount medium to the predefined port/device */ 108 mMachine.MountMedium (ctrName, ctrPort, ctrDevice, mCbMedia->id() );108 mMachine.MountMedium (ctrName, ctrPort, ctrDevice, mCbMedia->id(), false /* force */); 109 109 if (mMachine.isOk()) 110 110 QIAbstractWizard::accept();
Note:
See TracChangeset
for help on using the changeset viewer.