Changeset 33218 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 18, 2010 7:54:10 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66762
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r32818 r33218 186 186 /** The disk buffer. */ 187 187 uint8_t *pbData; 188 /** Bandwidth group the disk is assigned to. */ 189 char *pszBwGroup; 188 190 } VBOXDISK, *PVBOXDISK; 189 191 … … 364 366 pszLocation, fFlags, 365 367 pStorageBackend->pTemplate); 368 366 369 if (RT_SUCCESS(rc)) 367 370 { 368 *ppStorage = pStorageBackend; 369 return VINF_SUCCESS; 371 if (pThis->pszBwGroup) 372 rc = PDMR3AsyncCompletionEpSetBwMgr(pStorageBackend->pEndpoint, pThis->pszBwGroup); 373 374 if (RT_SUCCESS(rc)) 375 { 376 *ppStorage = pStorageBackend; 377 return VINF_SUCCESS; 378 } 379 380 PDMR3AsyncCompletionEpClose(pStorageBackend->pEndpoint); 370 381 } 371 382 … … 1901 1912 if (pThis->pbData) 1902 1913 RTMemFree(pThis->pbData); 1914 if (pThis->pszBwGroup) 1915 { 1916 MMR3HeapFree(pThis->pszBwGroup); 1917 pThis->pszBwGroup = NULL; 1918 } 1903 1919 } 1904 1920 … … 2001 2017 "ReadOnly\0MaybeReadOnly\0TempReadOnly\0Shareable\0HonorZeroWrites\0" 2002 2018 "HostIPStack\0UseNewIo\0BootAcceleration\0BootAccelerationBuffer\0" 2003 "SetupMerge\0MergeSource\0MergeTarget\0 ");2019 "SetupMerge\0MergeSource\0MergeTarget\0BwGroup\0"); 2004 2020 } 2005 2021 else … … 2107 2123 break; 2108 2124 } 2125 rc = CFGMR3QueryStringAlloc(pCurNode, "BwGroup", &pThis->pszBwGroup); 2126 if (RT_FAILURE(rc) && rc != VERR_CFGM_VALUE_NOT_FOUND) 2127 { 2128 rc = PDMDRV_SET_ERROR(pDrvIns, rc, 2129 N_("DrvVD: Configuration error: Querying \"BwGroup\" as string failed")); 2130 break; 2131 } 2132 else 2133 rc = VINF_SUCCESS; 2109 2134 } 2110 2135
Note:
See TracChangeset
for help on using the changeset viewer.