#include <P_CacheVol.h>
Public Member Functions | |
uint32_t | data_len () |
uint32_t | prefix_len () |
int | single_fragment () |
int | no_data_in_fragment () |
char * | hdr () |
char * | data () |
Data Fields | |
uint32_t | magic |
uint32_t | len |
uint64_t | total_len |
CryptoHash | first_key |
first key in object. | |
CryptoHash | key |
Key for this doc. | |
uint32_t | hlen |
Length of this header. | |
uint32_t | doc_type:8 |
Doc type - indicates the format of this structure and its content. | |
uint32_t | v_major:8 |
Major version number. | |
uint32_t | v_minor:8 |
Minor version number. | |
uint32_t | unused:8 |
Unused, forced to zero. | |
uint32_t | sync_serial |
uint32_t | write_serial |
uint32_t | pinned |
uint32_t | checksum |
Definition at line 626 of file P_CacheVol.h.
TS_INLINE char * Doc::data | ( | ) |
Definition at line 804 of file P_CacheVol.h.
Referenced by agg_copy(), CacheVC::derefRead(), CacheVC::get_single_data(), CacheVC::handleReadDone(), Cache::link(), and CacheVC::scanObject().
TS_INLINE uint32_t Doc::data_len | ( | ) |
Definition at line 786 of file P_CacheVol.h.
References hlen, len, and sizeofDoc.
Referenced by agg_copy(), CacheVC::evacuateDocDone(), CacheVC::get_single_data(), CacheVC::handleReadDone(), CacheVC::openReadFromWriter(), and single_fragment().
TS_INLINE char * Doc::hdr | ( | ) |
Definition at line 798 of file P_CacheVol.h.
References sizeofDoc.
Referenced by agg_copy(), data(), CacheVC::get_header(), CacheVC::handleReadDone(), CacheVC::openReadStartHead(), and CacheVC::scanObject().
int Doc::no_data_in_fragment | ( | ) |
TS_INLINE uint32_t Doc::prefix_len | ( | ) |
Definition at line 780 of file P_CacheVol.h.
References hlen, and sizeofDoc.
Referenced by CacheVC::handleReadDone(), CacheVC::openReadFromWriter(), CacheVC::openReadMain(), CacheVC::openReadReadDone(), CacheVC::openReadStartEarliest(), and CacheVC::openReadStartHead().
TS_INLINE int Doc::single_fragment | ( | ) |
Definition at line 792 of file P_CacheVol.h.
References data_len(), and total_len.
Referenced by agg_copy(), and CacheVC::openReadStartHead().
uint32_t Doc::checksum |
Definition at line 641 of file P_CacheVol.h.
Referenced by agg_copy(), and CacheVC::handleReadDone().
uint32_t Doc::doc_type |
Doc type - indicates the format of this structure and its content.
Definition at line 634 of file P_CacheVol.h.
Referenced by agg_copy(), CacheVC::evacuateReadHead(), ShowCache::handleCacheEvent(), CacheVC::handleRead(), CacheVC::handleReadDone(), and CacheVC::scanObject().
CryptoHash Doc::first_key |
first key in object.
Definition at line 631 of file P_CacheVol.h.
Referenced by agg_copy(), CacheVC::derefRead(), CacheVC::evacuateDocDone(), Vol::evacuateDocReadDone(), CacheVC::evacuateReadHead(), ShowCache::handleCacheEvent(), CacheVC::handleReadDone(), CacheVC::openReadStartHead(), CacheVC::openWriteOverwrite(), CacheVC::removeEvent(), and CacheVC::scanObject().
uint32_t Doc::hlen |
Length of this header.
Definition at line 633 of file P_CacheVol.h.
Referenced by agg_copy(), data(), data_len(), CacheVC::evacuateDocDone(), CacheVC::evacuateReadHead(), CacheVC::get_header(), ShowCache::handleCacheEvent(), CacheVC::handleRead(), CacheVC::handleReadDone(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), prefix_len(), and CacheVC::scanObject().
CryptoHash Doc::key |
Key for this doc.
Definition at line 632 of file P_CacheVol.h.
Referenced by agg_copy(), Vol::aggWriteDone(), CacheVC::derefRead(), CacheVC::evacuateDocDone(), Vol::evacuateDocReadDone(), CacheVC::evacuateReadHead(), ShowCache::handleCacheEvent(), CacheVC::handleReadDone(), CacheVC::openReadMain(), CacheVC::openReadReadDone(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), CacheVC::scanObject(), and CacheVC::scanOpenWrite().
uint32_t Doc::len |
Definition at line 629 of file P_CacheVol.h.
Referenced by agg_copy(), Vol::aggWrite(), Vol::aggWriteDone(), data_len(), Vol::handle_recover_from_data(), CacheVC::handleReadDone(), CacheVC::openReadMain(), CacheVC::openReadStartHead(), CacheVC::scanObject(), and CacheVC::scanOpenWrite().
uint32_t Doc::magic |
Definition at line 628 of file P_CacheVol.h.
Referenced by agg_copy(), Vol::aggWrite(), Vol::evacuateDocReadDone(), CacheVC::evacuateReadHead(), Vol::handle_recover_from_data(), CacheVC::handleReadDone(), CacheVC::openReadReadDone(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), CacheVC::removeEvent(), and CacheVC::scanObject().
uint32_t Doc::pinned |
Definition at line 640 of file P_CacheVol.h.
Referenced by agg_copy(), and Vol::evacuateDocReadDone().
uint32_t Doc::sync_serial |
Definition at line 638 of file P_CacheVol.h.
Referenced by agg_copy(), Vol::aggWrite(), Vol::handle_recover_from_data(), and ShowCache::handleCacheEvent().
uint64_t Doc::total_len |
Definition at line 630 of file P_CacheVol.h.
Referenced by agg_copy(), CacheVC::evacuateReadHead(), CacheVC::get_single_data(), CacheVC::handleReadDone(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), CacheVC::scanOpenWrite(), and single_fragment().
uint32_t Doc::unused |
uint32_t Doc::v_major |
Major version number.
Definition at line 635 of file P_CacheVol.h.
Referenced by agg_copy(), and CacheVC::openReadStartHead().
uint32_t Doc::v_minor |
Minor version number.
Definition at line 636 of file P_CacheVol.h.
Referenced by agg_copy(), and CacheVC::openReadStartHead().
uint32_t Doc::write_serial |
Definition at line 639 of file P_CacheVol.h.
Referenced by agg_copy(), Vol::aggWrite(), Vol::handle_recover_from_data(), and ShowCache::handleCacheEvent().