VirtualBox

Changeset 19346 in vbox


Ignore:
Timestamp:
May 5, 2009 12:39:14 AM (16 years ago)
Author:
vboxsync
Message:

Runtime/Aio: Updates

  • Add POSIX backend needed for the Darwin host (not very well tested yet)
  • Typos in the solaris and linux backend
Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r19206 r19346  
    589589 RuntimeR3_SOURCES.freebsd += \
    590590        r3/freebsd/fileaio-freebsd.cpp
     591 RuntimeR3_SOURCES.darwin += \
     592        r3/posix/fileaio-posix.cpp
    591593endif
    592594
  • trunk/src/VBox/Runtime/r3/linux/fileaio-linux.cpp

    r19185 r19346  
    502502}
    503503
    504 RTDECL(int) RTFileAioCtxAssociateWithFile(RTFILEAIOCTS hAioCtx, RTFILE hFile)
     504RTDECL(int) RTFileAioCtxAssociateWithFile(RTFILEAIOCTX hAioCtx, RTFILE hFile)
    505505{
    506506    /* Nothing to do. */
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r16647 r19346  
    143143        fOpenMode |= O_SYNC;
    144144#endif
     145#if defined(O_DIRECT) && defined(RT_OS_LINUX)
     146    /* O_DIRECT is mandatory to get async I/O working on Linux. */
     147    if (fOpen & RTFILE_O_ASYNC_IO)
     148        fOpenMode |= O_DIRECT;
     149#endif
    145150
    146151    /* create/truncate file */
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