VirtualBox

Changeset 97932 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 31, 2022 9:50:09 PM (2 years ago)
Author:
vboxsync
Message:

Main: backout. bugref:10090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r97931 r97932  
    10051005    { "--variant",      'm', RTGETOPT_REQ_STRING },
    10061006    { "-variant",       'm', RTGETOPT_REQ_STRING },
    1007     { "--resize",       'r', RTGETOPT_REQ_UINT64 },
    10081007};
    10091008
     
    10231022    MediumVariant_T enmMediumVariant = MediumVariant_Standard;
    10241023    bool fExisting = false;
    1025     bool fNeedResize = false;
    1026     uint64_t cbResize = 0;
    10271024
    10281025    int c;
     
    10741071                if (RT_FAILURE(vrc))
    10751072                    return errorArgument(Disk::tr("Invalid medium variant '%s'"), ValueUnion.psz);
    1076                 break;
    1077 
    1078             case 'r':   // --resize
    1079                 fNeedResize = true;
    1080                 cbResize = ValueUnion.u64 * _1M;
    10811073                break;
    10821074
     
    11991191        }
    12001192
    1201         if (fNeedResize)
    1202         {
    1203             CHECK_ERROR_BREAK(pSrcMedium, ResizeAndCloneTo(pDstMedium, cbResize, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam()));
    1204         }
    1205         else
    1206         {
    1207             CHECK_ERROR_BREAK(pSrcMedium, CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam()));
    1208         }
    1209 
     1193        CHECK_ERROR_BREAK(pSrcMedium, CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam()));
    12101194
    12111195        hrc = showProgress(pProgress);
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