CernVM-FS  2.12.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 134 of file quota_posix.h.

Constructor & Destructor Documentation

PosixQuotaManager::LruCommand::LruCommand ( )
inline

Definition at line 145 of file quota_posix.h.

Member Function Documentation

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

Definition at line 160 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 174 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 154 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 166 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 143 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 136 of file quota_posix.h.

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


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