VirtualBox

Changeset 34829 in vbox


Ignore:
Timestamp:
Dec 8, 2010 12:17:46 PM (14 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: show image variant with showhdinfo

File:
1 edited

Legend:

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

    r34634 r34829  
    10531053        hardDisk->COMGETTER(Format)(format.asOutParam());
    10541054        RTPrintf("Storage format:       %lS\n", format.raw());
     1055        MediumVariant_T variant;
     1056        hardDisk->COMGETTER(Variant)(&variant);
     1057        const char *variantStr = "unknown";
     1058        switch (variant & ~(MediumVariant_Fixed | MediumVariant_Diff))
     1059        {
     1060            case MediumVariant_VmdkSplit2G:
     1061                variantStr = "split2G";
     1062                break;
     1063            case MediumVariant_VmdkStreamOptimized:
     1064                variantStr = "streamOptimized";
     1065                break;
     1066            case MediumVariant_VmdkESX:
     1067                variantStr = "ESX";
     1068                break;
     1069            case MediumVariant_Standard:
     1070                variantStr = "default";
     1071                break;
     1072        }
     1073        const char *variantTypeStr = "dynamic";
     1074        if (variant & MediumVariant_Fixed)
     1075            variantTypeStr = "fixed";
     1076        else if (variant & MediumVariant_Diff)
     1077            variantTypeStr = "differencing";
     1078        RTPrintf("Format variant:       %s %s\n", variantTypeStr, variantStr);
    10551079
    10561080        /// @todo also dump config parameters (iSCSI)
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