summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/MachineImpl.cpp
diff options
context:
space:
mode:
authorMichael Meskes <meskes@debian.org>2011-08-24 13:18:05 +0200
committerMichael Meskes <meskes@debian.org>2011-08-24 13:18:05 +0200
commitf8fd93b0b6b13ba94584bb61c1efd1a761f438c9 (patch)
tree7bf52d89d95d605721fb5515d467036e2dbc7b96 /src/VBox/Main/src-server/MachineImpl.cpp
parentcba113ca2826bc4814be2f69a7704c865a37d4ea (diff)
downloadvirtualbox-f8fd93b0b6b13ba94584bb61c1efd1a761f438c9.tar.gz
Imported Upstream version 4.1.2-dfsgupstream/4.1.2-dfsg
Diffstat (limited to 'src/VBox/Main/src-server/MachineImpl.cpp')
-rw-r--r--src/VBox/Main/src-server/MachineImpl.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/VBox/Main/src-server/MachineImpl.cpp b/src/VBox/Main/src-server/MachineImpl.cpp
index 8a6f3b139..fb4692411 100644
--- a/src/VBox/Main/src-server/MachineImpl.cpp
+++ b/src/VBox/Main/src-server/MachineImpl.cpp
@@ -1,4 +1,4 @@
-/* $Id: MachineImpl.cpp 38056 2011-07-19 09:03:26Z vboxsync $ */
+/* $Id: MachineImpl.cpp 38357 2011-08-08 16:05:00Z vboxsync $ */
/** @file
* Implementation of IMachine in VBoxSVC.
*/
@@ -3456,10 +3456,6 @@ STDMETHODIMP Machine::AttachDevice(IN_BSTR aControllerName,
tr("Controller '%ls' does not support hotplugging"),
aControllerName);
- if (fHotplug && aType == DeviceType_DVD)
- return setError(VBOX_E_INVALID_VM_STATE,
- tr("Attaching a DVD drive while the VM is running is not supported"));
-
// check that the port and device are not out of range
rc = ctl->checkPortAndDeviceValid(aControllerPort, aDevice);
if (FAILED(rc)) return rc;
@@ -3892,10 +3888,6 @@ STDMETHODIMP Machine::DetachDevice(IN_BSTR aControllerName, LONG aControllerPort
tr("No storage device attached to device slot %d on port %d of controller '%ls'"),
aDevice, aControllerPort, aControllerName);
- if (fHotplug && pAttach->getType() == DeviceType_DVD)
- return setError(VBOX_E_INVALID_VM_STATE,
- tr("Detaching a DVD drive while the VM is running is not supported"));
-
/*
* The VM has to detach the device before we delete any implicit diffs.
* If this fails we can roll back without loosing data.
@@ -6254,12 +6246,6 @@ STDMETHODIMP Machine::CloneTo(IMachine *pTarget, CloneMode_T mode, ComSafeArrayI
CheckComArgNotNull(pTarget);
CheckComArgOutPointerValid(pProgress);
- /** @todo r=klaus disabled as there are apparently still cases which are
- * not handled correctly */
- if (mode == CloneMode_MachineAndChildStates)
- return setError(VBOX_E_NOT_SUPPORTED,
- tr("The clone mode \"Machine and child states\" is not yet supported. Please try again in the next VirtualBox maintenance update"));
-
/* Convert the options. */
RTCList<CloneOptions_T> optList;
if (options != NULL)
@@ -9442,7 +9428,7 @@ HRESULT Machine::createImplicitDiffs(IProgress *aProgress,
true /* aImplicit */,
false /* aPassthrough */,
false /* aTempEject */,
- false /* aNonRotational */,
+ pAtt->getNonRotational(),
pAtt->getBandwidthGroup());
if (FAILED(rc)) throw rc;