VirtualBox

Changeset 29129 in vbox


Ignore:
Timestamp:
May 6, 2010 10:40:30 AM (15 years ago)
Author:
vboxsync
Message:

Runtime/Aio: Fix flush API. The fFlush flag needs to be resetted

Location:
trunk/src/VBox/Runtime/r3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp

    r28800 r29129  
    204204    pReqInt->AioCB.aio_nbytes     = cbTransfer;
    205205    pReqInt->AioCB.aio_buf        = pvBuf;
     206    pReqInt->fFlush               = false;
    206207    pReqInt->pvUser               = pvUser;
    207208    pReqInt->pCtxInt              = NULL;
     
    236237    pReqInt->fFlush           = true;
    237238    pReqInt->AioCB.aio_fildes = (int)hFile;
     239    pReqInt->AioCB.aio_offset = off;
     240    pReqInt->AioCB.aio_nbytes = cbTransfer;
     241    pReqInt->AioCB.aio_buf    = pvBuf;
    238242    pReqInt->pvUser           = pvUser;
    239243    RTFILEAIOREQ_SET_STATE(pReqInt, PREPARED);
  • trunk/src/VBox/Runtime/r3/posix/fileaio-posix.cpp

    r28800 r29129  
    396396
    397397    memset(&pReqInt->AioCB, 0, sizeof(struct aiocb));
     398    pReqInt->fFlush               = false;
    398399    pReqInt->AioCB.aio_lio_opcode = uTransferDirection;
    399400    pReqInt->AioCB.aio_fildes     = (int)hFile;
     
    436437    pReqInt->fFlush           = true;
    437438    pReqInt->AioCB.aio_fildes = (int)hFile;
     439    pReqInt->AioCB.aio_offset = 0;
     440    pReqInt->AioCB.aio_nbytes = 0;
     441    pReqInt->AioCB.aio_buf    = NULL;
    438442    pReqInt->pvUser           = pvUser;
     443    pReqInt->Rc               = VERR_FILE_AIO_IN_PROGRESS;
    439444    RTFILEAIOREQ_SET_STATE(pReqInt, PREPARED);
    440445
  • trunk/src/VBox/Runtime/r3/solaris/fileaio-solaris.cpp

    r28800 r29129  
    203203    pReqInt->fFlush           = true;
    204204    pReqInt->AioCB.aio_fildes = (int)hFile;
     205    pReqInt->AioCB.aio_offset = 0;
     206    pReqInt->AioCB.aio_nbytes = 0;
     207    pReqInt->AioCB.aio_buf    = NULL;
    205208    pReqInt->pvUser           = pvUser;
    206209    RTFILEAIOREQ_SET_STATE(pReqInt, PREPARED);
Note: See TracChangeset for help on using the changeset viewer.

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