#include <P_CacheDir.h>
Inherits Continuation.
Public Member Functions | |
int | mainEvent (int event, Event *e) |
void | aio_write (int fd, char *b, int n, off_t o) |
CacheSync () | |
Data Fields | |
int | vol |
char * | buf |
size_t | buflen |
off_t | writepos |
AIOCallbackInternal | io |
Event * | trigger |
Definition at line 298 of file P_CacheDir.h.
CacheSync::CacheSync | ( | ) | [inline] |
Definition at line 309 of file P_CacheDir.h.
References mainEvent(), and SET_HANDLER.
void CacheSync::aio_write | ( | int | fd, | |
char * | b, | |||
int | n, | |||
off_t | o | |||
) |
Definition at line 959 of file CacheDir.cc.
References AIOCallback::action, ink_aiocb::aio_buf, ink_aiocb::aio_fildes, ink_aiocb::aio_nbytes, ink_aiocb::aio_offset, AIOCallback::aiocb, ink_aio_write(), ink_assert, io, and AIOCallback::thread.
Referenced by mainEvent().
int CacheSync::mainEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 1109 of file CacheDir.cc.
References Vol::agg_buf_pos, Vol::aggWrite(), AIO_EVENT_DONE, ink_aiocb::aio_nbytes, AIOCallback::aio_result, aio_write(), AIOCallback::aiocb, ats_memalign(), ats_memalign_free(), buf, buflen, cache_config_dir_sync_frequency, cache_config_hit_evacuate_percent, cache_config_mutex_retry_delay, CACHE_TRY_LOCK, Action::cancel_action(), CHECK_DIR, Vol::data_blocks, Debug, Vol::dir_sync_in_progress, Vol::dir_sync_waiting, VolHeaderFooter::dirty, Vol::disk, DISK_BAD, Event::ethread, EVENT_IMMEDIATE, EVENT_INTERVAL, eventProcessor, Vol::fd, Vol::footer, gnvol, gvol, Vol::hash_text, Vol::header, Vol::hit_evacuate_window, HRTIME_MSECONDS, HRTIME_SECONDS, ink_assert, io, Vol::is_io_in_progress(), memcpy, Continuation::mutex, Vol::raw_dir, ROUND_TO_STORE_BLOCK, EventProcessor::schedule_in(), EThread::schedule_in(), Vol::skip, Vol::sync, SYNC_DELAY, VolHeaderFooter::sync_serial, trigger, vol_dirlen(), Warning, VolHeaderFooter::write_pos, and writepos.
Referenced by CacheSync().
char* CacheSync::buf |
Definition at line 301 of file P_CacheDir.h.
Referenced by mainEvent().
size_t CacheSync::buflen |
Definition at line 302 of file P_CacheDir.h.
Referenced by mainEvent().
Definition at line 304 of file P_CacheDir.h.
Referenced by aio_write(), and mainEvent().
Definition at line 305 of file P_CacheDir.h.
Referenced by dir_sync_init(), and mainEvent().
int CacheSync::vol |
Definition at line 300 of file P_CacheDir.h.
off_t CacheSync::writepos |
Definition at line 303 of file P_CacheDir.h.
Referenced by mainEvent().