Public Member Functions | Data Fields

Span Struct Reference

#include <I_Store.h>

Public Member Functions

 SLINK (Span, link)
bool is_mmapable ()
void set_mmapable (bool s)
int64_t size ()
int64_t total_blocks ()
Spannth (int i)
int paths ()
int write (int fd)
int read (int fd)
Spandup ()
 Duplicate this span and all chained spans.
int64_t end ()
const char * init (char *n, int64_t size)
int path (char *filename, int64_t *offset, char *buf, int buflen)
void hash_base_string_set (char const *s)
 Set the hash seed string.
void volume_number_set (int n)
 Set the volume number.
 Span ()
 Span (Span const &that)
 Copy constructor.
 ~Span ()

Data Fields

int64_t blocks
int64_t offset
int hw_sector_size
int alignment
int disk_id
int forced_volume_num
 Force span in to specific volume.
bool file_pathname
bool isRaw
ats_scoped_str pathname
ats_scoped_str hash_base_string
 Used to seed the stripe assignment hash.

Detailed Description

Definition at line 44 of file I_Store.h.


Constructor & Destructor Documentation

Span::Span (  )  [inline]

Definition at line 106 of file I_Store.h.

Referenced by dup().

Span::Span ( Span const &  that  )  [inline]

Copy constructor.

Definition at line 121 of file I_Store.h.

References ats_strdup, hash_base_string, memcpy, and pathname.

Span::~Span (  ) 

Definition at line 231 of file Store.cc.


Member Function Documentation

Span * Span::dup (  ) 

Duplicate this span and all chained spans.

Definition at line 1144 of file Store.cc.

References dup(), and Span().

Referenced by Store::dup(), and dup().

int64_t Span::end (  )  [inline]

Definition at line 92 of file I_Store.h.

References blocks, and offset.

Referenced by Store::sort().

void Span::hash_base_string_set ( char const *  s  ) 

Set the hash seed string.

Definition at line 203 of file Store.cc.

References ats_strdup, and hash_base_string.

Referenced by Store::read_config().

const char* Span::init ( char *  n,
int64_t  size 
)
bool Span::is_mmapable (  )  [inline]

Definition at line 63 of file I_Store.h.

Referenced by MultiCacheBase::mmap_region(), and write().

Span* Span::nth ( int  i  )  [inline]

Definition at line 75 of file I_Store.h.

Referenced by Store::clear(), MultiCacheBase::mmap_data(), and MultiCacheBase::mmap_region().

int Span::path ( char *  filename,
int64_t *  offset,
char *  buf,
int  buflen 
)

Definition at line 186 of file Store.cc.

References file_pathname, ink_assert, ink_filepath_make(), ink_strlcpy(), and pathname.

Referenced by Store::clear(), and MultiCacheBase::mmap_data().

int Span::paths (  )  [inline]

Definition at line 82 of file I_Store.h.

Referenced by Store::clear(), MultiCacheBase::mmap_data(), and MultiCacheBase::mmap_region().

int Span::read ( int  fd  ) 
void Span::set_mmapable ( bool  s  )  [inline]

Definition at line 64 of file I_Store.h.

Referenced by read().

int64_t Span::size (  )  [inline]

Definition at line 65 of file I_Store.h.

References blocks.

Span::SLINK ( Span  ,
link   
)
int64_t Span::total_blocks (  )  [inline]

Definition at line 67 of file I_Store.h.

References blocks.

Referenced by Store::total_blocks().

void Span::volume_number_set ( int  n  ) 

Set the volume number.

Definition at line 209 of file Store.cc.

References forced_volume_num.

Referenced by Store::read_config().

int Span::write ( int  fd  ) 

Definition at line 975 of file Store.cc.

References blocks, file_pathname, ink_file_fd_writestring(), is_mmapable(), offset, and pathname.

Referenced by Store::write().


Field Documentation

Definition at line 49 of file I_Store.h.

Referenced by CacheProcessor::start_internal().

int64_t Span::blocks

Definition at line 50 of file I_Store.h.

Referenced by Store::sort().

Force span in to specific volume.

Definition at line 51 of file I_Store.h.

Referenced by CacheProcessor::start_internal(), and volume_number_set().

ats_scoped_str Span::hash_base_string

Used to seed the stripe assignment hash.

Definition at line 60 of file I_Store.h.

Referenced by hash_base_string_set(), Span(), and CacheProcessor::start_internal().

Definition at line 48 of file I_Store.h.

Referenced by CacheProcessor::start_internal().

Definition at line 56 of file I_Store.h.

int64_t Span::offset
ats_scoped_str Span::pathname

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