- Timestamp:
- Jan 18, 2012 5:40:09 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75773
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r38818 r39799 97 97 hostDrive(false), 98 98 implicit(false), 99 uOpenFlagsDef(VD_OPEN_FLAGS_IGNORE_FLUSH), 99 100 numCreateDiffTasks(0), 100 101 vdDiskIfaces(NULL), … … 153 154 154 155 bool implicit : 1; 156 157 /** Default flags passed to VDOpen(). */ 158 unsigned uOpenFlagsDef; 155 159 156 160 uint32_t numCreateDiffTasks; … … 4912 4916 pMedium->m->strFormat.c_str(), 4913 4917 pMedium->m->strLocationFull.c_str(), 4914 VD_OPEN_FLAGS_READONLY ,4918 VD_OPEN_FLAGS_READONLY | m->uOpenFlagsDef, 4915 4919 pMedium->m->vdImageIfaces); 4916 4920 if (RT_FAILURE(vrc)) … … 4926 4930 (*it)->m->strFormat.c_str(), 4927 4931 (*it)->m->strLocationFull.c_str(), 4928 VD_OPEN_FLAGS_INFO ,4932 VD_OPEN_FLAGS_INFO | m->uOpenFlagsDef, 4929 4933 (*it)->m->vdImageIfaces); 4930 4934 if (RT_FAILURE(vrc)) … … 5400 5404 format.c_str(), 5401 5405 location.c_str(), 5402 uOpenFlags ,5406 uOpenFlags | m->uOpenFlagsDef, 5403 5407 m->vdImageIfaces); 5404 5408 if (RT_FAILURE(vrc)) … … 5651 5655 format.c_str(), 5652 5656 location.c_str(), 5653 uOpenFlags & ~VD_OPEN_FLAGS_READONLY,5657 (uOpenFlags & ~VD_OPEN_FLAGS_READONLY) | m->uOpenFlagsDef, 5654 5658 m->vdImageIfaces); 5655 5659 if (RT_FAILURE(vrc)) … … 6464 6468 &geo, 6465 6469 id.raw(), 6466 VD_OPEN_FLAGS_NORMAL ,6470 VD_OPEN_FLAGS_NORMAL | m->uOpenFlagsDef, 6467 6471 m->vdImageIfaces, 6468 6472 task.mVDOperationIfaces); … … 6603 6607 pMedium->m->strFormat.c_str(), 6604 6608 pMedium->m->strLocationFull.c_str(), 6605 VD_OPEN_FLAGS_READONLY ,6609 VD_OPEN_FLAGS_READONLY | m->uOpenFlagsDef, 6606 6610 pMedium->m->vdImageIfaces); 6607 6611 if (RT_FAILURE(vrc)) … … 6627 6631 targetId.raw(), 6628 6632 id.raw(), 6629 VD_OPEN_FLAGS_NORMAL ,6633 VD_OPEN_FLAGS_NORMAL | m->uOpenFlagsDef, 6630 6634 pTarget->m->vdImageIfaces, 6631 6635 task.mVDOperationIfaces); … … 6807 6811 pMedium->m->strFormat.c_str(), 6808 6812 pMedium->m->strLocationFull.c_str(), 6809 uOpenFlags ,6813 uOpenFlags | m->uOpenFlagsDef, 6810 6814 pMedium->m->vdImageIfaces); 6811 6815 if (RT_FAILURE(vrc)) … … 6839 6843 (*it)->m->strFormat.c_str(), 6840 6844 (*it)->m->strLocationFull.c_str(), 6841 VD_OPEN_FLAGS_INFO ,6845 VD_OPEN_FLAGS_INFO | m->uOpenFlagsDef, 6842 6846 (*it)->m->vdImageIfaces); 6843 6847 if (RT_FAILURE(vrc)) … … 7093 7097 pMedium->m->strFormat.c_str(), 7094 7098 pMedium->m->strLocationFull.c_str(), 7095 VD_OPEN_FLAGS_READONLY ,7099 VD_OPEN_FLAGS_READONLY | m->uOpenFlagsDef, 7096 7100 pMedium->m->vdImageIfaces); 7097 7101 if (RT_FAILURE(vrc)) … … 7162 7166 pMedium->m->strFormat.c_str(), 7163 7167 pMedium->m->strLocationFull.c_str(), 7164 uOpenFlags ,7168 uOpenFlags | m->uOpenFlagsDef, 7165 7169 pMedium->m->vdImageIfaces); 7166 7170 if (RT_FAILURE(vrc)) … … 7183 7187 task.mVariant & ~MediumVariant_NoCreateDir, 7184 7188 targetId.raw(), 7185 VD_OPEN_FLAGS_NORMAL ,7189 VD_OPEN_FLAGS_NORMAL | m->uOpenFlagsDef, 7186 7190 NULL /* pVDIfsOperation */, 7187 7191 pTarget->m->vdImageIfaces, … … 7201 7205 task.mVariant & ~MediumVariant_NoCreateDir, 7202 7206 targetId.raw(), 7203 VD_OPEN_FLAGS_NORMAL ,7207 VD_OPEN_FLAGS_NORMAL | m->uOpenFlagsDef, 7204 7208 NULL /* pVDIfsOperation */, 7205 7209 pTarget->m->vdImageIfaces, … … 7349 7353 format.c_str(), 7350 7354 location.c_str(), 7351 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO ,7355 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | m->uOpenFlagsDef, 7352 7356 m->vdImageIfaces); 7353 7357 if (RT_SUCCESS(vrc)) … … 7447 7451 pMedium->m->strFormat.c_str(), 7448 7452 pMedium->m->strLocationFull.c_str(), 7449 VD_OPEN_FLAGS_READONLY ,7453 VD_OPEN_FLAGS_READONLY | m->uOpenFlagsDef, 7450 7454 pMedium->m->vdImageIfaces); 7451 7455 if (RT_FAILURE(vrc)) … … 7471 7475 parentFormat.c_str(), 7472 7476 parentLocation.c_str(), 7473 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO ,7477 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | m->uOpenFlagsDef, 7474 7478 m->vdImageIfaces); 7475 7479 if (RT_FAILURE(vrc)) … … 7577 7581 pMedium->m->strFormat.c_str(), 7578 7582 pMedium->m->strLocationFull.c_str(), 7579 (it == mediumListLast) ? VD_OPEN_FLAGS_NORMAL : VD_OPEN_FLAGS_READONLY,7583 m->uOpenFlagsDef | (it == mediumListLast) ? VD_OPEN_FLAGS_NORMAL : VD_OPEN_FLAGS_READONLY, 7580 7584 pMedium->m->vdImageIfaces); 7581 7585 if (RT_FAILURE(vrc)) … … 7674 7678 pMedium->m->strFormat.c_str(), 7675 7679 pMedium->m->strLocationFull.c_str(), 7676 (it == mediumListLast) ? VD_OPEN_FLAGS_NORMAL : VD_OPEN_FLAGS_READONLY,7680 m->uOpenFlagsDef | (it == mediumListLast) ? VD_OPEN_FLAGS_NORMAL : VD_OPEN_FLAGS_READONLY, 7677 7681 pMedium->m->vdImageIfaces); 7678 7682 if (RT_FAILURE(vrc)) … … 7768 7772 pMedium->m->strFormat.c_str(), 7769 7773 pMedium->m->strLocationFull.c_str(), 7770 VD_OPEN_FLAGS_READONLY ,7774 VD_OPEN_FLAGS_READONLY | m->uOpenFlagsDef, 7771 7775 pMedium->m->vdImageIfaces); 7772 7776 if (RT_FAILURE(vrc)) … … 7891 7895 task.mFormat->getId().c_str(), 7892 7896 task.mFilename.c_str(), 7893 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_SEQUENTIAL ,7897 VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_SEQUENTIAL | m->uOpenFlagsDef, 7894 7898 task.mVDImageIfaces); 7895 7899 if (RT_FAILURE(vrc)) … … 7958 7962 pMedium->m->strFormat.c_str(), 7959 7963 pMedium->m->strLocationFull.c_str(), 7960 uOpenFlags ,7964 uOpenFlags | m->uOpenFlagsDef, 7961 7965 pMedium->m->vdImageIfaces); 7962 7966 if (RT_FAILURE(vrc))
Note:
See TracChangeset
for help on using the changeset viewer.