- Timestamp:
- Sep 17, 2018 1:19:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r73097 r74308 3263 3263 if (RT_SUCCESS(rc)) 3264 3264 rc = VINF_VD_ASYNC_IO_FINISHED; 3265 3266 #ifdef VBOX_PERIODIC_FLUSH 3267 if (pThis->cbFlushInterval) 3268 { 3269 pThis->cbDataWritten += (uint32_t)cbReqIo; 3270 if (pThis->cbDataWritten > pThis->cbFlushInterval) 3271 { 3272 pThis->cbDataWritten = 0; 3273 VDFlush(pThis->pDisk); 3274 } 3275 } 3276 #endif /* VBOX_PERIODIC_FLUSH */ 3265 3277 } 3266 3278 … … 3300 3312 else 3301 3313 { 3302 rc = VDFlush(pThis->pDisk); 3303 if ( RT_SUCCESS(rc))3314 #ifdef VBOX_IGNORE_FLUSH 3315 if (pThis->fIgnoreFlush) 3304 3316 rc = VINF_VD_ASYNC_IO_FINISHED; 3317 else 3318 #endif /* VBOX_IGNORE_FLUSH */ 3319 { 3320 rc = VDFlush(pThis->pDisk); 3321 if (RT_SUCCESS(rc)) 3322 rc = VINF_VD_ASYNC_IO_FINISHED; 3323 } 3305 3324 } 3306 3325
Note:
See TracChangeset
for help on using the changeset viewer.