Changeset 27232 in vbox for trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
- Timestamp:
- Mar 9, 2010 9:05:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r26986 r27232 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 587 587 : 0, 588 588 NULL, 589 pImage->pVDIfsDisk, 589 590 &pVmdkFile->pStorage); 590 591 pVmdkFile->fAsyncIO = true; … … 3487 3488 static int vmdkCreateRegularImage(PVMDKIMAGE pImage, uint64_t cbSize, 3488 3489 unsigned uImageFlags, 3489 PFNV MPROGRESS pfnProgress, void *pvUser,3490 PFNVDPROGRESS pfnProgress, void *pvUser, 3490 3491 unsigned uPercentStart, unsigned uPercentSpan) 3491 3492 { … … 3626 3627 if (pfnProgress) 3627 3628 { 3628 rc = pfnProgress(NULL /* WARNING! pVM=NULL */, 3629 uPercentStart + uOff * uPercentSpan / cbExtent, 3630 pvUser); 3629 rc = pfnProgress(pvUser, 3630 uPercentStart + uOff * uPercentSpan / cbExtent); 3631 3631 if (RT_FAILURE(rc)) 3632 3632 { … … 3695 3695 3696 3696 if (RT_SUCCESS(rc) && pfnProgress) 3697 pfnProgress(NULL /* WARNING! pVM=NULL */, 3698 uPercentStart + i * uPercentSpan / cExtents, 3699 pvUser); 3697 pfnProgress(pvUser, uPercentStart + i * uPercentSpan / cExtents); 3700 3698 3701 3699 cbRemaining -= cbExtent; … … 3746 3744 PCPDMMEDIAGEOMETRY pPCHSGeometry, 3747 3745 PCPDMMEDIAGEOMETRY pLCHSGeometry, PCRTUUID pUuid, 3748 PFNV MPROGRESS pfnProgress, void *pvUser,3746 PFNVDPROGRESS pfnProgress, void *pvUser, 3749 3747 unsigned uPercentStart, unsigned uPercentSpan) 3750 3748 { … … 3793 3791 3794 3792 if (RT_SUCCESS(rc) && pfnProgress) 3795 pfnProgress(NULL /* WARNING! pVM=NULL */, 3796 uPercentStart + uPercentSpan * 98 / 100, pvUser); 3793 pfnProgress(pvUser, uPercentStart + uPercentSpan * 98 / 100); 3797 3794 3798 3795 pImage->cbSize = cbSize; … … 3880 3877 3881 3878 if (RT_SUCCESS(rc) && pfnProgress) 3882 pfnProgress(NULL /* WARNING! pVM=NULL */, 3883 uPercentStart + uPercentSpan * 99 / 100, pvUser); 3879 pfnProgress(pvUser, uPercentStart + uPercentSpan * 99 / 100); 3884 3880 3885 3881 rc = vmdkFlushImage(pImage); … … 3887 3883 out: 3888 3884 if (RT_SUCCESS(rc) && pfnProgress) 3889 pfnProgress(NULL /* WARNING! pVM=NULL */, 3890 uPercentStart + uPercentSpan, pvUser); 3885 pfnProgress(pvUser, uPercentStart + uPercentSpan); 3891 3886 3892 3887 if (RT_FAILURE(rc)) … … 4515 4510 PVMDKIMAGE pImage; 4516 4511 4517 PFNV MPROGRESS pfnProgress = NULL;4512 PFNVDPROGRESS pfnProgress = NULL; 4518 4513 void *pvUser = NULL; 4519 4514 PVDINTERFACE pIfProgress = VDInterfaceGet(pVDIfsOperation,
Note:
See TracChangeset
for help on using the changeset viewer.