Changeset 29341 in vbox
- Timestamp:
- May 11, 2010 11:15:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvBlock.cpp
r29034 r29341 85 85 /** HACK: Disable flushes for this drive. */ 86 86 bool fIgnoreFlush; 87 /** Disable async flushes for this drive. */ 88 bool fIgnoreFlushAsync; 87 89 #endif /* VBOX_IGNORE_FLUSH */ 88 90 /** Pointer to the media driver below us. … … 338 340 339 341 #ifdef VBOX_IGNORE_FLUSH 340 if (pThis->fIgnoreFlush )342 if (pThis->fIgnoreFlushAsync) 341 343 return VINF_VD_ASYNC_IO_FINISHED; 342 344 #endif /* VBOX_IGNORE_FLUSH */ … … 752 754 */ 753 755 #if defined(VBOX_PERIODIC_FLUSH) || defined(VBOX_IGNORE_FLUSH) 754 if (!CFGMR3AreValuesValid(pCfg, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0FlushInterval\0IgnoreFlush\0 "))756 if (!CFGMR3AreValuesValid(pCfg, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0FlushInterval\0IgnoreFlush\0IgnoreFlushAsync\0")) 755 757 #else /* !(VBOX_PERIODIC_FLUSH || VBOX_IGNORE_FLUSH) */ 756 758 if (!CFGMR3AreValuesValid(pCfg, "Type\0Locked\0BIOSVisible\0AttachFailError\0Cylinders\0Heads\0Sectors\0Mountable\0")) … … 912 914 else 913 915 LogRel(("DrvBlock: Flushes will be passed to the disk\n")); 916 917 rc = CFGMR3QueryBoolDef(pCfg, "IgnoreFlushAsync", &pThis->fIgnoreFlushAsync, false); 918 if (RT_FAILURE(rc)) 919 return PDMDRV_SET_ERROR(pDrvIns, rc, N_("Failed to query \"IgnoreFlushAsync\" from the config")); 920 921 if (pThis->fIgnoreFlushAsync) 922 LogRel(("DrvBlock: Async flushes will be ignored\n")); 923 else 924 LogRel(("DrvBlock: Async flushes will be passed to the disk\n")); 914 925 #endif /* VBOX_IGNORE_FLUSH */ 915 926
Note:
See TracChangeset
for help on using the changeset viewer.