DiskThreadsDiskFile.cc
Go to the documentation of this file.
88 file_read(fd, request->buf, request->len, request->offset, ReadDone, new IoResult<ReadRequest>(this, request));
131DiskThreadsDiskFile::OpenDone(int fd, void *cbdata, const char *buf, int aio_return, int aio_errno)
184 debugs(79, 3, "DiskThreadsDiskFile::close: " << this << " closing for " << ioRequestor.getRaw());
212 aioWrite(fd, writeRequest->offset, (char *)writeRequest->buf, writeRequest->len, WriteDone, new IoResult<WriteRequest>(this, writeRequest),
216 file_write(fd, writeRequest->offset, (char *)writeRequest->buf, writeRequest->len, WriteDone, new IoResult<WriteRequest>(this, writeRequest),
250DiskThreadsDiskFile::readDone(int rvfd, const char *buf, int len, int errflag, RefCount<ReadRequest> request)
300DiskThreadsDiskFile::writeDone(int rvfd, int errflag, size_t len, RefCount<WriteRequest> request)
315 debugs(79, 3, "DiskThreadsDiskFile::writeDone: FD " << fd << ", len " << len << ", err=" << errflag);
CBDATA_CLASS_INIT(DiskThreadsDiskFile)
void aioOpen(const char *path, int oflag, mode_t mode, AIOCB *callback, void *callback_data)
Definition: async_io.cc:29
void aioRead(int fd, off_t offset, size_t len, AIOCB *callback, void *callback_data)
Definition: async_io.cc:135
void aioWrite(int fd, off_t offset, char *bufp, size_t len, AIOCB *callback, void *callback_data, FREE *free_func)
Definition: async_io.cc:107
Definition: DiskThreadsDiskFile.h:20
void openDone(int fd, const char *buf, int aio_return, int aio_errno)
Definition: DiskThreadsDiskFile.cc:138
bool ioInProgress() const override
Definition: DiskThreadsDiskFile.cc:228
void create(int flags, mode_t mode, RefCount< IORequestor > callback) override
Definition: DiskThreadsDiskFile.cc:93
void writeDone(int fd, int errflag, size_t len, RefCount< WriteRequest > request)
Definition: DiskThreadsDiskFile.cc:300
~DiskThreadsDiskFile() override
Definition: DiskThreadsDiskFile.cc:37
void open(int flags, mode_t mode, RefCount< IORequestor > callback) override
Definition: DiskThreadsDiskFile.cc:44
DiskThreadsDiskFile(char const *path)
Definition: DiskThreadsDiskFile.cc:30
void readDone(int fd, const char *buf, int len, int errflag, RefCount< ReadRequest > request)
Definition: DiskThreadsDiskFile.cc:250
RefCount< IORequestor > ioRequestor
Definition: DiskThreadsDiskFile.h:60
virtual void closeCompleted()=0
virtual void readCompleted(const char *buf, int len, int errflag, RefCount< ReadRequest >)=0
virtual void ioCompletedNotification()=0
virtual void writeCompleted(int errflag, size_t len, RefCount< WriteRequest >)=0
Definition: DiskThreadsDiskFile.h:71
Definition: ReadRequest.h:16
struct StatCounters::@130 syscalls
struct StatCounters::@130::@134 disk
Definition: WriteRequest.h:17
Definition: cbdata.cc:38
void file_read(int fd, char *buf, int req_len, off_t offset, DRCB *handler, void *client_data)
Definition: fs_io.cc:453
void file_write(int fd, off_t file_offset, void const *ptr_to_buf, int len, DWCB *handle, void *handle_data, FREE *free_func)
Definition: fs_io.cc:326
int Opening_FD
int store_open_disk_fd