VirtualBox

Changeset 52710 in vbox for trunk/src/VBox/Storage/testcase


Ignore:
Timestamp:
Sep 11, 2014 8:25:53 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96049
Message:

tstVDIo: Implement dumptofile action to dump memory backed files to disk

Location:
trunk/src/VBox/Storage/testcase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/VDIoBackend.cpp

    r46247 r52710  
    282282}
    283283
     284DECLHIDDEN(int) VDIoBackendDumpToFile(PVDIOSTORAGE pIoStorage, const char *pszPath)
     285{
     286    int rc = VINF_SUCCESS;
     287
     288    if (pIoStorage->fMemory)
     289        rc = VDMemDiskWriteToFile(pIoStorage->u.pMemDisk, pszPath);
     290    else
     291        rc = VERR_NOT_IMPLEMENTED;
     292
     293    return rc;
     294}
     295
  • trunk/src/VBox/Storage/testcase/VDIoBackend.h

    r46247 r52710  
    7272int VDIoBackendStorageGetSize(PVDIOSTORAGE pIoStorage, uint64_t *pcbSize);
    7373
     74DECLHIDDEN(int) VDIoBackendDumpToFile(PVDIOSTORAGE pIoStorage, const char *pszPath);
     75
    7476/**
    7577 * Enqueues a new I/O request.
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r52640 r52710  
    17581758    {
    17591759        RTPrintf("Dumping memory file %s to %s, this might take some time\n", pcszFile, pcszPathToDump);
    1760         //rc = VDMemDiskWriteToFile(pIt->pIo, pcszPathToDump);
     1760        rc = VDIoBackendDumpToFile(pIt->pIoStorage, pcszPathToDump);
    17611761        rc = VERR_NOT_IMPLEMENTED;
    17621762    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette