- 時間撮記:
- 2015-2-2 下午09:17:31 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r53767 r54060 3675 3675 AssertReturn(enmVMState == VMSTATE_SUSPENDED, VERR_INVALID_STATE); 3676 3676 3677 /* Determine the base path for the device instance. */ 3678 PCFGMNODE pCtlInst; 3679 if (strcmp(pcszDevice, "Msd")) 3680 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance); 3681 else 3682 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice, uInstance); 3683 AssertReturn(pCtlInst, VERR_INTERNAL_ERROR); 3684 3685 PCFGMNODE pLunL0 = NULL; 3686 int rc = pThis->i_configMediumAttachment(pCtlInst, 3687 pcszDevice, 3677 int rc = pThis->i_configMediumAttachment(pcszDevice, 3688 3678 uInstance, 3689 3679 enmBus, … … 3701 3691 pUVM, 3702 3692 NULL /* paLedDevType */, 3703 &pLunL0); 3704 /* Dump the changed LUN if possible, dump the complete device otherwise */ 3705 CFGMR3Dump(pLunL0 ? pLunL0 : pCtlInst); 3706 3693 NULL /* ppLunL0 */); 3707 3694 LogFlowFunc(("Returning %Rrc\n", rc)); 3708 3695 return rc; … … 3863 3850 AssertReturn(enmVMState == VMSTATE_SUSPENDED, VERR_INVALID_STATE); 3864 3851 3865 /* 3866 * Determine the base path for the device instance. USB Msd devices are handled different 3867 * because the PDM USB API requires a differnet CFGM tree when attaching a new USB device. 3868 */ 3869 PCFGMNODE pCtlInst; 3870 3871 if (enmBus == StorageBus_USB) 3872 pCtlInst = CFGMR3CreateTree(pUVM); 3873 else 3874 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance); 3875 3876 AssertReturn(pCtlInst, VERR_INTERNAL_ERROR); 3877 3878 PCFGMNODE pLunL0 = NULL; 3879 int rc = pThis->i_configMediumAttachment(pCtlInst, 3880 pcszDevice, 3852 int rc = pThis->i_configMediumAttachment(pcszDevice, 3881 3853 uInstance, 3882 3854 enmBus, … … 3894 3866 pUVM, 3895 3867 NULL /* paLedDevType */, 3896 &pLunL0); 3897 /* Dump the changed LUN if possible, dump the complete device otherwise */ 3898 if (enmBus != StorageBus_USB) 3899 CFGMR3Dump(pLunL0 ? pLunL0 : pCtlInst); 3900 3868 NULL); 3901 3869 LogFlowFunc(("Returning %Rrc\n", rc)); 3902 3870 return rc; … … 9702 9670 return VINF_SUCCESS; 9703 9671 9704 /* Determine the base path for the device instance. */9705 PCFGMNODE pCtlInst;9706 9707 if (enmBus == StorageBus_USB)9708 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice);9709 else9710 pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance);9711 9712 AssertReturn(pCtlInst, VERR_INTERNAL_ERROR);9713 9714 9672 /* Update the device instance configuration. */ 9715 PCFGMNODE pLunL0 = NULL; 9716 int rc = pThis->i_configMediumAttachment(pCtlInst, 9717 pcszDevice, 9673 int rc = pThis->i_configMediumAttachment(pcszDevice, 9718 9674 uInstance, 9719 9675 enmBus, … … 9731 9687 pUVM, 9732 9688 NULL /* paLedDevType */, 9733 &pLunL0); 9734 /* Dump the changed LUN if possible, dump the complete device otherwise */ 9735 CFGMR3Dump(pLunL0 ? pLunL0 : pCtlInst); 9689 NULL /* ppLunL0)*/); 9736 9690 if (RT_FAILURE(rc)) 9737 9691 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器