VirtualBox

Ignore:
Timestamp:
Mar 13, 2008 2:33:18 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28880
Message:

Main: Applied SATA changes from #2406. Increased XML settings version format from 1.2 to 1.3.pre.

File:
1 edited

Legend:

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

    r7379 r7442  
    10601060    ComPtr<IHardDisk> hardDisk;
    10611061    Bstr filePath;
    1062     rc = machine->GetHardDisk(DiskControllerType_IDE0, 0, hardDisk.asOutParam());
     1062    rc = machine->GetHardDisk(StorageBus_IDE, 0, 0, hardDisk.asOutParam());
    10631063    if (SUCCEEDED(rc) && hardDisk)
    10641064    {
     
    10831083            RTPrintf("hda=\"none\"\n");
    10841084    }
    1085     rc = machine->GetHardDisk(DiskControllerType_IDE0, 1, hardDisk.asOutParam());
     1085    rc = machine->GetHardDisk(StorageBus_IDE, 0, 1, hardDisk.asOutParam());
    10861086    if (SUCCEEDED(rc) && hardDisk)
    10871087    {
     
    11061106            RTPrintf("hdb=\"none\"\n");
    11071107    }
    1108     rc = machine->GetHardDisk(DiskControllerType_IDE1, 1, hardDisk.asOutParam());
     1108    rc = machine->GetHardDisk(StorageBus_IDE, 1, 1, hardDisk.asOutParam());
    11091109    if (SUCCEEDED(rc) && hardDisk)
    11101110    {
     
    45104510            if (strcmp(hdds[0], "none") == 0)
    45114511            {
    4512                 machine->DetachHardDisk(DiskControllerType_IDE0, 0);
     4512                machine->DetachHardDisk(StorageBus_IDE, 0, 0);
    45134513            }
    45144514            else
     
    45434543                {
    45444544                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    4545                     CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0, 0));
     4545                    CHECK_ERROR(machine, AttachHardDisk(uuid, StorageBus_IDE, 0, 0));
    45464546                }
    45474547                else
     
    45554555            if (strcmp(hdds[1], "none") == 0)
    45564556            {
    4557                 machine->DetachHardDisk(DiskControllerType_IDE0, 1);
     4557                machine->DetachHardDisk(StorageBus_IDE, 0, 1);
    45584558            }
    45594559            else
     
    45884588                {
    45894589                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    4590                     CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0, 1));
     4590                    CHECK_ERROR(machine, AttachHardDisk(uuid, StorageBus_IDE, 0, 1));
    45914591                }
    45924592                else
     
    46004600            if (strcmp(hdds[2], "none") == 0)
    46014601            {
    4602                 machine->DetachHardDisk(DiskControllerType_IDE1, 1);
     4602                machine->DetachHardDisk(StorageBus_IDE, 1, 1);
    46034603            }
    46044604            else
     
    46334633                {
    46344634                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    4635                     CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE1, 1));
     4635                    CHECK_ERROR(machine, AttachHardDisk(uuid, StorageBus_IDE, 1, 1));
    46364636                }
    46374637                else
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