VirtualBox

Ignore:
Timestamp:
Sep 23, 2009 9:57:11 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52725
Message:

medium: rename default IDE/FD storage controller names to IDE Controller and Floppy Controller

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

Legend:

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

    r23223 r23249  
    11951195            else
    11961196                uuid = Guid().toString();
    1197             CHECK_ERROR(machine, MountMedium(Bstr("IDE"), 1, 0, uuid));
     1197            CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid));
    11981198        }
    11991199        else if (!strcmp(a->argv[1], "floppyattach"))
     
    12501250            }
    12511251            floppyMedium->COMGETTER(Id)(uuid.asOutParam());
    1252             CHECK_ERROR(machine, MountMedium(Bstr("FD"), 0, 0, uuid));
     1252            CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid));
    12531253        }
    12541254#ifdef VBOX_WITH_MEM_BALLOONING
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r23223 r23249  
    449449    bool                       fFloppyEnabled = false;
    450450
    451     rc = machine->GetStorageControllerByName(Bstr("FD"), FloppyCtl.asOutParam());
     451    rc = machine->GetStorageControllerByName(Bstr("Floppy Controller"), FloppyCtl.asOutParam());
    452452    if (SUCCEEDED(rc))
    453453        fFloppyEnabled = true;
     
    470470        for (ULONG i = 0; i < cFloppyPorts; ++ i)
    471471        {
    472             rc = machine->GetMedium(Bstr("FD"), 0, i, floppyMedium.asOutParam());
     472            rc = machine->GetMedium(Bstr("Floppy Controller"), 0, i, floppyMedium.asOutParam());
    473473            if (SUCCEEDED(rc) && floppyMedium)
    474474            {
     
    548548    ComPtr<IStorageController> ideController;
    549549
    550     rc = machine->GetStorageControllerByName(Bstr("IDE"), ideController.asOutParam());
     550    rc = machine->GetStorageControllerByName(Bstr("IDE Controller"), ideController.asOutParam());
    551551    if (SUCCEEDED(rc) && ideController)
    552552    {
     
    578578    ComPtr<IMedium> hardDisk;
    579579    Bstr filePath;
    580     rc = machine->GetMedium(Bstr("IDE"), 0, 0, hardDisk.asOutParam());
     580    rc = machine->GetMedium(Bstr("IDE Controller"), 0, 0, hardDisk.asOutParam());
    581581    if (SUCCEEDED(rc) && hardDisk)
    582582    {
     
    596596            RTPrintf("hda=\"none\"\n");
    597597    }
    598     rc = machine->GetMedium(Bstr("IDE"), 0, 1, hardDisk.asOutParam());
     598    rc = machine->GetMedium(Bstr("IDE Controller"), 0, 1, hardDisk.asOutParam());
    599599    if (SUCCEEDED(rc) && hardDisk)
    600600    {
     
    614614            RTPrintf("hdb=\"none\"\n");
    615615    }
    616     rc = machine->GetMedium(Bstr("IDE"), 1, 1, hardDisk.asOutParam());
     616    rc = machine->GetMedium(Bstr("IDE Controller"), 1, 1, hardDisk.asOutParam());
    617617    if (SUCCEEDED(rc) && hardDisk)
    618618    {
     
    633633    }
    634634    ComPtr<IMedium> dvdMedium;
    635     rc = machine->GetMedium(Bstr("IDE"), 1, 0, dvdMedium.asOutParam());
     635    rc = machine->GetMedium(Bstr("IDE Controller"), 1, 0, dvdMedium.asOutParam());
    636636    if (SUCCEEDED(rc) && dvdMedium)
    637637    {
     
    648648        BOOL fPassthrough;
    649649        ComPtr<IMediumAttachment> dvdAttachment;
    650         machine->GetMediumAttachment(Bstr("IDE"), 1, 0, dvdAttachment.asOutParam());
     650        machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam());
    651651        dvdAttachment->COMGETTER(Passthrough)(&fPassthrough);
    652652        if (details == VMINFO_MACHINEREADABLE)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r23223 r23249  
    11741174            if (!strcmp(hdds[0], "none"))
    11751175            {
    1176                 machine->DetachDevice(Bstr("IDE"), 0, 0);
     1176                machine->DetachDevice(Bstr("IDE Controller"), 0, 0);
    11771177            }
    11781178            else
     
    11951195                {
    11961196                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    1197                     CHECK_ERROR(machine, AttachDevice(Bstr("IDE"), 0, 0, DeviceType_HardDisk, uuid));
     1197                    CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 0, 0, DeviceType_HardDisk, uuid));
    11981198                }
    11991199                else
     
    12071207            if (!strcmp(hdds[1], "none"))
    12081208            {
    1209                 machine->DetachDevice(Bstr("IDE"), 0, 1);
     1209                machine->DetachDevice(Bstr("IDE Controller"), 0, 1);
    12101210            }
    12111211            else
     
    12281228                {
    12291229                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    1230                     CHECK_ERROR(machine, AttachDevice(Bstr("IDE"), 0, 1, DeviceType_HardDisk, uuid));
     1230                    CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 0, 1, DeviceType_HardDisk, uuid));
    12311231                }
    12321232                else
     
    12401240            if (!strcmp(hdds[2], "none"))
    12411241            {
    1242                 machine->DetachDevice(Bstr("IDE"), 1, 1);
     1242                machine->DetachDevice(Bstr("IDE Controller"), 1, 1);
    12431243            }
    12441244            else
     
    12611261                {
    12621262                    hardDisk->COMGETTER(Id)(uuid.asOutParam());
    1263                     CHECK_ERROR(machine, AttachDevice(Bstr("IDE"), 1, 1, DeviceType_HardDisk, uuid));
     1263                    CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 1, 1, DeviceType_HardDisk, uuid));
    12641264                }
    12651265                else
     
    13301330             * storage controllers. */
    13311331            dvdMedium->COMGETTER(Id)(uuid.asOutParam());
    1332             CHECK_ERROR(machine, MountMedium(Bstr("IDE"), 1, 0, uuid));
     1332            CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid));
    13331333        }
    13341334        if (dvdpassthrough)
    13351335        {
    13361336            ComPtr<IMediumAttachment> dvdAttachment;
    1337             machine->GetMediumAttachment(Bstr("IDE"), 1, 0, dvdAttachment.asOutParam());
     1337            machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam());
    13381338            ASSERT(dvdAttachment);
    13391339
     
    13431343        {
    13441344            ComPtr<IStorageController> storageController;
    1345             CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE"), storageController.asOutParam()));
     1345            CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE Controller"), storageController.asOutParam()));
    13461346
    13471347            if (!RTStrICmp(idecontroller, "PIIX3"))
     
    13681368            ComPtr<IMedium> floppyMedium;
    13691369            ComPtr<IMediumAttachment> floppyAttachment;
    1370             machine->GetMediumAttachment(Bstr("FD"), 0, 0, floppyAttachment.asOutParam());
     1370            machine->GetMediumAttachment(Bstr("Floppy Controller"), 0, 0, floppyAttachment.asOutParam());
    13711371
    13721372            /* disable? */
     
    13751375                /* disable the controller */
    13761376                if (floppyAttachment)
    1377                     CHECK_ERROR(machine, DetachDevice(Bstr("FD"), 0, 0));
     1377                    CHECK_ERROR(machine, DetachDevice(Bstr("Floppy Controller"), 0, 0));
    13781378            }
    13791379            else
     
    13811381                /* enable the controller */
    13821382                if (!floppyAttachment)
    1383                     CHECK_ERROR(machine, AttachDevice(Bstr("FD"), 0, 0, DeviceType_Floppy, NULL));
     1383                    CHECK_ERROR(machine, AttachDevice(Bstr("Floppy Controller"), 0, 0, DeviceType_Floppy, NULL));
    13841384
    13851385                /* unmount? */
     
    14251425                }
    14261426                floppyMedium->COMGETTER(Id)(uuid.asOutParam());
    1427                 CHECK_ERROR(machine, MountMedium(Bstr("FD"), 0, 0, uuid));
     1427                CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid));
    14281428            }
    14291429        }
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