Changeset 67184 in vbox for trunk/src/VBox/Main/src-server/MediumImpl.cpp
- Timestamp:
- May 31, 2017 8:32:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r67172 r67184 660 660 MediumVariant_T aVariant, 661 661 SecretKeyStore *pSecretKeyStore, 662 #ifdef VBOX_WITH_NEW_TAR_CREATOR 663 RTVFSIOSTREAM aVfsIosDst, 664 #else 662 665 VDINTERFACEIO *aVDImageIOIf, 663 666 void *aVDImageIOUser, 667 #endif 664 668 MediumLockList *aSourceMediumLockList, 665 669 bool fKeepSourceMediumLockList = false) … … 675 679 676 680 mVDImageIfaces = aMedium->m->vdImageIfaces; 681 682 #ifdef VBOX_WITH_NEW_TAR_CREATOR 683 int vrc = VDIfCreateFromVfsStream(aVfsIosDst, RTFILE_O_WRITE, &mpVfsIoIf); 684 AssertRCReturnVoidStmt(vrc, mRC = E_FAIL); 685 686 vrc = VDInterfaceAdd(&mpVfsIoIf->Core, "Medium::ExportTaskVfsIos", 687 VDINTERFACETYPE_IO, mpVfsIoIf, 688 sizeof(VDINTERFACEIO), &mVDImageIfaces); 689 AssertRCReturnVoidStmt(vrc, mRC = E_FAIL); 690 #else 691 677 692 if (aVDImageIOIf) 678 693 { … … 682 697 AssertRCReturnVoidStmt(vrc, mRC = E_FAIL); 683 698 } 699 #endif 684 700 m_strTaskName = "createExport"; 685 701 } … … 689 705 if (!mfKeepSourceMediumLockList && mpSourceMediumLockList) 690 706 delete mpSourceMediumLockList; 707 #ifdef VBOX_WITH_NEW_TAR_CREATOR 708 if (mpVfsIoIf) 709 { 710 VDIfDestroyFromVfsStream(mpVfsIoIf); 711 mpVfsIoIf = NULL; 712 } 713 #endif 691 714 } 692 715 … … 696 719 MediumVariant_T mVariant; 697 720 PVDINTERFACE mVDImageIfaces; 721 PVDINTERFACEIO mpVfsIoIf; /**< Pointer to the VFS I/O stream to VD I/O interface wrapper. */ 698 722 SecretKeyStore *m_pSecretKeyStore; 699 723 … … 6096 6120 MediumVariant_T aVariant, 6097 6121 SecretKeyStore *pKeyStore, 6122 #ifdef VBOX_WITH_NEW_TAR_CREATOR 6123 RTVFSIOSTREAM hVfsIosDst, 6124 #else 6098 6125 PVDINTERFACEIO aVDImageIOIf, void *aVDImageIOUser, 6126 #endif 6099 6127 const ComObjPtr<Progress> &aProgress) 6100 6128 { … … 6136 6164 6137 6165 /* setup task object to carry out the operation asynchronously */ 6138 pTask = new Medium::ExportTask(this, aProgress, aFilename, aFormat, 6139 aVariant, pKeyStore, aVDImageIOIf, 6140 aVDImageIOUser, pSourceMediumLockList); 6166 pTask = new Medium::ExportTask(this, aProgress, aFilename, aFormat, aVariant, 6167 #ifdef VBOX_WITH_NEW_TAR_CREATOR 6168 pKeyStore, hVfsIosDst, pSourceMediumLockList); 6169 #else 6170 pKeyStore, aVDImageIOIf, aVDImageIOUser, pSourceMediumLockList); 6171 #endif 6141 6172 rc = pTask->rc(); 6142 6173 AssertComRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.