VirtualBox

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


Ignore:
Timestamp:
Aug 9, 2007 10:10:40 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23546
Message:

VBoxManage: Show VDI size and description even if not accessible (cached values).

File:
1 edited

Legend:

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

    r4071 r4095  
    49624962        RTPrintf("Accessible:           %s\n", accessible ? "yes" : "no");
    49634963
    4964         if (accessible)
    4965         {
    4966             Bstr description;
    4967             hardDisk->COMGETTER(Description)(description.asOutParam());
    4968             if (description)
    4969             {
    4970                 RTPrintf("Description:          %lS\n", description.raw());
    4971             }
    4972 
    4973             ULONG64 size;
    4974             hardDisk->COMGETTER(Size)(&size);
    4975             RTPrintf("Size:                 %llu MBytes\n", size);
    4976             ULONG64 actualSize;
    4977             hardDisk->COMGETTER(ActualSize)(&actualSize);
    4978             RTPrintf("Current size on disk: %llu MBytes\n", actualSize >> 20);
    4979         }
    4980         else
     4964        if (!accessible)
    49814965        {
    49824966            Bstr err;
     
    49844968            RTPrintf("Access Error:         %lS\n", err.raw());
    49854969        }
     4970
     4971        Bstr description;
     4972        hardDisk->COMGETTER(Description)(description.asOutParam());
     4973        if (description)
     4974        {
     4975            RTPrintf("Description:          %lS\n", description.raw());
     4976        }
     4977
     4978        ULONG64 size;
     4979        hardDisk->COMGETTER(Size)(&size);
     4980        RTPrintf("Size:                 %llu MBytes\n", size);
     4981        ULONG64 actualSize;
     4982        hardDisk->COMGETTER(ActualSize)(&actualSize);
     4983        RTPrintf("Current size on disk: %llu MBytes\n", actualSize >> 20);
    49864984
    49874985        HardDiskType_T type;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette