VirtualBox

Ignore:
Timestamp:
Nov 2, 2009 3:29:41 PM (15 years ago)
Author:
vboxsync
Message:

Main: more API doc fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r24262 r24266  
    83258325    <const name="LockedRead" value="2">
    83268326      <desc>
    8327         Medium is locked for reading, no data modification is possible. A
    8328         medium is typically locked for reading while it is used by a running
    8329         virtual machine but has a depending differencing image that receives
    8330         the actual write operations. This way one base medium can have multiple
    8331         child differencing images which can be written to simultaneously.
     8327        Medium is locked for reading (see <link to="IMedium::lockRead"/>),
     8328        no data modification is possible.
    83328329      </desc>
    83338330    </const>
    83348331    <const name="LockedWrite" value="3">
    83358332      <desc>
    8336         Medium is locked for writing, no concurrent data reading or modification
    8337         is possible. A medium is typically locked for writing when it receives
    8338         write operations from a running virtual machine. If a medium has
    8339         differencing images, then while the machine is running, only the last
    8340         ("leaf") differencing image is locked for writing, whereas its parents
    8341         are locked for reading only.
     8333        Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
     8334        no concurrent data reading or modification is possible.
    83428335      </desc>
    83438336    </const>
     
    91719164        Locks this medium for reading.
    91729165
    9173         The read lock is shared: many clients can simultaneously lock the
     9166        A read lock is shared: many clients can simultaneously lock the
    91749167        same medium for reading unless it is already locked for writing (see
    91759168        <link to="#lockWrite"/>) in which case an error is returned.
     
    91789171        from within VirtualBox. This means that any method that changes
    91799172        the properties of this medium or contents of the storage unit
    9180         will return an error (unless explicitly stated otherwise) and
    9181         that an attempt to start a virtual machine that wants to modify
    9182         the medium will also fail.
     9173        will return an error (unless explicitly stated otherwise). That
     9174        includes an attempt to start a virtual machine that wants to
     9175        write to the the medium.
    91839176
    91849177        When the virtual machine is started up, it locks for reading all
    91859178        media it uses in read-only mode. If some medium cannot be locked
    91869179        for reading, the startup procedure will fail.
     9180        A medium is typically locked for reading while it is used by a running
     9181        virtual machine but has a depending differencing image that receives
     9182        the actual write operations. This way one base medium can have
     9183        multiple child differencing images which can be written to
     9184        simultaneously. Read-only media such as DVD and floppy images are
     9185        also locked for reading only (so they can be in use by multiple
     9186        machines simultaneously).
     9187
     9188        A medium is also locked for reading when it is the source of a
     9189        write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
    91879190
    91889191        The medium locked for reading must be unlocked using the <link
     
    91919194        <link to="#unlockRead"/> calls.
    91929195
    9193         This method sets the medium state to <link
    9194         to="MediumState_LockedRead" /> on success. The state prior to
    9195         this call must be <link to="MediumState_Created" />,
    9196         <link to="MediumState_Inaccessible" /> or
    9197         <link to="MediumState_LockedRead" />.
    9198         As you can see, an inaccessible medium can be locked too. This is
    9199         not an error; this method performs a logical lock that prevents
    9200         modifications of this medium through the VirtualBox API, not a
    9201         physical lock of the underlying storage unit.
     9196        This method sets the medium state (see <link to="#state"/>) to
     9197        "LockedRead" on success. The medium's previous state must be
     9198        one of "Created", "Inaccessible" or "LockedRead".
     9199
     9200        Locking an inaccessible medium is not an error; this method performs
     9201        a logical lock that prevents modifications of this medium through
     9202        the VirtualBox API, not a physical file-system lock of the underlying
     9203        storage unit.
    92029204
    92039205        This method returns the current state of the medium
    9204         <b>before</b> the operation.
     9206        <i>before</i> the operation.
    92059207
    92069208        <result name="VBOX_E_INVALID_OBJECT_STATE">
     
    92219223        Cancels the read lock previously set by <link to="#lockRead"/>.
    92229224
    9223         For both, success and failure, this method returns the current state
    9224         of the medium <b>after</b> the operation.
     9225        For both success and failure, this method returns the current state
     9226        of the medium <i>after</i> the operation.
    92259227
    92269228        See <link to="#lockRead"/> for more details.
     
    92429244        Locks this medium for writing.
    92439245
    9244         The write lock, as opposed to <link to="#lockRead"/>, is
    9245         exclusive: there may be only one client holding a write lock
     9246        A write lock, as opposed to <link to="#lockRead"/>, is
     9247        exclusive: there may be only one client holding a write lock,
    92469248        and there may be no read locks while the write lock is held.
    9247 
    9248         When the medium is locked for writing, it cannot be modified
    9249         from within VirtualBox and it is not guaranteed that the values
     9249        As a result, read-locking fails if a write lock is held, and
     9250        write-locking fails if either a read or another write lock is held.
     9251
     9252        When a medium is locked for writing, it cannot be modified
     9253        from within VirtualBox, and it is not guaranteed that the values
    92509254        of its properties are up-to-date. Any method that changes the
    92519255        properties of this medium or contents of the storage unit will
    9252         return an error (unless explicitly stated otherwise) and an
    9253         attempt to start a virtual machine wanting to modify or to
    9254         read the medium will fail.
    9255 
    9256         When the virtual machine is started up, it locks for writing all
     9256        return an error (unless explicitly stated otherwise).
     9257
     9258        When a virtual machine is started up, it locks for writing all
    92579259        media it uses to write data to. If any medium could not be locked
    9258         for writing, the startup procedure will fail.
     9260        for writing, the startup procedure will fail. If a medium has
     9261        differencing images, then while the machine is running, only
     9262        the last ("leaf") differencing image is locked for writing,
     9263        whereas its parents are locked for reading only.
     9264
     9265        A medium is also locked for writing when it is the target of a
     9266        write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
    92599267
    92609268        The medium locked for writing must be unlocked using the <link
    9261         to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
    9262         can <b>not</b> be nested and must be followed by a<link
    9263         to="#unlockWrite"/> call before the next lockWrite call.
    9264 
    9265         This method sets the medium state to <link to="MediumState_LockedWrite" />
    9266         on success. The state prior to this call must be <link to="MediumState_Created"/>
    9267         or <link to="MediumState_Inaccessible"/>. As you can see, an inaccessible
    9268         medium can be locked too. This is not an error; this method
    9269         performs a logical lock preventing modifications of this
    9270         medium through the VirtualBox API, not a physical lock of the
    9271         underlying storage unit.
     9269        to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
     9270
     9271        This method sets the medium state (see <link to="#state"/>) to
     9272        "LockedWrite" on success. The medium's previous state must be
     9273        either "Created" or "Inaccessible".
     9274
     9275        Locking an inaccessible medium is not an error; this method performs
     9276        a logical lock that prevents modifications of this medium through
     9277        the VirtualBox API, not a physical file-system lock of the underlying
     9278        storage unit.
    92729279
    92739280        For both, success and failure, this method returns the current
    9274         state of the medium <b>before</b> the operation.
     9281        state of the medium <i>before</i> the operation.
    92759282
    92769283        <result name="VBOX_E_INVALID_OBJECT_STATE">
     
    92919298        Cancels the write lock previously set by <link to="#lockWrite"/>.
    92929299
    9293         For both, success and failure, this method returns the current
    9294         state of the medium <b>after</b> the operation.
     9300        For both success and failure, this method returns the current
     9301        state of the medium <i>after</i> the operation.
    92959302
    92969303        See <link to="#lockWrite"/> for more details.
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