Changeset 49190 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Oct 18, 2013 3:26:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90067
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r49058 r49190 4512 4512 false /* fNonRotational */, 4513 4513 false /* fDiscard */, 4514 f alse/* fHotPluggable */,4514 fHotplug /* fHotPluggable */, 4515 4515 Utf8Str::Empty); 4516 4516 if (FAILED(rc)) return rc; … … 4641 4641 aDevice, aControllerPort, aControllerName); 4642 4642 4643 if (fHotplug && !pAttach->getHotPluggable()) 4644 return setError(VBOX_E_NOT_SUPPORTED, 4645 tr("The device slot %d on port %d of controller '%ls' does not support hotplugging"), 4646 aDevice, aControllerPort, aControllerName); 4647 4643 4648 /* 4644 4649 * The VM has to detach the device before we delete any implicit diffs. … … 4876 4881 aDevice, aControllerPort, aControllerName); 4877 4882 4878 /** @todo remove this blocker and add the missing code to support this 4879 * flag properly in all code areas, with proper support checks below. */ 4883 /* Check for an existing controller. */ 4884 ComObjPtr<StorageController> ctl; 4885 rc = getStorageControllerByName(aControllerName, ctl, true /* aSetError */); 4886 if (FAILED(rc)) return rc; 4887 4888 StorageControllerType_T ctrlType; 4889 rc = ctl->COMGETTER(ControllerType)(&ctrlType); 4890 if (FAILED(rc)) 4891 return setError(E_FAIL, 4892 tr("Could not get type of controller '%ls'"), 4893 aControllerName); 4894 4895 if (!isControllerHotplugCapable(ctrlType)) 4880 4896 return setError(VBOX_E_NOT_SUPPORTED, 4881 4897 tr("Controller '%ls' does not support changing the hot-pluggable device flag"), … … 9781 9797 dev.fNonRotational, 9782 9798 dev.fDiscard, 9783 /// @todo load setting once the hot-pluggable flag works 9784 false /*dev.fHotPluggable*/, 9799 dev.fHotPluggable, 9785 9800 pBwGroup.isNull() ? Utf8Str::Empty : pBwGroup->getName()); 9786 9801 if (FAILED(rc)) break; … … 10887 10902 dev.lDevice = pAttach->getDevice(); 10888 10903 dev.fPassThrough = pAttach->getPassthrough(); 10889 /// @todo save setting once the hot-pluggable flag works 10890 dev.fHotPluggable = false /* pAttach->getHotPluggable()*/; 10904 dev.fHotPluggable = pAttach->getHotPluggable(); 10891 10905 if (pMedium) 10892 10906 {
Note:
See TracChangeset
for help on using the changeset viewer.