CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PosixQuotaManager::LruCommand Struct Reference

Public Member Functions

 LruCommand ()
 
void SetSize (const uint64_t new_size)
 
uint64_t GetSize () const
 
void StoreHash (const shash::Any &hash)
 
shash::Any RetrieveHash () const
 

Public Attributes

CommandType command_type
 
uint64_t size
 
int return_pipe
 
unsigned char digest [shash::kMaxDigestSize]
 
uint16_t desc_length
 

Detailed Description

That could be done in more elegant way. However, we might have a situation with old cache manager serving new clients (or vice versa) and we don't want to change the memory layout of LruCommand.

Definition at line 128 of file quota_posix.h.

Constructor & Destructor Documentation

PosixQuotaManager::LruCommand::LruCommand ( )
inline

Definition at line 139 of file quota_posix.h.

Member Function Documentation

uint64_t PosixQuotaManager::LruCommand::GetSize ( ) const
inline

Definition at line 154 of file quota_posix.h.

Referenced by PosixQuotaManager::MainCommandServer(), and PosixQuotaManager::ProcessCommandBunch().

Here is the caller graph for this function:

shash::Any PosixQuotaManager::LruCommand::RetrieveHash ( ) const
inline

Definition at line 168 of file quota_posix.h.

Referenced by PosixQuotaManager::MainCommandServer(), and PosixQuotaManager::ProcessCommandBunch().

Here is the caller graph for this function:

void PosixQuotaManager::LruCommand::SetSize ( const uint64_t  new_size)
inline

Definition at line 148 of file quota_posix.h.

Referenced by PosixQuotaManager::DoInsert(), and PosixQuotaManager::Pin().

Here is the caller graph for this function:

void PosixQuotaManager::LruCommand::StoreHash ( const shash::Any hash)
inline

Definition at line 160 of file quota_posix.h.

Referenced by PosixQuotaManager::DoInsert(), PosixQuotaManager::MainCommandServer(), PosixQuotaManager::Pin(), PosixQuotaManager::Remove(), and PosixQuotaManager::Touch().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

uint16_t PosixQuotaManager::LruCommand::desc_length

Maximum 512-sizeof(LruCommand) in order to guarantee atomic pipe operations.

Definition at line 137 of file quota_posix.h.

Referenced by PosixQuotaManager::DoInsert(), and PosixQuotaManager::MainCommandServer().

uint64_t PosixQuotaManager::LruCommand::size

Careful! Last 3 bits store hash algorithm

Definition at line 130 of file quota_posix.h.

Referenced by PosixQuotaManager::Cleanup(), PosixQuotaManager::GetCleanupRate(), GetSize(), RetrieveHash(), SetSize(), and StoreHash().


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