Changeset 38887 in vbox
- Timestamp:
- Sep 27, 2011 12:08:50 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r38874 r38887 818 818 if (!RTStrICmp(pszDiscard, "on")) 819 819 { 820 CHECK_ERROR(machine, DiscardDevice(Bstr(pszCtl).raw(),821 port, device, TRUE));820 CHECK_ERROR(machine, SetAutoDiscardForDevice(Bstr(pszCtl).raw(), 821 port, device, TRUE)); 822 822 } 823 823 else if (!RTStrICmp(pszDiscard, "off")) 824 824 { 825 CHECK_ERROR(machine, DiscardDevice(Bstr(pszCtl).raw(),826 port, device, FALSE));825 CHECK_ERROR(machine, SetAutoDiscardForDevice(Bstr(pszCtl).raw(), 826 port, device, FALSE)); 827 827 } 828 828 else -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r38873 r38887 4763 4763 </method> 4764 4764 4765 <method name=" discardDevice">4765 <method name="setAutoDiscardForDevice"> 4766 4766 <desc> 4767 4767 Sets a flag in the device information which indicates that the medium -
trunk/src/VBox/Main/include/MachineImpl.h
r38873 r38887 479 479 STDMETHOD(TemporaryEjectDevice)(IN_BSTR aControllerName, LONG aControllerPort, LONG aDevice, BOOL aTempEject); 480 480 STDMETHOD(NonRotationalDevice)(IN_BSTR aControllerName, LONG aControllerPort, LONG aDevice, BOOL aNonRotational); 481 STDMETHOD( DiscardDevice)(IN_BSTR aControllerName, LONG aControllerPort, LONG aDevice, BOOL aDiscard);481 STDMETHOD(SetAutoDiscardForDevice)(IN_BSTR aControllerName, LONG aControllerPort, LONG aDevice, BOOL aDiscard); 482 482 STDMETHOD(SetBandwidthGroupForDevice)(IN_BSTR aControllerName, LONG aControllerPort, 483 483 LONG aDevice, IBandwidthGroup *aBandwidthGroup); -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r38873 r38887 4050 4050 } 4051 4051 4052 STDMETHODIMP Machine:: DiscardDevice(IN_BSTR aControllerName, LONG aControllerPort,4053 LONG aDevice, BOOL aDiscard)4052 STDMETHODIMP Machine::SetAutoDiscardForDevice(IN_BSTR aControllerName, LONG aControllerPort, 4053 LONG aDevice, BOOL aDiscard) 4054 4054 { 4055 4055 CheckComArgStrNotEmptyOrNull(aControllerName);
Note:
See TracChangeset
for help on using the changeset viewer.