VirtualBox

Changeset 20289 in vbox


Ignore:
Timestamp:
Jun 4, 2009 2:44:43 PM (16 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: fix showvminfo --machinereadable output of boot order

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r19239 r20289  
    957957    {
    958958        RTPrintf("File '%s' is no block device\n", rawdisk.raw());
    959         vrc = VERR_INVALID_PARAMETER;
    960         goto out;
     959        vrc = RTFileGetSize(RawFile, &cbSize);
     960        //vrc = VERR_INVALID_PARAMETER;
     961        //goto out;
    961962    }
    962963#elif defined(RT_OS_DARWIN)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r20252 r20289  
    267267        {
    268268            if (details == VMINFO_MACHINEREADABLE)
    269                 RTPrintf("bootdevice-%d=\"floppy\"\n", i);
     269                RTPrintf("boot%d=\"floppy\"\n", i);
    270270            else
    271271                RTPrintf("Boot Device (%d): Floppy\n", i);
     
    274274        {
    275275            if (details == VMINFO_MACHINEREADABLE)
    276                 RTPrintf("bootdevice-%d=\"dvd\"\n", i);
     276                RTPrintf("boot%d=\"dvd\"\n", i);
    277277            else
    278278                RTPrintf("Boot Device (%d): DVD\n", i);
     
    281281        {
    282282            if (details == VMINFO_MACHINEREADABLE)
    283                 RTPrintf("bootdevice-%d=\"harddisk\"\n", i);
     283                RTPrintf("boot%d=\"disk\"\n", i);
    284284            else
    285285                RTPrintf("Boot Device (%d): HardDisk\n", i);
     
    288288        {
    289289            if (details == VMINFO_MACHINEREADABLE)
    290                 RTPrintf("bootdevice-%d=\"network\"\n", i);
     290                RTPrintf("boot%d=\"net\"\n", i);
    291291            else
    292292                RTPrintf("Boot Device (%d): Network\n", i);
     
    295295        {
    296296            if (details == VMINFO_MACHINEREADABLE)
    297                 RTPrintf("bootdevice-%d=\"usb\"\n", i);
     297                RTPrintf("boot%d=\"usb\"\n", i);
    298298            else
    299299                RTPrintf("Boot Device (%d): USB\n", i);
     
    302302        {
    303303            if (details == VMINFO_MACHINEREADABLE)
    304                 RTPrintf("bootdevice-%d=\"sharedfolder\"\n", i);
     304                RTPrintf("boot%d=\"sharedfolder\"\n", i);
    305305            else
    306306                RTPrintf("Boot Device (%d): Shared Folder\n", i);
     
    309309        {
    310310            if (details == VMINFO_MACHINEREADABLE)
    311                 RTPrintf("bootdevice-%d=\"null\"\n", i);
     311                RTPrintf("boot%d=\"none\"\n", i);
    312312            else
    313313                RTPrintf("Boot Device (%d): Not Assigned\n", i);
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