#include <fat.hpp>
Metody publiczne | |
fat_t () | |
void | init () |
fat_t (char *ph) | |
void | init (char *ph) |
~fat_t () | |
void | done () |
void | inval () |
int | verify () |
int | fat_rawrw (uint32 sector, char *ch, uint32 count, uint32 read_write) |
int | cluster_rw (uint32 block, char *ch, uint32 count, uint32 read_write) |
int | rootdir_rw (char *ch, uint32 read_write) |
uint32 | clus2sect (uint32 cluster) |
uint32 | free_clusters () |
uint32 | next_free () |
uint32 | verify_boot_sector (uint32 block) |
uint32 | get_active_table () |
uint32 | read_next_clust (uint32 table, uint32 cluster) |
int | write_next_clust (uint32 table, uint32 cluster, uint32 val) |
uint32 | cluster_no (uint32 table, uint32 first, uint32 n) |
int | isEOF (uint32 val) |
uint32 | chain_length (uint32 first) |
int | read_chain (uint32 first, uint32 count, char *buff) |
int | lfn_parse_dir (char *cluster_buffer, uint32 clus, dirent *ent, uint32 *entry) |
int | valid_lfn (fatdirent_t *ent) |
int | valid_sfn (fatdirent_t *ent) |
int | sfn2name (char *raw, char *buff) |
int | lfn2name (fatdirent_t *first, uint32 count, char *buff) |
int | find_entry (char *name, struct dirent *ent) |
int | get_file (char *name, char *buffer, uint32 clus, dirent *ent) |
int | write (struct file_handle_t *file, char *buff, int nbytes) |
int | readdir (struct file_handle_t *file, struct dirent *entry, int count) |
int | open (struct file_handle_t *file) |
int | close (struct file_handle_t *file) |
Atrybuty publiczne | |
char * | path |
uint32 | source |
int | valid |
uint32 | sector_size |
uint32 | cluster_size |
uint32 | FirstDataSector |
uint32 | RootDirSectors |
uint32 | FATSz |
uint32 | TotSec |
uint32 | DataSec |
uint32 | CountofClusters |
uint32 | SecPerClus |
uint32 | FirstRootDirSecNum |
uint32 | ResvdSecCnt |
uint32 | active_fat |
uint32 | fat_type |
Definicja w linii 137 pliku fat.hpp.
void fat_t::init | ( | ) |
void fat_t::init | ( | char * | ph | ) |
void fat_t::done | ( | ) |
void fat_t::inval | ( | ) |
Definicja w linii 191 pliku fat.cpp.
Odwołuje się do active_fat, cluster_size, CountofClusters, DataSec, fat_type, FirstDataSector, FirstRootDirSecNum, NULL, path, ResvdSecCnt, RootDirSectors, SecPerClus, sector_size, source, TotSec i valid.
int fat_t::verify | ( | ) |
Definicja w linii 213 pliku fat.cpp.
Odwołuje się do active_fat, clus2sect(), cluster_size, CountofClusters, DataSec, EINVAL, ESUCCESS, FAT_FAT12, FAT_FAT16, FAT_FAT32, fat_type, FATSz, FirstDataSector, FirstRootDirSecNum, fs_lseek, fs_read(), Thread::i, ResvdSecCnt, RootDirSectors, SecPerClus, sector_size, SEEK_SET, source i TotSec.
Odwołania w init().
Definicja w linii 301 pliku fat.cpp.
Odwołuje się do block_read(), EINVAL, FAT_READ, FAT_WRITE, Thread::i, sector_size i source.
Odwołania w cluster_rw(), read_next_clust(), rootdir_rw() i write_next_clust().
Definicja w linii 321 pliku fat.cpp.
Odwołuje się do fat_rawrw(), FirstDataSector i SecPerClus.
Odwołania w read_chain().
int fat_t::rootdir_rw | ( | char * | ch, | |
uint32 | read_write | |||
) |
Definicja w linii 331 pliku fat.cpp.
Odwołuje się do fat_rawrw(), FirstRootDirSecNum i RootDirSectors.
Odwołania w readdir().
Definicja w linii 341 pliku fat.cpp.
Odwołuje się do FirstDataSector i SecPerClus.
Odwołania w verify().
uint32 fat_t::free_clusters | ( | ) |
uint32 fat_t::next_free | ( | ) |
uint32 fat_t::get_active_table | ( | ) |
Definicja w linii 349 pliku fat.cpp.
Odwołuje się do DEF_ERROR, FAT_FAT12, FAT_FAT16, FAT_FAT32, fat_rawrw(), FAT_READ, fat_type, FATSz, Thread::i, kfree, kmalloc, ResvdSecCnt i sector_size.
Odwołania w chain_length(), cluster_no() i read_chain().
int fat_t::isEOF | ( | uint32 | val | ) |
Definicja w linii 516 pliku fat.cpp.
Odwołuje się do FAT_FAT12, FAT_FAT16, FAT_FAT32 i fat_type.
Odwołania w chain_length(), cluster_no() i read_chain().
Definicja w linii 533 pliku fat.cpp.
Odwołuje się do active_fat, ESUCCESS, Thread::i, isEOF() i read_next_clust().
Odwołania w lfn_parse_dir().
Definicja w linii 550 pliku fat.cpp.
Odwołuje się do active_fat, cluster_rw(), cluster_size, EINVAL, ESUCCESS, FAT_READ, Thread::i, isEOF() i read_next_clust().
Definicja w linii 581 pliku fat.cpp.
Odwołuje się do dirent::block, chain_length(), cluster_size, DEF_ERROR, EINVAL, ENOTFOUND, dirent::entry_in_dir, ESKIP, ESUCCESS, FA_DIR, FA_RO, FAT_ATTR_DIR, FAT_ATTR_RO, fat_type, dirent::flags, Thread::i, lfn2name(), dirent::name, NULL, dirent::parent, dirent::resvd, sfn2name(), dirent::size, valid_lfn() i valid_sfn().
int fat_t::valid_lfn | ( | fatdirent_t * | ent | ) |
Definicja w linii 667 pliku fat.cpp.
Odwołuje się do EINVAL, ESUCCESS, FAT_ATTR_LFN i NULL.
Odwołania w lfn_parse_dir().
int fat_t::valid_sfn | ( | fatdirent_t * | ent | ) |
Definicja w linii 684 pliku fat.cpp.
Odwołuje się do EINVAL, ENOTFOUND, ESKIP, ESUCCESS, FAT_ATTR_VOLUME, FAT_DIRENT_ALL_FREE, FAT_DIRENT_FREE, FAT_DIRENT_FREE2 i NULL.
Odwołania w lfn_parse_dir().
int fat_t::sfn2name | ( | char * | raw, | |
char * | buff | |||
) |
Definicja w linii 711 pliku fat.cpp.
Odwołuje się do ESUCCESS, FAT_DIRENT_PAD i Thread::i.
Odwołania w lfn_parse_dir().
int fat_t::lfn2name | ( | fatdirent_t * | first, | |
uint32 | count, | |||
char * | buff | |||
) |
Definicja w linii 732 pliku fat.cpp.
Odwołuje się do ESUCCESS i Thread::i.
Odwołania w lfn_parse_dir().
int fat_t::find_entry | ( | char * | name, | |
struct dirent * | ent | |||
) |
Definicja w linii 760 pliku fat.cpp.
Odwołuje się do EINVAL, ESUCCESS, FA_DIR, fat_type, NULL, RootDirSectors i sector_size.
Odwołania w open().
int fat_t::write | ( | struct file_handle_t * | file, | |
char * | buff, | |||
int | nbytes | |||
) |
int fat_t::readdir | ( | struct file_handle_t * | file, | |
struct dirent * | entry, | |||
int | count | |||
) |
int fat_t::open | ( | struct file_handle_t * | file | ) |
char* fat_t::path |
int fat_t::valid |
Definicja w linii 144 pliku fat.hpp.
Odwołania w fat_rawrw(), find_entry(), inval(), read_next_clust(), verify() i write_next_clust().
Definicja w linii 152 pliku fat.hpp.
Odwołania w inval(), read_next_clust(), verify() i write_next_clust().
Definicja w linii 155 pliku fat.hpp.
Odwołania w find_entry(), get_file(), inval(), isEOF(), lfn_parse_dir(), open(), read_next_clust(), verify() i write_next_clust().