VirtualBox

Changeset 19346 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
May 5, 2009 12:39:14 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46835
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/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.

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