VirtualBox

Changeset 23947 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2009 5:32:21 PM (15 years ago)
Author:
vboxsync
Message:

API/Medium: stub for resizing method

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MediumImpl.cpp

    r23823 r23947  
    24882488
    24892489    return rc;
     2490}
     2491
     2492STDMETHODIMP Medium::Resize(ULONG64 aLogicalSize, IProgress **aProgress)
     2493{
     2494    CheckComArgOutPointerValid(aProgress);
     2495
     2496    AutoCaller autoCaller(this);
     2497    CheckComRCReturnRC(autoCaller.rc());
     2498
     2499    NOREF(aLogicalSize);
     2500    NOREF(aProgress);
     2501    ReturnComNotImplemented();
    24902502}
    24912503
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r23946 r23947  
    96829682    </method>
    96839683
     9684    <method name="resize">
     9685      <desc>
     9686        Starts resizing this medium. This means that the nominal size of the
     9687        medium is set to the new value. Both increasing and decreasing the
     9688        size is possible, and there are no safety checks, since VirtualBox
     9689        does not make any assumptions about the medium contents.
     9690
     9691        Resizing usually needs additional disk space, and possibly also
     9692        some temporary disk space. Note that resize does not create a full
     9693        temporary copy of the medium, so the additional disk space requirement
     9694        is usually much lower than using the clone operation.
     9695
     9696        This medium will be placed to <link to="MediumState_LockedWrite"/>
     9697        state for the duration of this operation.
     9698
     9699        Please note that the results can be either returned straight away,
     9700        or later as the result of the background operation via the object
     9701        returned via the @a progress parameter.
     9702
     9703        <result name="VBOX_E_NOT_SUPPORTED">
     9704          Medium format does not support resizing.
     9705        </result>
     9706      </desc>
     9707      <param name="logicalSize" type="unsigned long long" dir="in">
     9708        <desc>New nominal capacity of the medium in megabytes.</desc>
     9709      </param>
     9710      <param name="progress" type="IProgress" dir="return">
     9711        <desc>Progress object to track the operation completion.</desc>
     9712      </param>
     9713    </method>
     9714
    96849715    <method name="reset">
    96859716      <desc>
  • trunk/src/VBox/Main/include/MediumImpl.h

    r23823 r23947  
    147147                        IMedium *aParent, IProgress **aProgress);
    148148    STDMETHOD(Compact)(IProgress **aProgress);
     149    STDMETHOD(Resize)(ULONG64 aLogicalSize, IProgress **aProgress);
    149150    STDMETHOD(Reset)(IProgress **aProgress);
    150151
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette