Implementation of file based on buffered writes and block remapping via a translation layer. More...
#include <wbtl_file.h>


Public Member Functions | |
| wbtl_file (file *backend_file, size_type write_buffer_size, int write_buffers=2, int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR) | |
| constructs file object | |
| offset_type | size () |
| Returns size of the file. | |
| void | set_size (offset_type newsize) |
| void | lock () |
| Locks file for reading and writing (acquires a lock in the file system). | |
| void | serve (const request *req) throw (io_error) |
| void | discard (offset_type offset, offset_type size) |
| const char * | io_type () const |
| Identifies the type of I/O implementation. | |
Protected Member Functions | |
| void | sread (void *buffer, offset_type offset, size_type bytes) |
| void | swrite (void *buffer, offset_type offset, size_type bytes) |
| offset_type | get_next_write_block () |
| void | check_corruption (offset_type region_pos, offset_type region_size, sortseq::iterator pred, sortseq::iterator succ) |
Implementation of file based on buffered writes and block remapping via a translation layer.
| wbtl_file::wbtl_file | ( | file * | backend_file, | |
| size_type | write_buffer_size, | |||
| int | write_buffers = 2, |
|||
| int | queue_id = DEFAULT_QUEUE, |
|||
| int | allocator_id = NO_ALLOCATOR | |||
| ) |
constructs file object
| backend_file | file object used as storage backend, will be deleted in ~wbtl_file() | |
| disk | disk(file) identifier |
| const char* wbtl_file::io_type | ( | ) | const [virtual] |
Identifies the type of I/O implementation.
Reimplemented from file.
| void wbtl_file::lock | ( | ) | [virtual] |
Locks file for reading and writing (acquires a lock in the file system).
Implements file.
| offset_type wbtl_file::size | ( | ) | [virtual] |
1.7.1