VirtualBox

Changeset 21493 in vbox for trunk/include


Ignore:
Timestamp:
Jul 10, 2009 7:58:31 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49940
Message:

Runtime/File: Add flag to disable the file cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/file.h

    r20374 r21493  
    149149 */
    150150#define RTFILE_O_ASYNC_IO           0x00040000
     151/** Disables caching of the opened file on the host.
     152 * Useful when using very big files which might
     153 * bring the host I/O scheduler to its knees
     154 * during high I/O load.
     155 * @remark  This flag might impose restrictions
     156 *          on the buffer alignment, start offset and/or transfer size.
     157 *          On Linux the buffer needs to be aligned to the 512 sector
     158 *          boundary.
     159 *          On Windows the FILE_FLAG_NO_BUFFERING is used
     160 *          (see here for more details
     161 *          http://msdn.microsoft.com/en-us/library/cc644950(VS.85).aspx)
     162 *          The buffer address, the transfer size and offset needs to be
     163 *          aligned to the sector size of the volume.
     164 * @remark  This might not be implemented on all platforms,
     165 *          and will be ignored on those.
     166 */
     167#define RTFILE_O_NO_CACHE      0x00080000
    151168
    152169/** Mask of all valid flags.
    153170 * @remark  This doesn't validate the access mode properly.
    154171 */
    155 #define RTFILE_O_VALID_MASK          0x1ff7FB73
     172#define RTFILE_O_VALID_MASK          0x1ffFFB73
    156173
    157174/** @} */
     
    10751092 *
    10761093 * @returns IPRT status code.
     1094 * @returns VERR_FILE_AIO_INSUFFICIENT_RESSOURCES if the maximum number of
     1095 *          simultaneous outstanding requests would be exceeded.
    10771096 *
    10781097 * @param   hAioCtx         The async I/O context handle.
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