VirtualBox

Changeset 43794 in vbox for trunk/src


Ignore:
Timestamp:
Nov 2, 2012 10:14:01 AM (12 years ago)
Author:
vboxsync
Message:

Main/Snapshot: issue 4386. Small changes in error messages and log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r43740 r43794  
    24862486        {/* see @bugref{4386} */
    24872487            /*check available place on the storage*/
    2488             RTFOFF pcbTotal = 0;
    2489             RTFOFF pcbFree = 0;
    2490             uint32_t pcbBlock = 0;
    2491             uint32_t pcbSector = 0;
    2492             std::multimap<uint32_t,uint64_t> neededStorageFreeSpace;
    2493             std::map<uint32_t,const char*> serialMapToStoragePath;
     2488          RTFOFF pcbTotal = 0;
     2489          RTFOFF pcbFree = 0;
     2490          uint32_t pcbBlock = 0;
     2491          uint32_t pcbSector = 0;
     2492          std::multimap<uint32_t,uint64_t> neededStorageFreeSpace;
     2493          std::map<uint32_t,const char*> serialMapToStoragePath;
    24942494
    24952495            MediumDeleteRecList::const_iterator it_md = toDelete.begin();
     
    25172517                    {
    25182518                        rc = setError(E_FAIL,
    2519                                       tr("Impossible merging with '%s'. Can't get storage UID"),
     2519                                      tr(" Unable to merge storage '%s'. Can't get storage UID "),
    25202520                                      pTarget_local->getLocationFull().c_str());
    25212521                        throw rc;
     
    25522552                if (it_sm == serialMapToStoragePath.end())
    25532553                {
    2554                     LogFlowThisFunc(("Path to the storage wasn't found...\n"));
     2554                    LogFlowThisFunc((" Path to the storage wasn't found...\n "));
    25552555
    25562556                    rc = setError(E_INVALIDARG,
    2557                                       tr(" Impossible merging with '%s'. Path to the storage wasn't found."),
     2557                                      tr(" Unable to merge storage '%s'. Path to the storage wasn't found. "),
    25582558                                      it_sm->second);
    25592559                    throw rc;
     
    25642564                {
    25652565                    rc = setError(E_FAIL,
    2566                                       tr(" Impossible merging with '%s'. Can't get the storage size."),
     2566                                      tr(" Unable to merge storage '%s'. Can't get the storage size. "),
    25672567                                      it_sm->second);
    25682568                    throw rc;
     
    25712571                if (commonSourceStoragesSize > (uint64_t)pcbFree)
    25722572                {
    2573                     LogFlowThisFunc(("There isn't enough space than it is needed for merging...\n"));
     2573                    LogFlowThisFunc((" Not enough free space to merge...\n "));
    25742574
    25752575                    rc = setError(E_OUTOFMEMORY,
    2576                                       tr(" Impossible merging with '%s'. "
    2577                                          "There isn't enough space than it is needed for merging"),
     2576                                      tr(" Unable to merge storage '%s' - not enough free storage space. "),
    25782577                                      it_sm->second);
    25792578                    throw rc;
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