Holds information on a TSFS instance. More...
#include <tsfs.h>

Data Fields | |
| enum status_code | status |
| Current state of file system, for valid states see enum tsfs_status. | |
| struct tsfs_header | header |
| TSFS header data. | |
| struct tsfs_filetable_entry | filetable [TSFS_MAX_FILES] |
| Table over all files present in file system. V1 max is 31 files. | |
| struct block_device * | bdev |
| Pointer to file system's associated block device. | |
| struct block_request * | current_breq |
| Current block issued request. | |
| uint8_t * | buffer_data |
| Buffer to hold block page cache. | |
| struct buffer | buffer |
| Block buffer metadata. | |
| block_addr_t | lba_in_buf |
| Number of block-page currently in the tsfs::buffer. | |
| struct tsfs_read_request | current_read_request |
| Read request currently being handled. | |
| void(* | page_read_callback )(struct tsfs *tsfs) |
| Internal callback when block device completes a read operation. | |
Holds information on a TSFS instance.
Definition at line 153 of file tsfs.h.
| struct block_device* tsfs::bdev |
Pointer to file system's associated block device.
Definition at line 168 of file tsfs.h.
Referenced by tsfs_init(), and tsfs_is_ready().
| struct buffer tsfs::buffer |
| struct block_request* tsfs::current_breq |
Current block issued request.
Definition at line 171 of file tsfs.h.
Referenced by tsfs_read_page_done().
Read request currently being handled.
Definition at line 183 of file tsfs.h.
Referenced by tsfs_init(), and tsfs_read().
| struct tsfs_filetable_entry tsfs::filetable[TSFS_MAX_FILES] |
| struct tsfs_header tsfs::header |
TSFS header data.
Definition at line 157 of file tsfs.h.
Referenced by tsfs_nr_files(), tsfs_open(), and tsfs_volume_size().
Number of block-page currently in the tsfs::buffer.
Definition at line 180 of file tsfs.h.
Referenced by tsfs_read().
| void(* tsfs::page_read_callback)(struct tsfs *tsfs) |
Internal callback when block device completes a read operation.
Definition at line 186 of file tsfs.h.
Referenced by tsfs_read_page_done().
| enum status_code tsfs::status |
Current state of file system, for valid states see enum tsfs_status.
Definition at line 155 of file tsfs.h.
Referenced by tsfs_init(), tsfs_is_ready(), and tsfs_read().
1.6.3