VirtualBox

Changeset 57282 in vbox


Ignore:
Timestamp:
Aug 12, 2015 10:23:11 AM (9 years ago)
Author:
vboxsync
Message:

O_DIRECT seems to be not supported on tmpfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTFileAio.cpp

    r56290 r57282  
    185185        RTTestSub(g_hTest, "Write");
    186186        RTFILE hFile;
     187        RTFSTYPE enmType;
     188        bool fAsyncMayFail = false;
     189        rc = RTFsQueryType("tstFileAio#1.tst", &enmType);
     190        if (   RT_SUCCESS(rc)
     191            && enmType == RTFSTYPE_TMPFS)
     192            fAsyncMayFail = true;
    187193        RTTESTI_CHECK_RC(rc = RTFileOpen(&hFile, "tstFileAio#1.tst",
    188194                                         RTFILE_O_READWRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE | RTFILE_O_ASYNC_IO),
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