#include <P_CacheVol.h>
Inherits Continuation.
Definition at line 417 of file P_CacheVol.h.
Vol::Vol | ( | ) | [inline] |
Definition at line 581 of file P_CacheVol.h.
References agg_buffer, AGG_SIZE, aggWrite(), ats_memalign(), Continuation::mutex, open_dir, and SET_HANDLER.
Vol::~Vol | ( | ) | [inline] |
Definition at line 593 of file P_CacheVol.h.
References agg_buffer, and ats_memalign_free().
void Vol::agg_wrap | ( | ) |
Definition at line 943 of file CacheWrite.cc.
References VolHeaderFooter::agg_pos, VolHeaderFooter::cycle, dir_clean_vol(), dir_lookaside_cleanup(), header, periodic_scan(), VolHeaderFooter::phase, start, and VolHeaderFooter::write_pos.
Referenced by aggWrite().
int Vol::aggWrite | ( | int | event, | |
void * | e | |||
) |
Definition at line 963 of file CacheWrite.cc.
References AIOCallback::action, agg, agg_buf_pos, agg_buffer, agg_copy(), AGG_HIGH_WATER, CacheVC::agg_len, VolHeaderFooter::agg_pos, AGG_SIZE, agg_todo_size, agg_wrap(), aggWriteDone(), ink_aiocb::aio_buf, AIO_EVENT_DONE, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, cancel_trigger(), DDebug, Queue< C, L >::dequeue(), dir_sync_waiting, ET_CALL, evac_range(), EVENT_CALL, eventProcessor, CacheVC::f, fd, CacheVC::first_key, Continuation::handleEvent(), DLL< C, L >::head, header, CacheVC::initial_thread, ink_aio_write(), ink_assert, Queue< C, L >::insert(), io, is_io_in_progress(), Doc::len, len, Doc::magic, Continuation::mutex, Note, VolHeaderFooter::phase, Que, round_to_approx_size(), EventProcessor::schedule_imm_signal(), EThread::schedule_imm_signal(), SET_HANDLER, skip, ats::CryptoHash::slice32(), start, sync, VolHeaderFooter::sync_serial, Doc::sync_serial, Queue< C, L >::tail, AIOCallback::thread, UINT_WRAP_LT, VolHeaderFooter::write_pos, VolHeaderFooter::write_serial, Doc::write_serial, and CacheVC::write_serial.
Referenced by aggWriteDone(), dir_init_done(), evacuateDocReadDone(), evacuateWrite(), CacheVC::handleWrite(), CacheSync::mainEvent(), and Vol().
int Vol::aggWriteDone | ( | int | event, | |
Event * | e | |||
) |
Definition at line 306 of file CacheWrite.cc.
References agg, agg_buf_pos, agg_buffer, VolHeaderFooter::agg_pos, aggWrite(), AIO_EVENT_DONE, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, CACHE_BLOCK_SIZE, cache_config_mutex_retry_delay, CACHE_TRY_LOCK, cacheDirSync, cancel_trigger(), DDebug, Debug, Queue< C, L >::dequeue(), dir_clear, dir_delete(), dir_set_offset, dir_sync_waiting, EVACUATION_SIZE, EVENT_IMMEDIATE, eventProcessor, Continuation::handleEvent(), hash_text, DLL< C, L >::head, header, HRTIME_MSECONDS, CacheVC::initial_thread, ink_assert, io, Doc::key, VolHeaderFooter::last_write_pos, Doc::len, Continuation::mutex, AIOCallback::ok(), periodic_scan(), Queue< C, L >::push(), round_to_approx_size(), scan_pos, EThread::schedule_imm_signal(), EventProcessor::schedule_in(), set_io_not_in_progress(), start, sync, UINT_WRAP_LTE, VolHeaderFooter::write_pos, CacheVC::write_serial, and VolHeaderFooter::write_serial.
Referenced by aggWrite().
int Vol::begin_read | ( | CacheVC * | cont | ) |
Definition at line 511 of file Cache.cc.
References EvacuationBlock::dir, dir_evac_bucket, dir_offset, CacheVC::earliest_dir, CacheVC::earliest_key, Queue< C, L >::enqueue(), EvacuationBlock::evac_frags, evacuate, CacheVC::f, ink_assert, EvacuationKey::key, Continuation::mutex, new_EvacuationBlock(), DLL< C, L >::push(), EvacuationBlock::readers, stat_cache_vcs, and this_ethread().
Referenced by begin_read_lock(), CacheVC::openReadStartEarliest(), and CacheVC::openReadStartHead().
TS_INLINE int Vol::begin_read_lock | ( | CacheVC * | cont | ) |
Definition at line 878 of file P_CacheInternal.h.
References begin_read(), CACHE_TRY_LOCK, CacheVC::f, and Continuation::mutex.
TS_INLINE void Vol::cancel_trigger | ( | ) |
Definition at line 825 of file P_CacheVol.h.
References Action::cancel_action(), and trigger.
Referenced by aggWrite(), aggWriteDone(), and evacuateDocReadDone().
int Vol::clear_dir | ( | ) |
Definition at line 1245 of file Cache.cc.
References AIOCallback::action, ink_aiocb::aio_buf, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, fd, handle_dir_clear(), ink_aio_write(), ink_assert, io, raw_dir, SET_HANDLER, skip, AIOCallback::then, AIOCallback::thread, vol_clear_init(), and vol_dirlen().
Referenced by handle_dir_read(), handle_header_read(), handle_recover_from_data(), and init().
int Vol::close_read | ( | CacheVC * | cont | ) |
Definition at line 547 of file Cache.cc.
References EvacuationBlock::dir, dir_evac_bucket, dir_is_empty, dir_offset, CacheVC::earliest_dir, evacuate, free_EvacuationBlock(), ink_assert, Continuation::mutex, EvacuationBlock::readers, Queue< C, L >::remove(), DLL< C, L >::remove(), stat_cache_vcs, and this_ethread().
Referenced by close_read_lock(), and CacheVC::openReadClose().
TS_INLINE int Vol::close_read_lock | ( | CacheVC * | cont | ) |
Definition at line 894 of file P_CacheInternal.h.
References CACHE_TRY_LOCK, close_read(), and Continuation::mutex.
TS_INLINE int Vol::close_write | ( | CacheVC * | cont | ) |
Definition at line 804 of file P_CacheInternal.h.
References OpenDir::close_write(), DLL< C, L >::head, ink_assert, open_dir, Queue< C, L >::remove(), and stat_cache_vcs.
Referenced by close_write_lock(), CacheVC::openReadStartEarliest(), CacheVC::openWriteCloseDir(), CacheVC::removeEvent(), CacheVC::scanOpenWrite(), and CacheVC::scanUpdateDone().
TS_INLINE int Vol::close_write_lock | ( | CacheVC * | cont | ) |
Definition at line 849 of file P_CacheInternal.h.
References CACHE_TRY_LOCK, close_write(), and Continuation::mutex.
int Vol::db_check | ( | bool | fix | ) |
Definition at line 1137 of file Cache.cc.
References VolHeaderFooter::create_time, hash_text, header, ink_ctime_r(), len, VolHeaderFooter::phase, skip, VolHeaderFooter::sync_serial, VolHeaderFooter::write_pos, and VolHeaderFooter::write_serial.
int Vol::dir_check | ( | bool | fix | ) |
Definition at line 1242 of file CacheDir.cc.
References ats_free(), ats_malloc(), buckets, dir_bucket(), dir_freelist_length(), dir_offset, dir_segment, dir_valid, hash_text, HIST_DEPTH, next_dir(), segments, and SIZEOF_DIR.
int Vol::dir_init_done | ( | int | event, | |
void * | data | |||
) |
Definition at line 1785 of file Cache.cc.
References aggWrite(), cache, Cache::cache_read_done, ET_CALL, eventProcessor, fd, gnvol, HRTIME_MSECONDS, ink_assert, EventProcessor::schedule_in(), SET_HANDLER, and Cache::vol_initialized().
Referenced by handle_dir_clear(), and handle_recover_write_dir().
int Vol::evac_range | ( | off_t | start, | |
off_t | end, | |||
int | evac_phase | |||
) |
Definition at line 685 of file CacheWrite.cc.
References AIOCallback::action, ink_aiocb::aio_buf, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, CacheVC::buf, DDebug, EvacuationBlock::dir, dir_approx_size, dir_offset, dir_offset_evac_bucket, dir_phase, dir_tag, doc_evacuator, evacuate, evacuateDocReadDone(), EvacuationBlock::f, fd, DLL< C, L >::head, ink_aio_read(), ink_assert, io, len, new_DocEvacuator(), offset_to_vol_offset(), CacheVC::overwrite_dir, SET_HANDLER, skip, AIOCallback::thread, and vol_offset().
Referenced by aggWrite().
void Vol::evacuate_cleanup | ( | ) |
Definition at line 907 of file CacheWrite.cc.
References CACHE_BLOCK_SIZE, dir_offset_evac_bucket, evacuate_cleanup_blocks(), evacuate_size, header, start, and VolHeaderFooter::write_pos.
Referenced by periodic_scan().
void Vol::evacuate_cleanup_blocks | ( | int | i | ) | [inline] |
Definition at line 886 of file CacheWrite.cc.
References DDebug, EvacuationBlock::dir, dir_offset, dir_phase, EvacuationBlock::evac_frags, evacuate, EvacuationBlock::f, free_EvacuationBlock(), DLL< C, L >::head, header, EvacuationKey::key, Continuation::mutex, VolHeaderFooter::phase, DLL< C, L >::remove(), ats::CryptoHash::slice32(), vol_offset(), and VolHeaderFooter::write_pos.
Referenced by evacuate_cleanup().
int Vol::evacuateDoc | ( | int | event, | |
Event * | e | |||
) |
int Vol::evacuateDocReadDone | ( | int | event, | |
Event * | e | |||
) |
Definition at line 599 of file CacheWrite.cc.
References aggWrite(), AIO_EVENT_DONE, CacheVC::buf, cancel_trigger(), DDebug, Debug, dir_compare_tag(), dir_evac_bucket, dir_head, dir_offset, dir_tag, doc_evacuator, DOC_MAGIC, EvacuationKey::earliest_key, CacheVC::earliest_key, evacuate, evacuate_fragments(), evacuateWrite(), Doc::first_key, free_CacheVC(), DLL< C, L >::head, HRTIME_SECOND, ink_assert, ink_get_based_hrtime(), is_io_in_progress(), EvacuationKey::key, CacheVC::key, Doc::key, EvacuationKey::link, Doc::magic, Continuation::mutex, SLink< C >::next, next_CacheKey(), CacheVC::overwrite_dir, Doc::pinned, set_io_not_in_progress(), ats::CryptoHash::slice32(), and this_ethread().
Referenced by evac_range().
Definition at line 582 of file CacheWrite.cc.
References agg, CacheVC::agg_len, AGG_SIZE, agg_todo_size, aggWrite(), CacheVC::buf, CacheVC::f, DLL< C, L >::head, ink_assert, Queue< C, L >::insert(), len, and round_to_approx_size().
Referenced by evacuateDocReadDone().
EvacuationBlock * Vol::force_evacuate_head | ( | Dir * | dir, | |
int | pinned | |||
) |
Definition at line 246 of file CacheWrite.cc.
References DDebug, EvacuationBlock::dir, dir_evac_bucket, dir_offset, dir_phase, EvacuationBlock::evac_frags, evacuate, evacuation_block_exists(), EvacuationBlock::f, EvacuationKey::key, Continuation::mutex, new_EvacuationBlock(), DLL< C, L >::push(), EvacuationBlock::readers, and zero_key.
Referenced by CacheVC::openReadClose(), and scan_for_pinned_documents().
int Vol::handle_dir_clear | ( | int | event, | |
void * | data | |||
) |
Definition at line 1351 of file Cache.cc.
References AIO_EVENT_DONE, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aio_result, AIOCallback::aiocb, dir_init_done(), EVENT_IMMEDIATE, fd, hash_text, ink_aio_write(), ink_assert, ROUND_TO_STORE_BLOCK, SET_HANDLER, set_io_not_in_progress(), skip, vol_dirlen(), and Warning.
Referenced by clear_dir().
int Vol::handle_dir_read | ( | int | event, | |
void * | data | |||
) |
Definition at line 1381 of file Cache.cc.
References AIO_EVENT_DONE, ink_aiocb::aio_nbytes, AIOCallback::aio_result, AIOCallback::aiocb, CACHE_DB_MAJOR_VERSION, CHECK_DIR, clear_dir(), footer, hash_text, header, VersionNumber::ink_major, VolHeaderFooter::magic, Note, recover_data(), VolHeaderFooter::sector_size, sector_size, VolHeaderFooter::version, VOL_MAGIC, and Warning.
Referenced by handle_header_read().
int Vol::handle_header_read | ( | int | event, | |
void * | data | |||
) |
Definition at line 1731 of file Cache.cc.
References AIOCallback::action, ink_aiocb::aio_buf, AIO_EVENT_DONE, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aio_result, AIOCallback::aiocb, clear_dir(), fd, handle_dir_read(), hash_text, init_info, ink_aio_read(), ink_assert, io, is_debug_tag_set, Note, raw_dir, SET_HANDLER, skip, AIOCallback::then, AIOCallback::thread, and vol_dirlen().
Referenced by init().
int Vol::handle_recover_from_data | ( | int | event, | |
void * | data | |||
) |
Definition at line 1466 of file Cache.cc.
References AIOCallback::action, AGG_SIZE, ink_aiocb::aio_buf, AIO_EVENT_DONE, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aio_result, AIOCallback::aiocb, ats_memalign(), clear_dir(), Debug, dir_clear_range(), DIR_OFFSET_MAX, DOC_MAGIC, EVACUATION_SIZE, EVENT_IMMEDIATE, fd, footer, handle_recover_write_dir(), hash_text, header, init_info, ink_aio_read(), ink_aio_write(), ink_aio_writev(), ink_assert, io, is_debug_tag_set, last_sync_serial, VolHeaderFooter::last_write_pos, last_write_serial, Doc::len, len, Doc::magic, Note, offset_to_vol_offset(), prev_recover_pos, raw_dir, recover_pos, recover_wrapped, round_to_approx_size(), ROUND_TO_STORE_BLOCK, SET_HANDLER, skip, start, Doc::sync_serial, VolHeaderFooter::sync_serial, AIOCallback::then, AIOCallback::thread, VolInitInfo::vol_aio, vol_dirlen(), Warning, VolHeaderFooter::write_pos, VolHeaderFooter::write_serial, and Doc::write_serial.
Referenced by recover_data().
int Vol::handle_recover_write_dir | ( | int | event, | |
void * | data | |||
) |
Definition at line 1717 of file Cache.cc.
References ink_aiocb::aio_buf, AIOCallback::aiocb, dir_init_done(), EVENT_IMMEDIATE, header, init_info, io, periodic_scan(), scan_pos, SET_HANDLER, set_io_not_in_progress(), and VolHeaderFooter::write_pos.
Referenced by handle_recover_from_data().
int Vol::increment_generation | ( | ) | [inline] |
Definition at line 550 of file P_CacheVol.h.
References VolHeaderFooter::generation, header, ink_assert, Continuation::mutex, and this_ethread().
int Vol::init | ( | char * | s, | |
off_t | blocks, | |||
off_t | dir_skip, | |||
bool | clear | |||
) |
Definition at line 1264 of file Cache.cc.
References AIOCallback::action, ink_aiocb::aio_buf, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, ats_malloc(), ats_memalign(), ats_strdup, cache_config_hit_evacuate_percent, clear_dir(), countof, data_blocks, Debug, dir, disk, evacuate, evacuate_size, EVACUATION_BUCKET_SIZE, fd, footer, handle_header_read(), CacheDisk::hash_base_string, hash_id, hash_text, header, hit_evacuate_window, init_info, ink_aio_read(), ink_aio_readv(), ink_assert, ink_strlcpy(), is_debug_tag_set, len, MAX_VOL_SIZE, Note, path, prev_recover_pos, raw_dir, ROUND_TO_STORE_BLOCK, SET_HANDLER, skip, start, START_POS, AIOCallback::then, AIOCallback::thread, VolInitInfo::vol_aio, vol_dirlen(), VolInitInfo::vol_h_f, vol_headerlen(), and vol_init_data().
Referenced by CacheProcessor::cacheInitialized(), and Cache::open().
int Vol::is_io_in_progress | ( | ) | [inline] |
Definition at line 546 of file P_CacheVol.h.
References ink_aiocb::aio_fildes, AIOCallback::aiocb, and io.
Referenced by aggWrite(), evacuateDocReadDone(), CacheVC::handleWrite(), and CacheSync::mainEvent().
TS_INLINE OpenDirEntry * Vol::open_read | ( | CryptoHash * | key | ) |
Definition at line 857 of file P_CacheVol.h.
References open_dir, and OpenDir::open_read().
Referenced by CacheVC::evacuateDocDone(), Cache::open_read(), CacheVC::openReadFromWriter(), CacheVC::openReadStartHead(), CacheVC::removeEvent(), CacheVC::scanUpdateDone(), and CacheVC::writer_done().
OpenDirEntry* Vol::open_read_lock | ( | CryptoHash * | key, | |
EThread * | t | |||
) |
TS_INLINE int Vol::open_write | ( | CacheVC * | cont, | |
int | allow_if_writers, | |||
int | max_writers | |||
) |
Definition at line 816 of file P_CacheInternal.h.
References agg_todo_size, cache_config_agg_write_backlog, CACHE_INCREMENT_DYN_STAT, cache_write_backlog_failure_stat, Queue< C, L >::enqueue(), CacheVC::f, CacheVC::first_key, ink_assert, Continuation::mutex, open_dir, OpenDir::open_write(), stat_cache_vcs, and this_ethread().
Referenced by open_write_lock(), CacheVC::openReadStartEarliest(), CacheVC::removeEvent(), and CacheVC::scanOpenWrite().
TS_INLINE int Vol::open_write_lock | ( | CacheVC * | cont, | |
int | allow_if_writers, | |||
int | max_writers | |||
) |
Definition at line 859 of file P_CacheInternal.h.
References CACHE_TRY_LOCK, Continuation::mutex, and open_write().
Referenced by Cache::open_write(), and CacheVC::openWriteStartBegin().
void Vol::periodic_scan | ( | ) |
Definition at line 933 of file CacheWrite.cc.
References evacuate_cleanup(), header, len, scan_for_pinned_documents(), scan_pos, start, and VolHeaderFooter::write_pos.
Referenced by agg_wrap(), aggWriteDone(), and handle_recover_write_dir().
int Vol::recover_data | ( | ) |
Definition at line 1423 of file Cache.cc.
References EVENT_IMMEDIATE, handle_recover_from_data(), and SET_HANDLER.
Referenced by handle_dir_read().
TS_INLINE uint32_t Vol::round_to_approx_size | ( | uint32_t | l | ) |
Definition at line 875 of file P_CacheVol.h.
References round_to_approx_dir_size, and ROUND_TO_SECTOR.
Referenced by agg_copy(), aggWrite(), aggWriteDone(), evacuateWrite(), handle_recover_from_data(), CacheVC::handleReadDone(), CacheVC::handleWrite(), CacheVC::scanObject(), and CacheVC::scanOpenWrite().
void Vol::scan_for_pinned_documents | ( | ) |
Definition at line 270 of file CacheWrite.cc.
References AGG_SIZE, cache_config_permit_pinning, DDebug, dir, dir_head, dir_is_empty, dir_offset, dir_phase, dir_pinned, EVACUATION_SIZE, force_evacuate_head(), header, len, offset_to_vol_offset(), VolHeaderFooter::phase, PIN_SCAN_EVERY, skip, vol_direntries(), and VolHeaderFooter::write_pos.
Referenced by periodic_scan().
void Vol::set_io_not_in_progress | ( | ) | [inline] |
Definition at line 559 of file P_CacheVol.h.
References ink_aiocb::aio_fildes, AIOCallback::aiocb, and io.
Referenced by aggWriteDone(), evacuateDocReadDone(), handle_dir_clear(), and handle_recover_write_dir().
TS_INLINE int Vol::within_hit_evacuate_window | ( | Dir * | dir | ) |
Definition at line 863 of file P_CacheVol.h.
References AGG_SIZE, CACHE_BLOCK_SIZE, data_blocks, dir_offset, header, hit_evacuate_window, start, and VolHeaderFooter::write_pos.
Referenced by CacheVC::openReadStartEarliest(), and CacheVC::openReadStartHead().
Definition at line 440 of file P_CacheVol.h.
Referenced by aggWrite(), aggWriteDone(), evacuateWrite(), CacheVC::handleWrite(), and ShowCacheInternal::showVolVolumes().
int Vol::agg_buf_pos |
Definition at line 445 of file P_CacheVol.h.
Referenced by agg_copy(), aggWrite(), aggWriteDone(), CacheVC::handleRead(), CacheSync::mainEvent(), ShowCacheInternal::showVolVolumes(), sync_cache_dir_on_shutdown(), vol_in_phase_agg_buf_valid(), and vol_in_phase_valid().
char* Vol::agg_buffer |
Definition at line 443 of file P_CacheVol.h.
Referenced by aggWrite(), aggWriteDone(), CacheVC::handleRead(), sync_cache_dir_on_shutdown(), Vol(), and ~Vol().
Definition at line 444 of file P_CacheVol.h.
Referenced by aggWrite(), evacuateWrite(), CacheVC::handleWrite(), open_write(), and ShowCacheInternal::showVolVolumes().
off_t Vol::buckets |
Definition at line 429 of file P_CacheVol.h.
Referenced by Cache_dir(), CacheProcessor::cacheInitialized(), check_dir(), dir_check(), dir_clean_segment(), dir_clear_range(), dir_delete(), dir_entries_used(), dir_freelist_length(), dir_init_segment(), dir_insert(), dir_overwrite(), dir_probe(), dir_segment_accounted(), freelist_clean(), make_vol_map(), CacheProcessor::mark_storage_offline(), ShowCacheInternal::showVolVolumes(), vol_dir_segment(), vol_direntries(), vol_dirlen(), vol_init_data_internal(), and vol_init_dir().
Definition at line 459 of file P_CacheVol.h.
Referenced by dir_init_done(), and Cache::open().
Definition at line 460 of file P_CacheVol.h.
Referenced by ShowCache::handleCacheEvent(), and Cache::open().
off_t Vol::data_blocks |
Definition at line 436 of file P_CacheVol.h.
Referenced by init(), CacheSync::mainEvent(), sync_cache_dir_on_shutdown(), and within_hit_evacuate_window().
Definition at line 425 of file P_CacheVol.h.
Referenced by init(), scan_for_pinned_documents(), and vol_dir_segment().
Definition at line 466 of file P_CacheVol.h.
Referenced by CacheSync::mainEvent(), and sync_cache_dir_on_shutdown().
Definition at line 465 of file P_CacheVol.h.
Referenced by aggWrite(), aggWriteDone(), and CacheSync::mainEvent().
Definition at line 458 of file P_CacheVol.h.
Referenced by build_vol_hash_table(), cache_disk_replacement_stability(), CacheVC::handleReadDone(), init(), CacheSync::mainEvent(), Cache::open(), sync_cache_dir_on_shutdown(), and vol_clear_init().
Definition at line 454 of file P_CacheVol.h.
Referenced by evac_range(), and evacuateDocReadDone().
Definition at line 452 of file P_CacheVol.h.
Referenced by begin_read(), close_read(), evac_range(), evacuate_cleanup_blocks(), evacuate_fragments(), CacheVC::evacuateDocDone(), evacuateDocReadDone(), evacuation_block_exists(), force_evacuate_head(), init(), and ShowCacheInternal::showVolEvacuations().
Definition at line 451 of file P_CacheVol.h.
Referenced by evacuate_cleanup(), and init().
int Vol::fd |
Definition at line 422 of file P_CacheVol.h.
Referenced by aggWrite(), clear_dir(), dir_init_done(), dir_insert(), dir_overwrite(), dir_probe(), evac_range(), handle_dir_clear(), handle_header_read(), handle_recover_from_data(), CacheVC::handleRead(), init(), CacheSync::mainEvent(), CacheProcessor::mark_storage_offline(), Cache::open(), CacheVC::scanObject(), sync_cache_dir_on_shutdown(), and vol_dir_clear().
Definition at line 471 of file P_CacheVol.h.
Referenced by CacheVC::handleRead(), and CacheVC::handleReadDone().
Definition at line 469 of file P_CacheVol.h.
Referenced by CacheVC::handleRead(), and CacheVC::handleReadDone().
int64_t Vol::first_fragment_offset |
Definition at line 470 of file P_CacheVol.h.
Referenced by CacheVC::handleRead(), and CacheVC::handleReadDone().
Definition at line 427 of file P_CacheVol.h.
Referenced by handle_dir_read(), handle_recover_from_data(), init(), CacheSync::mainEvent(), sync_cache_dir_on_shutdown(), and vol_clear_init().
CryptoHash Vol::hash_id |
Definition at line 421 of file P_CacheVol.h.
Referenced by build_vol_hash_table(), cache_disk_replacement_stability(), and init().
ats_scoped_str Vol::hash_text |
Definition at line 420 of file P_CacheVol.h.
Referenced by aggWriteDone(), db_check(), dir_check(), handle_dir_clear(), handle_dir_read(), handle_header_read(), handle_recover_from_data(), CacheVC::handleReadDone(), init(), CacheSync::mainEvent(), ShowCacheInternal::showVolVolumes(), sync_cache_dir_on_shutdown(), and vol_dir_clear().
Definition at line 426 of file P_CacheVol.h.
Referenced by agg_copy(), agg_wrap(), aggWrite(), aggWriteDone(), cache_bytes_used(), Cache_dir(), CacheProcessor::cacheInitialized(), db_check(), dir_delete_entry(), dir_free_entry(), dir_freelist_length(), dir_init_segment(), dir_insert(), dir_overwrite(), evacuate_cleanup(), evacuate_cleanup_blocks(), freelist_clean(), freelist_pop(), handle_dir_read(), handle_recover_from_data(), handle_recover_write_dir(), CacheVC::handleRead(), increment_generation(), init(), CacheSync::mainEvent(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), periodic_scan(), scan_for_pinned_documents(), ShowCacheInternal::showVolVolumes(), sync_cache_dir_on_shutdown(), unlink_from_freelist(), vol_clear_init(), vol_in_phase_agg_buf_valid(), vol_in_phase_valid(), vol_init_dir(), vol_out_of_phase_agg_valid(), vol_out_of_phase_valid(), vol_out_of_phase_write_valid(), and within_hit_evacuate_window().
Definition at line 437 of file P_CacheVol.h.
Referenced by init(), CacheSync::mainEvent(), sync_cache_dir_on_shutdown(), and within_hit_evacuate_window().
Definition at line 456 of file P_CacheVol.h.
Referenced by handle_header_read(), handle_recover_from_data(), handle_recover_write_dir(), and init().
Definition at line 438 of file P_CacheVol.h.
Referenced by aggWrite(), aggWriteDone(), clear_dir(), evac_range(), handle_header_read(), handle_recover_from_data(), handle_recover_write_dir(), is_io_in_progress(), and set_io_not_in_progress().
uint32_t Vol::last_sync_serial |
Definition at line 461 of file P_CacheVol.h.
Referenced by handle_recover_from_data().
uint32_t Vol::last_write_serial |
Definition at line 462 of file P_CacheVol.h.
Referenced by handle_recover_from_data().
off_t Vol::len |
Definition at line 435 of file P_CacheVol.h.
Referenced by agg_copy(), aggWrite(), build_vol_hash_table(), cache_bytes_used(), cache_disk_replacement_stability(), CacheProcessor::cacheInitialized(), db_check(), dir_insert(), dir_overwrite(), evac_range(), evacuateWrite(), handle_recover_from_data(), CacheVC::handleRead(), init(), CacheProcessor::mark_storage_offline(), periodic_scan(), scan_for_pinned_documents(), CacheVC::scanObject(), ShowCacheInternal::showVolEvacuations(), ShowCacheInternal::showVolVolumes(), vol_init_data_internal(), and vol_relative_length().
DLL<EvacuationBlock> Vol::lookaside[LOOKASIDE_SIZE] |
Definition at line 453 of file P_CacheVol.h.
Referenced by dir_lookaside_cleanup(), dir_lookaside_fixup(), dir_lookaside_insert(), dir_lookaside_probe(), and dir_lookaside_remove().
Definition at line 449 of file P_CacheVol.h.
Referenced by close_write(), open_read(), open_write(), and Vol().
char* Vol::path |
Definition at line 419 of file P_CacheVol.h.
Referenced by freelist_clean(), ShowCache::handleCacheEvent(), CacheVC::handleReadDone(), and init().
off_t Vol::prev_recover_pos |
Definition at line 431 of file P_CacheVol.h.
Referenced by handle_recover_from_data(), and init().
Definition at line 450 of file P_CacheVol.h.
Referenced by CacheProcessor::cacheInitialized(), dir_lookaside_fixup(), CacheVC::evacuateDocDone(), CacheVC::handleRead(), and CacheVC::handleReadDone().
char* Vol::raw_dir |
Definition at line 424 of file P_CacheVol.h.
Referenced by clear_dir(), handle_header_read(), handle_recover_from_data(), init(), CacheSync::mainEvent(), sync_cache_dir_on_shutdown(), vol_clear_init(), and vol_dir_clear().
off_t Vol::recover_pos |
Definition at line 430 of file P_CacheVol.h.
Referenced by handle_recover_from_data().
bool Vol::recover_wrapped |
Definition at line 464 of file P_CacheVol.h.
Referenced by handle_recover_from_data().
off_t Vol::scan_pos |
Definition at line 432 of file P_CacheVol.h.
Referenced by aggWriteDone(), handle_recover_write_dir(), periodic_scan(), and vol_clear_init().
uint32_t Vol::sector_size |
Definition at line 463 of file P_CacheVol.h.
Referenced by handle_dir_read(), CacheVC::handleReadDone(), and vol_clear_init().
int Vol::segments |
Definition at line 428 of file P_CacheVol.h.
Referenced by Cache_dir(), CacheProcessor::cacheInitialized(), check_dir(), dir_check(), dir_clean_vol(), dir_clear_range(), dir_delete(), dir_entries_used(), dir_insert(), dir_overwrite(), dir_probe(), make_vol_map(), CacheProcessor::mark_storage_offline(), ShowCacheInternal::showVolVolumes(), vol_direntries(), vol_dirlen(), vol_headerlen(), vol_init_data_internal(), and vol_init_dir().
off_t Vol::skip |
Definition at line 433 of file P_CacheVol.h.
Referenced by agg_copy(), aggWrite(), clear_dir(), db_check(), dir_insert(), dir_overwrite(), evac_range(), handle_dir_clear(), handle_header_read(), handle_recover_from_data(), CacheVC::handleRead(), init(), CacheSync::mainEvent(), scan_for_pinned_documents(), CacheVC::scanObject(), ShowCacheInternal::showVolEvacuations(), ShowCacheInternal::showVolVolumes(), sync_cache_dir_on_shutdown(), vol_dir_clear(), vol_init_data_internal(), and vol_relative_length().
off_t Vol::start |
Definition at line 434 of file P_CacheVol.h.
Referenced by agg_wrap(), aggWrite(), aggWriteDone(), cache_bytes_used(), evacuate_cleanup(), handle_recover_from_data(), init(), offset_to_vol_offset(), periodic_scan(), ShowCacheInternal::showVolEvacuations(), ShowCacheInternal::showVolVolumes(), vol_clear_init(), vol_in_phase_valid(), vol_init_data_internal(), vol_offset(), vol_offset_to_offset(), vol_out_of_phase_agg_valid(), vol_out_of_phase_valid(), vol_out_of_phase_write_valid(), and within_hit_evacuate_window().
Queue<CacheVC, Continuation::Link_link> Vol::stat_cache_vcs |
Definition at line 441 of file P_CacheVol.h.
Referenced by begin_read(), close_read(), close_write(), and open_write().
Definition at line 442 of file P_CacheVol.h.
Referenced by aggWrite(), aggWriteDone(), and CacheSync::mainEvent().
Definition at line 447 of file P_CacheVol.h.
Referenced by cancel_trigger().
Definition at line 467 of file P_CacheVol.h.