VirtualBox

Changeset 17654 in vbox for trunk


Ignore:
Timestamp:
Mar 10, 2009 11:55:28 PM (16 years ago)
Author:
vboxsync
Message:

VBoxManage: Print "normal (base)" for root hard disks and "normal (differencing)" for differencing ones. Print the auto-reset state for differencing hard disks.

File:
1 edited

Legend:

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

    r17402 r17654  
    833833        RTPrintf("Current size on disk: %llu MBytes\n", actualSize >> 20);
    834834
     835        ComPtr <IHardDisk> parent;
     836        hardDisk->COMGETTER(Parent) (parent.asOutParam());
     837
    835838        HardDiskType_T type;
    836839        hardDisk->COMGETTER(Type)(&type);
     
    839842        {
    840843            case HardDiskType_Normal:
    841                 typeStr = "normal";
     844                if (!parent.isNull())
     845                    typeStr = "normal (differencing)";
     846                else
     847                    typeStr = "normal (base)";
    842848                break;
    843849            case HardDiskType_Immutable:
     
    871877            }
    872878            /// @todo NEWMEDIA check usage in snapshots too
    873             /// @todo NEWMEDIA also list children and say 'differencing' for
    874             /// hard disks with the parent or 'base' otherwise.
     879            /// @todo NEWMEDIA also list children
    875880        }
    876881
     
    878883        hardDisk->COMGETTER(Location)(loc.asOutParam());
    879884        RTPrintf("Location:             %lS\n", loc.raw());
     885
     886        /* print out information specific for differencing hard disks */
     887        if (!parent.isNull())
     888        {
     889            BOOL autoReset = FALSE;
     890            hardDisk->COMGETTER(AutoReset)(&autoReset);
     891            RTPrintf("Auto-Reset:           %s\n", autoReset ? "on" : "off");
     892        }
    880893    }
    881894    while (0);
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