Changeset 7909 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Apr 11, 2008 11:58:03 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29537
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r7562 r7909 337 337 " [-boot<1-4> none|floppy|dvd|disk|net>]\n" 338 338 " [-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 339 345 " [-dvd none|<uuid>|<filename>|host:<drive>]\n" 340 346 " [-dvdpassthrough on|off]\n" … … 412 418 " [-usbehci on|off]\n" 413 419 " [-snapshotfolder default|<path>]\n"); 414 #ifdef VBOX_WITH_AHCI415 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 #endif420 420 RTPrintf("\n"); 421 421 } … … 1074 1074 RTPrintf("Floppy: %s\n", pszFloppy.raw()); 1075 1075 } 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 */ 1077 1097 ComPtr<IHardDisk> hardDisk; 1078 1098 Bstr filePath; … … 2022 2042 RTPrintf("\n"); 2023 2043 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 else2038 RTPrintf("SATA: %s\n", fEnabled ? "enabled" : "disabled");2039 }2040 2041 2044 if (console) 2042 2045 {
Note:
See TracChangeset
for help on using the changeset viewer.