- 時間撮記:
- 2015-2-2 下午09:17:31 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r53831 r54060 2222 2222 { 2223 2223 IMediumAttachment *pMediumAtt = atts[j]; 2224 rc = i_configMediumAttachment(pCtlInst, 2225 pszCtrlDev, 2224 rc = i_configMediumAttachment(pszCtrlDev, 2226 2225 ulInstance, 2227 2226 enmBus, … … 3546 3545 } 3547 3546 3548 int Console::i_configMediumAttachment(PCFGMNODE pCtlInst, 3549 const char *pcszDevice, 3547 int Console::i_configMediumAttachment(const char *pcszDevice, 3550 3548 unsigned uInstance, 3551 3549 StorageBus_T enmBus, … … 3571 3569 HRESULT hrc; 3572 3570 Bstr bstr; 3571 PCFGMNODE pCtlInst = NULL; 3573 3572 3574 3573 // #define RC_CHECK() AssertMsgReturn(RT_SUCCESS(rc), ("rc=%Rrc\n", rc), rc) … … 3589 3588 PCFGMNODE pLunL0 = NULL; 3590 3589 hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); H(); 3590 3591 /* Determine the base path for the device instance. */ 3592 if (enmBus != StorageBus_USB) 3593 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance); 3594 else 3595 { 3596 /* If we hotplug a USB device create a new CFGM tree. */ 3597 if (!fHotplug) 3598 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice, uInstance); 3599 else 3600 pCtlInst = CFGMR3CreateTree(pUVM); 3601 } 3602 AssertReturn(pCtlInst, VERR_INTERNAL_ERROR); 3591 3603 3592 3604 if (enmBus == StorageBus_USB) … … 4007 4019 if (paLedDevType) 4008 4020 paLedDevType[uLUN] = lType; 4021 4022 /* Dump the changed LUN if possible, dump the complete device otherwise */ 4023 if ( aMachineState != MachineState_Starting 4024 && aMachineState != MachineState_Restoring) 4025 CFGMR3Dump(pLunL0 ? pLunL0 : pCtlInst); 4009 4026 } 4010 4027 catch (ConfigError &x)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器