VirtualBox

Changeset 98351 in vbox


Ignore:
Timestamp:
Jan 30, 2023 7:26:27 PM (2 years ago)
Author:
vboxsync
Message:

Main: Fix plural of "medium" in many comments.

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

Legend:

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

    r98103 r98351  
    65396539    </const>
    65406540    <const name="DetachAllReturnHardDisksAndVMRemovable"  value="5">
    6541       <desc>Delete all snapshots, detach all media and return hard disks and removable locating in the folder of the machine to be deleted and referenced only to this machine, for closing.</desc>
     6541      <desc>Delete all snapshots, detach all media and return hard disks and removable
     6542        media located in the folder of the machine to be deleted and referenced only
     6543        by this machine, for closing.</desc>
    65426544    </const>
    65436545  </enum>
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r98341 r98351  
    11461146     *   "cannot be closed because it is still attached to 1 virtual machines"
    11471147     * because at this point we did not call uninitDataAndChildObjects() yet
    1148      * and therefore also removeBackReference() for all these mediums was not called! */
     1148     * and therefore also removeBackReference() for all these media was not called! */
    11491149
    11501150    if (uuidMachine.isValid() && !uuidMachine.isZero())     // can be empty if we're called from a failure of Machine::init
     
    1183811838 * adds hard disks to the list. If it is CleanupMode_Full, this adds all
    1183911839 * media to the list.
    11840  * CleanupMode_DetachAllReturnHardDisksAndVMRemovable adds hard disk and
    11841  * also removable medias if they are located in the VM folder and referenced
     11840 * CleanupMode_DetachAllReturnHardDisksAndVMRemovable adds hard disks and
     11841 * also removable media if they are located in the VM folder and referenced
    1184211842 * only by this VM (media prepared by unattended installer).
    1184311843 *
     
    1190711907                lock.release();
    1190811908                /*
    11909                  * Search for medias which are not attached to any machine, but
    11910                  * in the chain to an attached disk. Mediums are only consided
     11909                 * Search for media which are not attached to any machine, but
     11910                 * in the chain to an attached disk. Media are only consided
    1191111911                 * if they are:
    1191211912                 * - have only one child
     
    1658816588        Bstr bstrNewPassword(task.mstrNewPassword);
    1658916589        Bstr bstrNewPasswordId(task.mstrNewPasswordId);
    16590         /* encrypt mediums */
     16590        /* encrypt media */
    1659116591        alock.release();
    1659216592        for (MediaList::iterator it = task.mllMedia.begin();
     
    1669516695    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    1669616696
    16697     /* define mediums to be change encryption */
     16697    /* define media to be change encryption */
    1669816698
    1669916699    MediaList llMedia;
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r98288 r98351  
    387387                                                                   bool fAttachLinked, ULONG &uCount, ULONG &uTotalWeight)
    388388{
    389     /* This is basically a three step approach. First select all medias
     389    /* This is basically a three step approach. First select all media
    390390     * directly or indirectly involved in the clone. Second create a histogram
    391      * of the usage of all that medias. Third select the medias which are
     391     * of the usage of all that media. Third select the media which are
    392392     * directly attached or have more than one directly/indirectly used child
    393393     * in the new clone. Step one and two are done in the first loop.
     
    419419    Assert(!fAttachLinked);
    420420    HRESULT hrc = S_OK;
    421     std::map<ComPtr<IMedium>, uint32_t> mediaHist; /* Our usage histogram for the medias */
     421    std::map<ComPtr<IMedium>, uint32_t> mediaHist; /* Our usage histogram for the media */
    422422    for (size_t i = 0; i < machineList.size(); ++i)
    423423    {
     
    458458            while (!pSrcMedium.isNull())
    459459            {
    460                 /* Build a histogram of used medias and the parent chain. */
     460                /* Build a histogram of used media and the parent chain. */
    461461                ++mediaHist[pSrcMedium];
    462462
     
    10001000        }
    10011001
    1002         /* We have different approaches for getting the medias which needs to
     1002        /* We have different approaches for getting the media which needs to
    10031003         * be replicated based on the clone mode the user requested (this is
    10041004         * mostly about the full clone mode).
     
    11821182        bool fKeepDiskNames = d->options.contains(CloneOptions_KeepDiskNames);
    11831183
    1184         /* We need to create a map with the already created medias. This is
     1184        /* We need to create a map with the already created media. This is
    11851185         * necessary, cause different snapshots could have the same
    11861186         * parents/parent chain. If a medium is in this map already, it isn't
     
    16461646                                      tr("Could not delete file '%s' (%Rrc)"), newFiles.at(i).c_str(), vrc);
    16471647        }
    1648         /* Delete all already created medias. (Reverse, cause there could be
     1648        /* Delete all already created media. (Reverse, cause there could be
    16491649         * parent->child relations.) */
    16501650        for (size_t i = newMedia.size(); i > 0; --i)
  • trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp

    r98289 r98351  
    959959        Machine::Data *machineData = machine->mData.data();
    960960
    961         /* Restoring the original mediums */
     961        /* Restoring the original media */
    962962        try
    963963        {
     
    10811081        {
    10821082            hrc = aRc;
    1083             Log2(("Rollback scenario: restoration the original mediums were failed. Machine can be corrupted.\n"));
     1083            Log2(("Rollback scenario: restoration the original media failed. Machine can be corrupted.\n"));
    10841084        }
    10851085        catch (...)
    10861086        {
    1087             Log2(("Rollback scenario: restoration the original mediums were failed. Machine can be corrupted.\n"));
     1087            Log2(("Rollback scenario: restoration the original media failed. Machine can be corrupted.\n"));
    10881088            hrc = VirtualBoxBase::handleUnexpectedExceptions(machine, RT_SRC_POS);
    10891089        }
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r98292 r98351  
    10641064       )
    10651065    {
    1066         /* Storage for mediums of this format can neither be explicitly
     1066        /* Storage for media of this format can neither be explicitly
    10671067         * created by VirtualBox nor deleted, so we place the medium to
    10681068         * Inaccessible state here and also add it to the registry. The
     
    54465446 * @param aWait             @c true if this method should block instead of
    54475447 *                          creating an asynchronous thread.
    5448  * @param aNotify           Notify about mediums which metadatа are changed
     5448 * @param aNotify           Notify about media for which metadata is changed
    54495449 *                          during execution of the function.
    54505450 *
     
    57305730 * @param aWait         @c true if this method should block instead of creating
    57315731 *                      an asynchronous thread.
    5732  * @param aNotify       Notify about mediums which metadatа are changed
     5732 * @param aNotify       Notify about media for which metadata is changed
    57335733 *                      during execution of the function.
    57345734 *
     
    65496549 * @param aWait         @c true if this method should block instead of creating
    65506550 *                      an asynchronous thread.
    6551  * @param aNotify       Notify about mediums which metadatа are changed
     6551 * @param aNotify       Notify about media for which metadata is changed
    65526552 *                      during execution of the function.
    65536553 *
     
    67306730 * @param aWait         @c true if this method should block instead of creating
    67316731 *                      an asynchronous thread.
    6732  * @param aNotify       Notify about mediums which metadatа are changed
     6732 * @param aNotify       Notify about media for which metadata is changed
    67336733 *                      during execution of the function.
    67346734 *
     
    70837083 * @param aParent               Parent medium. May be NULL.
    70847084 * @param aProgress             Progress object to use.
    7085  * @param aNotify               Notify about mediums which metadatа are changed
     7085 * @param aNotify               Notify about media for which metadata is changed
    70867086 *                              during execution of the function.
    70877087 * @return
     
    71977197 *                           same content as the given image in the source chain.
    71987198 *                           Use UINT32_MAX to disable this optimization.
    7199  * @param aNotify            Notify about mediums which metadatа are changed
     7199 * @param aNotify            Notify about media for which metadata is changed
    72007200 *                           during execution of the function.
    72017201 * @return
     
    93179317            if (i_isMediumFormatFile())
    93189318            {
    9319                 // Have to make own lock list, because "resize" method resizes only last image
    9320                 // in the lock chain. The lock chain already in the task.mpMediumLockList, so
    9321                 // just make new lock list based on it. In fact the own lock list neither makes
    9322                 // double locking of mediums nor unlocks them during delete, because medium
    9323                 // already locked by task.mpMediumLockList and own list is used just to specify
    9324                 // what "resize" method should resize.
    9325 
     9319                /// @todo r=klaus Can this use the standard code for creating a medium lock list?
     9320                // Have to make own lock list, because "resize" method resizes the last image
     9321                // in the lock chain only. The lock chain is already in the task.mpMediumLockList,
     9322                // so just make new lock list based on it, with the right last medium. The own
     9323                // lock list skips double locking and therefore does not affect the general lock
     9324                // state after the "resize" method.
    93269325                MediumLockList* pMediumLockListForResize = new MediumLockList();
    93279326
     
    93379336
    93389337                // just to switch internal state of the lock list to avoid errors during list deletion,
    9339                 // because all meduims in the list already locked by task.mpMediumLockList
     9338                // because all media in the list already locked by task.mpMediumLockList
    93409339                HRESULT hrc = pMediumLockListForResize->Lock(true /* fSkipOverLockedMedia */);
    93419340                if (FAILED(hrc))
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r98289 r98351  
    27282728 *
    27292729 * So far we only have encrypted iSCSI initiator secrets so we just go through
    2730  * all hard disk mediums and determine the plain 'InitiatorSecret' from
     2730 * all hard disk media and determine the plain 'InitiatorSecret' from
    27312731 * 'InitiatorSecretEncrypted. The latter is stored as Base64 because medium
    27322732 * properties need to be null-terminated strings.
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