VirtualBox

Ignore:
Timestamp:
Apr 11, 2008 11:58:03 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29537
Message:

adjusted SATA handling

File:
1 edited

Legend:

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

    r7562 r7909  
    337337                 "                            [-boot<1-4> none|floppy|dvd|disk|net>]\n"
    338338                 "                            [-hd<a|b|d> none|<uuid>|<filename>]\n"
     339#ifdef VBOX_WITH_AHCI
     340                 "                            [-sata on|off]\n"
     341                 "                            [-sataportcount <1-30>]\n"
     342                 "                            [-sataport<1-30> none|<uuid>|<filename>]\n"
     343                 "                            [-sataideemulation hda|hdb|hdc|hdd <1-30>]\n"
     344#endif
    339345                 "                            [-dvd none|<uuid>|<filename>|host:<drive>]\n"
    340346                 "                            [-dvdpassthrough on|off]\n"
     
    412418                 "                            [-usbehci on|off]\n"
    413419                 "                            [-snapshotfolder default|<path>]\n");
    414 #ifdef VBOX_WITH_AHCI
    415         RTPrintf("                            [-sata on|off]\n"
    416                  "                            [-sataportcount <1-30>]\n"
    417                  "                            [-sataport<1-30> none|<uuid>|<filename>]\n"
    418                  "                            [-sataideemulation hda|hdb|hdc|hdd <1-30>]\n");
    419 #endif
    420420        RTPrintf("\n");
    421421    }
     
    10741074            RTPrintf("Floppy:          %s\n", pszFloppy.raw());
    10751075    }
    1076 
     1076       
     1077    /*
     1078     * SATA.
     1079     */
     1080    ComPtr<ISATAController> SATACtl;
     1081    rc = machine->COMGETTER(SATAController)(SATACtl.asOutParam());
     1082    if (SUCCEEDED(rc))
     1083    {
     1084        BOOL fEnabled;
     1085        rc = SATACtl->COMGETTER(Enabled)(&fEnabled);
     1086        if (FAILED(rc))
     1087            fEnabled = false;
     1088        if (details == VMINFO_MACHINEREADABLE)
     1089            RTPrintf("sata=\"%s\"\n", fEnabled ? "on" : "off");
     1090        else
     1091            RTPrintf("SATA:          %s\n", fEnabled ? "enabled" : "disabled");
     1092    }
     1093
     1094    /*
     1095         * Hard disks
     1096         */
    10771097    ComPtr<IHardDisk> hardDisk;
    10781098    Bstr filePath;
     
    20222042        RTPrintf("\n");
    20232043
    2024     /*
    2025      * SATA.
    2026      */
    2027     ComPtr<ISATAController> SATACtl;
    2028     rc = machine->COMGETTER(SATAController)(SATACtl.asOutParam());
    2029     if (SUCCEEDED(rc))
    2030     {
    2031         BOOL fEnabled;
    2032         rc = SATACtl->COMGETTER(Enabled)(&fEnabled);
    2033         if (FAILED(rc))
    2034             fEnabled = false;
    2035         if (details == VMINFO_MACHINEREADABLE)
    2036             RTPrintf("sata=\"%s\"\n", fEnabled ? "on" : "off");
    2037         else
    2038             RTPrintf("SATA:            %s\n", fEnabled ? "enabled" : "disabled");
    2039     }
    2040 
    20412044    if (console)
    20422045    {
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