Changeset 43861 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 13, 2012 10:35:55 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82046
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r42073 r43861 2142 2142 bool fDiscard = false; 2143 2143 bool fInformAboutZeroBlocks = false; 2144 bool fSkipConsistencyChecks = false; 2144 2145 unsigned iLevel = 0; 2145 2146 PCFGMNODE pCurNode = pCfg; … … 2159 2160 "HostIPStack\0UseNewIo\0BootAcceleration\0BootAccelerationBuffer\0" 2160 2161 "SetupMerge\0MergeSource\0MergeTarget\0BwGroup\0Type\0BlockCache\0" 2161 "CachePath\0CacheFormat\0Discard\0InformAboutZeroBlocks\0"); 2162 "CachePath\0CacheFormat\0Discard\0InformAboutZeroBlocks\0" 2163 "SkipConsistencyChecks\0"); 2162 2164 } 2163 2165 else … … 2299 2301 rc = PDMDRV_SET_ERROR(pDrvIns, rc, 2300 2302 N_("DrvVD: Configuration error: Querying \"InformAboutZeroBlocks\" as boolean failed")); 2303 break; 2304 } 2305 rc = CFGMR3QueryBoolDef(pCurNode, "SkipConsistencyChecks", &fSkipConsistencyChecks, true); 2306 if (RT_FAILURE(rc)) 2307 { 2308 rc = PDMDRV_SET_ERROR(pDrvIns, rc, 2309 N_("DrvVD: Configuration error: Querying \"SKipConsistencyChecks\" as boolean failed")); 2301 2310 break; 2302 2311 } … … 2405 2414 if (pThis->pDrvMediaAsyncPort && fUseNewIo) 2406 2415 pThis->fAsyncIOSupported = true; 2416 2417 uint64_t tsStart = RTTimeNanoTS(); 2407 2418 2408 2419 unsigned iImageIdx = 0; … … 2603 2614 if (fInformAboutZeroBlocks) 2604 2615 uOpenFlags |= VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS; 2616 if ( (uOpenFlags & VD_OPEN_FLAGS_READONLY) 2617 && fSkipConsistencyChecks) 2618 uOpenFlags |= VD_OPEN_FLAGS_SKIP_CONSISTENCY_CHECKS; 2605 2619 2606 2620 /* Try to open backend in async I/O mode first. */ … … 2662 2676 pCurNode = CFGMR3GetParent(pCurNode); 2663 2677 } 2678 2679 LogRel(("VD: Opening the disk took %lld ns\n", RTTimeNanoTS() - tsStart)); 2664 2680 2665 2681 /* Open the cache image if set. */
Note:
See TracChangeset
for help on using the changeset viewer.