CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
glue::PageCacheTracker::OpenDirectives Struct Reference

#include <glue_buffer.h>

Public Member Functions

 OpenDirectives ()
 
 OpenDirectives (bool k, bool d)
 

Public Attributes

bool keep_cache
 
bool direct_io
 

Detailed Description

Instruct cvmfs_open() on how to handle the page cache.

Definition at line 965 of file glue_buffer.h.

Constructor & Destructor Documentation

glue::PageCacheTracker::OpenDirectives::OpenDirectives ( )
inline

Definition at line 982 of file glue_buffer.h.

glue::PageCacheTracker::OpenDirectives::OpenDirectives ( bool  k,
bool  d 
)
inline

Definition at line 984 of file glue_buffer.h.

Member Data Documentation

bool glue::PageCacheTracker::OpenDirectives::direct_io

Don't use the page cache at all (neither write nor read). If this is set on cvmfs_open(), don't call Close() on cvmfs_close(). Direct I/O prevents shared mmap on the file. Private mmap, however, which includes loading binaries, still works.

Definition at line 978 of file glue_buffer.h.

Referenced by cvmfs::FillOpenFlags(), and glue::PageCacheTracker::Open().

bool glue::PageCacheTracker::OpenDirectives::keep_cache

Flush the page cache; logically, the flush takes place some time between cvmfs_open() and cvmfs_close(). That's important in case we have two open() calls on stale page cache data.

Definition at line 971 of file glue_buffer.h.

Referenced by cvmfs::FillOpenFlags(), and glue::PageCacheTracker::Open().


The documentation for this struct was generated from the following file: