#include <DiskFile.h>
Classes | |
class | Config |
generally useful configuration options supported by some children More... | |
Public Types | |
typedef RefCount< DiskFile > | Pointer |
Public Member Functions | |
virtual void | configure (const Config &) |
notes supported configuration options; kids must call this first More... | |
virtual void | open (int flags, mode_t mode, RefCount< IORequestor > callback)=0 |
virtual void | create (int flags, mode_t mode, RefCount< IORequestor > callback)=0 |
virtual void | read (ReadRequest *)=0 |
virtual void | write (WriteRequest *)=0 |
virtual void | close ()=0 |
virtual bool | canRead () const =0 |
virtual bool | canWrite () const |
virtual int | getFD () const |
virtual bool | error () const =0 |
virtual bool | ioInProgress () const =0 |
Detailed Description
Definition at line 21 of file DiskFile.h.
Member Typedef Documentation
◆ Pointer
typedef RefCount<DiskFile> DiskFile::Pointer |
Definition at line 39 of file DiskFile.h.
Member Function Documentation
◆ canRead()
|
pure virtual |
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
◆ canWrite()
|
inlinevirtual |
Reimplemented in DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
Definition at line 50 of file DiskFile.h.
◆ close()
|
pure virtual |
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
◆ configure()
|
inlinevirtual |
Reimplemented in IpcIoFile.
Definition at line 42 of file DiskFile.h.
Referenced by IpcIoFile::configure().
◆ create()
|
pure virtual |
Implemented in DiskdFile, BlockingFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
Referenced by Fs::Ufs::UFSStrategy::create().
◆ error()
|
pure virtual |
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
Referenced by Fs::Ufs::UFSStrategy::create(), Fs::Ufs::UFSStoreState::ioCompletedNotification(), and Fs::Ufs::UFSStrategy::open().
◆ getFD()
|
inlinevirtual |
During migration only
Reimplemented in BlockingFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
Definition at line 53 of file DiskFile.h.
◆ ioInProgress()
|
pure virtual |
Inform callers if there is IO in progress
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
◆ open()
|
pure virtual |
Implemented in DiskdFile, BlockingFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
Referenced by Fs::Ufs::UFSStrategy::open().
◆ read()
|
pure virtual |
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
◆ write()
|
pure virtual |
Implemented in BlockingFile, DiskdFile, DiskThreadsDiskFile, IpcIoFile, and MmappedFile.
The documentation for this class was generated from the following file:
- src/DiskIO/DiskFile.h