Changeset 58484 in vbox
- Timestamp:
- Oct 29, 2015 1:48:32 PM (9 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MediumImpl.h
r55872 r58484 169 169 bool aWait); 170 170 Utf8Str i_getPreferredDiffFormat(); 171 MediumVariant_T i_getPreferredDiffVariant(); 171 172 172 173 HRESULT i_close(AutoCaller &autoCaller); -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r58437 r58484 4192 4192 4193 4193 rc = medium->i_createDiffStorage(diff, 4194 MediumVariant_Standard,4194 medium->i_getPreferredDiffVariant(), 4195 4195 pMediumLockList, 4196 4196 NULL /* aProgress */, … … 10823 10823 /* release the locks before the potentially lengthy operation */ 10824 10824 alock.release(); 10825 rc = pMedium->i_createDiffStorage(diff, MediumVariant_Standard, 10825 rc = pMedium->i_createDiffStorage(diff, 10826 pMedium->i_getPreferredDiffVariant(), 10826 10827 pMediumLockList, 10827 10828 NULL /* aProgress */, -
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r57425 r58484 725 725 726 726 /* this already registers the new diff image */ 727 rc = pParent->i_createDiffStorage(diff, MediumVariant_Standard, 727 rc = pParent->i_createDiffStorage(diff, 728 pParent->i_getPreferredDiffVariant(), 728 729 pMediumLockList, 729 730 NULL /* aProgress */, -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r57413 r58484 4510 4510 /* m->strFormat is const, no need to lock */ 4511 4511 return m->strFormat; 4512 } 4513 4514 /** 4515 * Returns a preferred variant for differencing media. 4516 */ 4517 MediumVariant_T Medium::i_getPreferredDiffVariant() 4518 { 4519 AutoCaller autoCaller(this); 4520 AssertComRCReturn(autoCaller.rc(), MediumVariant_Standard); 4521 4522 /* check that our own format supports diffs */ 4523 if (!(m->formatObj->i_getCapabilities() & MediumFormatCapabilities_Differencing)) 4524 return MediumVariant_Standard; 4525 4526 /* m->variant is const, no need to lock */ 4527 return m->variant; 4512 4528 } 4513 4529
Note:
See TracChangeset
for help on using the changeset viewer.