/third_party/exfatprogs/lib/ |
H A D | exfat_dir.c | 33 struct exfat *exfat = iter->exfat; in write_block() local 38 device_offset = exfat_c2o(exfat, desc->p_clus) + desc->offset; in write_block() 42 if (exfat_write(exfat->blk_dev->dev_fd, in write_block() 57 struct exfat *exfat = iter->exfat; in read_ahead_first_blocks() local 61 clus_count = iter->parent->size / exfat->clus_size; in read_ahead_first_blocks() 66 size = exfat in read_ahead_first_blocks() 88 struct exfat *exfat = iter->exfat; read_ahead_next_blocks() local 139 struct exfat *exfat = iter->exfat; read_ahead_next_dir_blocks() local 166 struct exfat *exfat = iter->exfat; read_block() local 221 exfat_de_iter_init(struct exfat_de_iter *iter, struct exfat *exfat, struct exfat_inode *dir, struct buffer_desc *bd) exfat_de_iter_init() argument 351 exfat_lookup_dentry_set(struct exfat *exfat, struct exfat_inode *parent, struct exfat_lookup_filter *filter) exfat_lookup_dentry_set() argument 487 exfat_lookup_file(struct exfat *exfat, struct exfat_inode *parent, const char *name, struct exfat_lookup_filter *filter_out) exfat_lookup_file() argument 539 exfat_calc_name_hash(struct exfat *exfat, __le16 *name, int len) exfat_calc_name_hash() argument 573 exfat_build_file_dentry_set(struct exfat *exfat, const char *name, unsigned short attr, struct exfat_dentry **dentry_set, int *dentry_count) exfat_build_file_dentry_set() argument 637 exfat_update_file_dentry_set(struct exfat *exfat, struct exfat_dentry *dset, int dcount, const char *name, clus_t start_clu, clus_t ccount) exfat_update_file_dentry_set() argument 680 find_free_cluster(struct exfat *exfat, clus_t start, clus_t *new_clu) find_free_cluster() argument 714 exfat_map_cluster(struct exfat *exfat, struct exfat_inode *inode, off_t file_off, clus_t *mapped_clu) exfat_map_cluster() argument 751 exfat_write_dentry_set(struct exfat *exfat, struct exfat_dentry *dset, int dcount, off_t dev_off, off_t *next_dev_off) exfat_write_dentry_set() argument 797 exfat_alloc_cluster(struct exfat *exfat, struct exfat_inode *inode, clus_t *new_clu) exfat_alloc_cluster() argument 869 exfat_add_dentry_set(struct exfat *exfat, struct exfat_dentry_loc *loc, struct exfat_dentry *dset, int dcount, bool need_next_loc) exfat_add_dentry_set() argument 901 exfat_create_file(struct exfat *exfat, struct exfat_inode *parent, const char *name, unsigned short attr) exfat_create_file() argument [all...] |
H A D | exfat_fs.c | 92 void exfat_free_dir_list(struct exfat *exfat) in exfat_free_dir_list() argument 96 list_for_each_entry_safe(dir, i, &exfat->dir_list, list) { in exfat_free_dir_list() 105 void exfat_free_exfat(struct exfat *exfat) in exfat_free_exfat() argument 107 if (exfat) { in exfat_free_exfat() 108 if (exfat->bs) in exfat_free_exfat() 109 free(exfat->bs); in exfat_free_exfat() 110 if (exfat->alloc_bitmap) in exfat_free_exfat() 111 free(exfat in exfat_free_exfat() 128 struct exfat *exfat; exfat_alloc_exfat() local [all...] |
H A D | libexfat.c | 27 void exfat_bitmap_set_range(struct exfat *exfat, char *bitmap, in exfat_bitmap_set_range() argument 32 if (!exfat_heap_clus(exfat, start_clus) || in exfat_bitmap_set_range() 33 !exfat_heap_clus(exfat, start_clus + count - 1)) in exfat_bitmap_set_range() 43 static int exfat_bitmap_find_bit(struct exfat *exfat, char *bmap, in exfat_bitmap_find_bit() argument 49 last_clu = le32_to_cpu(exfat->bs->bsx.clu_count) + in exfat_bitmap_find_bit() 61 int exfat_bitmap_find_zero(struct exfat *exfat, char *bmap, in exfat_bitmap_find_zero() argument 64 return exfat_bitmap_find_bit(exfat, bma in exfat_bitmap_find_zero() 68 exfat_bitmap_find_one(struct exfat *exfat, char *bmap, clus_t start_clu, clus_t *next) exfat_bitmap_find_one() argument 407 exfat_read_volume_label(struct exfat *exfat) exfat_read_volume_label() argument 446 exfat_set_volume_label(struct exfat *exfat, char *label_input) exfat_set_volume_label() argument 695 exfat_get_next_clus(struct exfat *exfat, clus_t clus, clus_t *next) exfat_get_next_clus() argument 715 exfat_get_inode_next_clus(struct exfat *exfat, struct exfat_inode *node, clus_t clus, clus_t *next) exfat_get_inode_next_clus() argument 730 exfat_set_fat(struct exfat *exfat, clus_t clus, clus_t next_clus) exfat_set_fat() argument 744 exfat_s2o(struct exfat *exfat, off_t sect) exfat_s2o() argument 749 exfat_c2o(struct exfat *exfat, unsigned int clus) exfat_c2o() argument 759 exfat_o2c(struct exfat *exfat, off_t device_offset, unsigned int *clu, unsigned int *offset) exfat_o2c() argument 776 exfat_heap_clus(struct exfat *exfat, clus_t clus) exfat_heap_clus() argument 782 exfat_root_clus_count(struct exfat *exfat) exfat_root_clus_count() argument [all...] |
/third_party/exfatprogs/exfat2img/ |
H A D | exfat2img.c | 54 struct exfat *exfat; member 99 if (ei->exfat) in free_exfat2img() 100 exfat_free_exfat(ei->exfat); in free_exfat2img() 117 ei->exfat = exfat_alloc_exfat(&ei->bdev, bs); in create_exfat2img() 118 if (!ei->exfat) in create_exfat2img() 122 ei->exfat->clus_size, in create_exfat2img() 123 ei->exfat->sect_size); in create_exfat2img() 130 ei->exfat->clus_size, in create_exfat2img() 131 ei->exfat in create_exfat2img() 162 struct exfat *exfat = ei->exfat; dump_range() local 212 struct exfat *exfat = ei->exfat; dump_sectors() local 224 struct exfat *exfat = ei->exfat; dump_clusters() local 236 struct exfat *exfat = ei->exfat; dump_directory() local 281 struct exfat *exfat = ei->exfat; dump_root() local 367 struct exfat *exfat = ei->exfat; read_bitmap() local 400 struct exfat *exfat = ei->exfat; read_upcase_table() local 426 struct exfat *exfat = ei->exfat; read_children() local 508 struct exfat *exfat = ei->exfat; dump_filesystem() local 557 struct exfat *exfat = ei->exfat; dump_bytes_to_stdout() local 661 struct exfat *exfat = ei->exfat; dump_to_stdout() local 724 struct exfat *exfat = ei->exfat; dump_header() local [all...] |
/third_party/exfatprogs/include/ |
H A D | exfat_dir.h | 11 struct exfat; 17 struct exfat *exfat; member 53 int exfat_de_iter_init(struct exfat_de_iter *iter, struct exfat *exfat, 64 int exfat_lookup_dentry_set(struct exfat *exfat, struct exfat_inode *parent, 66 int exfat_lookup_file(struct exfat *exfat, struct exfat_inode *parent, 69 int exfat_create_file(struct exfat *exfa [all...] |
H A D | libexfat.h | 43 /* Flags for tune.exfat and exfatlabel */ 89 struct exfat; 125 void exfat_bitmap_set_range(struct exfat *exfat, char *bitmap, 127 int exfat_bitmap_find_zero(struct exfat *exfat, char *bmap, 129 int exfat_bitmap_find_one(struct exfat *exfat, char *bmap, 148 int exfat_read_volume_label(struct exfat *exfat); [all...] |
H A D | exfat_fs.h | 32 struct exfat { struct 70 struct exfat *exfat_alloc_exfat(struct exfat_blk_dev *blk_dev, struct pbr *bs); 71 void exfat_free_exfat(struct exfat *exfat); 79 void exfat_free_dir_list(struct exfat *exfat);
|
/third_party/exfatprogs/fsck/ |
H A D | fsck.c | 72 fprintf(stderr, "\t-b | --ignore-bad-fs Try to recover even if exfat is not found\n"); in usage() 108 struct exfat *exfat = de_iter->exfat; in check_clus_chain() local 116 max_count = DIV_ROUND_UP(node->size, exfat->clus_size); in check_clus_chain() 123 (node->size > 0 && !exfat_heap_clus(exfat, node->first_clus))) { in check_clus_chain() 141 count * exfat->clus_size)) in check_clus_chain() 151 if (exfat_bitmap_get(exfat->alloc_bitmap, clus)) { in check_clus_chain() 156 count * exfat->clus_size)) in check_clus_chain() 162 if (!exfat_bitmap_get(exfat in check_clus_chain() 243 root_check_clus_chain(struct exfat *exfat, struct exfat_inode *node, clus_t *clus_count) root_check_clus_chain() argument 344 exfat_mark_volume_dirty(struct exfat *exfat, bool dirty) exfat_mark_volume_dirty() argument 591 struct exfat *exfat = iter->exfat; check_inode() local 961 read_bitmap(struct exfat *exfat) read_bitmap() argument 1035 read_upcase_table(struct exfat *exfat) read_upcase_table() argument 1118 struct exfat *exfat = fsck->exfat; read_children() local 1207 struct exfat *exfat = fsck->exfat; write_bitmap() local 1252 struct exfat *exfat = fsck->exfat; exfat_filesystem_check() local 1292 exfat_root_dir_check(struct exfat *exfat) exfat_root_dir_check() argument 1343 read_lostfound(struct exfat *exfat, struct exfat_inode **lostfound) read_lostfound() argument 1377 struct exfat *exfat = fsck->exfat; rescue_orphan_clusters() local 1479 struct exfat *exfat = fsck->exfat; exfat_show_info() local [all...] |
H A D | fsck.h | 21 struct exfat; 25 struct exfat *exfat; member 33 off_t exfat_c2o(struct exfat *exfat, unsigned int clus);
|
/third_party/exfatprogs/tune/ |
H A D | tune.c | 20 fprintf(stderr, "Usage: tune.exfat\n"); in usage() 53 struct exfat *exfat = NULL; in main() local 118 exfat = exfat_alloc_exfat(&bd, bs); in main() 119 if (!exfat) { in main() 125 exfat->root = exfat_alloc_inode(ATTR_SUBDIR); in main() 126 if (!exfat->root) { in main() 131 exfat->root->first_clus = le32_to_cpu(exfat->bs->bsx.root_cluster); in main() 132 if (exfat_root_clus_count(exfat)) { in main() [all...] |
/third_party/exfatprogs/label/ |
H A D | label.c | 99 struct exfat *exfat; in main() local 106 exfat = exfat_alloc_exfat(&bd, bs); in main() 107 if (!exfat) { in main() 113 exfat->root = exfat_alloc_inode(ATTR_SUBDIR); in main() 114 if (!exfat->root) { in main() 119 exfat->root->first_clus = le32_to_cpu(exfat->bs->bsx.root_cluster); in main() 120 if (exfat_root_clus_count(exfat)) { in main() 122 exfat_free_inode(exfat in main() [all...] |
/third_party/exfatprogs/tests/ |
H A D | test_fsck.sh | 5 IMAGE_FILE=exfat.img 6 FSCK_PROG=fsck.exfat 7 FSCK_PROG_2=fsck.exfat
|