Changeset 42040 in vbox for trunk/src/VBox
- Timestamp:
- Jul 6, 2012 1:54:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r42039 r42040 5442 5442 AssertRC(rc); 5443 5443 5444 pImage->uOpenFlags = uOpenFlags & (VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH );5444 pImage->uOpenFlags = uOpenFlags & (VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS); 5445 5445 pImage->VDIo.fIgnoreFlush = (uOpenFlags & VD_OPEN_FLAGS_IGNORE_FLUSH) != 0; 5446 5446 rc = pImage->Backend->pfnOpen(pImage->pszFilename, 5447 uOpenFlags & ~(VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_IGNORE_FLUSH ),5447 uOpenFlags & ~(VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS), 5448 5448 pDisk->pVDIfsDisk, 5449 5449 pImage->pVDIfsImage, … … 5460 5460 || rc == VERR_FILE_LOCK_FAILED)) 5461 5461 rc = pImage->Backend->pfnOpen(pImage->pszFilename, 5462 (uOpenFlags & ~ VD_OPEN_FLAGS_HONOR_SAME)5462 (uOpenFlags & ~(VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS)) 5463 5463 | VD_OPEN_FLAGS_READONLY, 5464 5464 pDisk->pVDIfsDisk, … … 8717 8717 8718 8718 rc = pImage->Backend->pfnSetOpenFlags(pImage->pBackendData, 8719 uOpenFlags); 8719 uOpenFlags & ~(VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS)); 8720 if (RT_SUCCESS(rc)) 8721 pImage->uOpenFlags = uOpenFlags & (VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS); 8720 8722 } while (0); 8721 8723
Note:
See TracChangeset
for help on using the changeset viewer.