CernVM-FS
2.12.0
|
#include <glue_buffer.h>
Public Types | |
enum | EFileType { kUnknownType = 0, kRegular = 010, kSymlink = 012, kDirectory = 004, kFifo = 001, kSocket = 014, kCharDev = 002, kBulkDev = 006 } |
Public Member Functions | |
InodeEx () | |
InodeEx (uint64_t inode, EFileType type) | |
InodeEx (uint64_t inode, unsigned mode) | |
uint64_t | GetInode () const |
EFileType | GetFileType () const |
bool | operator== (const InodeEx &other) const |
bool | operator!= (const InodeEx &other) const |
bool | IsCompatibleFileType (unsigned mode) const |
Static Private Member Functions | |
static uint64_t | ShiftMode (unsigned mode) |
Private Attributes | |
uint64_t | inode_ex_ |
Inode + file type. Stores the file type in the 4 most significant bits of the 64 bit unsigned integer representing the inode. That makes the class compatible with a pure 64bit inode used in previous cvmfs versions in the inode tracker. The file type is stored using the POSIX representation in the inode's mode field. Note that InodeEx, used as a hash table key, hashes only over the inode part.
Definition at line 48 of file glue_buffer.h.
Enumerator | |
---|---|
kUnknownType | |
kRegular | |
kSymlink | |
kDirectory | |
kFifo | |
kSocket | |
kCharDev | |
kBulkDev |
Definition at line 55 of file glue_buffer.h.
|
inline |
Definition at line 66 of file glue_buffer.h.
|
inline |
Definition at line 67 of file glue_buffer.h.
|
inline |
Definition at line 70 of file glue_buffer.h.
|
inline |
Definition at line 75 of file glue_buffer.h.
Referenced by IsCompatibleFileType().
|
inline |
Definition at line 74 of file glue_buffer.h.
Referenced by glue::hasher_inode_ex(), operator!=(), operator==(), glue::InodeTracker::ReplaceInode(), and glue::InodeTracker::VfsGetBy().
|
inline |
Definition at line 86 of file glue_buffer.h.
Referenced by cvmfs::GetDirentForInode().
|
inline |
|
inline |
|
inlinestaticprivate |
Definition at line 52 of file glue_buffer.h.
Referenced by IsCompatibleFileType().
|
private |
Definition at line 92 of file glue_buffer.h.
Referenced by GetFileType(), and GetInode().