/third_party/exfatprogs/lib/ |
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->clus_size; in read_ahead_first_blocks() 72 return posix_fadvise(exfat->blk_dev->dev_fd, in read_ahead_first_blocks() 73 exfat_c2o(exfat, iter->parent->first_clus), size, in read_ahead_first_blocks() 88 struct exfat *exfat = iter->exfat; in read_ahead_next_blocks() local 94 clus_count = iter->parent->size / exfat->clus_size; in read_ahead_next_blocks() [all …]
|
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->alloc_bitmap); in exfat_free_exfat() 112 if (exfat->disk_bitmap) in exfat_free_exfat() 113 free(exfat->disk_bitmap); in exfat_free_exfat() [all …]
|
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, bmap, in exfat_bitmap_find_zero() 68 int exfat_bitmap_find_one(struct exfat *exfat, char *bmap, in exfat_bitmap_find_one() argument 71 return exfat_bitmap_find_bit(exfat, bmap, in exfat_bitmap_find_one() 407 int exfat_read_volume_label(struct exfat *exfat) in exfat_read_volume_label() argument [all …]
|
/third_party/exfatprogs/exfat2img/ |
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->sect_size); in create_exfat2img() 162 struct exfat *exfat = ei->exfat; in dump_range() local [all …]
|
/third_party/exfatprogs/fsck/ |
D | fsck.c | 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->disk_bitmap, clus)) { in check_clus_chain() 171 if (exfat_get_inode_next_clus(exfat, node, clus, &next)) in check_clus_chain() 178 count * exfat->clus_size)) in check_clus_chain() 184 !exfat_heap_clus(exfat, next)) { in check_clus_chain() [all …]
|
D | fsck.h | 21 struct exfat; 25 struct exfat *exfat; member 33 off_t exfat_c2o(struct exfat *exfat, unsigned int clus);
|
D | Makefile.am | 4 sbin_PROGRAMS = fsck.exfat
|
/third_party/exfatprogs/include/ |
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 *exfat, struct exfat_inode *parent, 71 int exfat_update_file_dentry_set(struct exfat *exfat, 75 int exfat_build_file_dentry_set(struct exfat *exfat, const char *name, 78 int exfat_add_dentry_set(struct exfat *exfat, struct exfat_dentry_loc *loc, 83 uint16_t exfat_calc_name_hash(struct exfat *exfat,
|
D | libexfat.h | 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); 149 int exfat_set_volume_label(struct exfat *exfat, char *label_input); 162 int exfat_get_next_clus(struct exfat *exfat, clus_t clus, clus_t *next); 163 int exfat_get_inode_next_clus(struct exfat *exfat, struct exfat_inode *node, 165 int exfat_set_fat(struct exfat *exfat, clus_t clus, clus_t next_clus); 166 off_t exfat_s2o(struct exfat *exfat, off_t sect); [all …]
|
D | exfat_fs.h | 32 struct exfat { struct 70 struct exfat *exfat_alloc_exfat(struct exfat_blk_dev *blk_dev, struct pbr *bs); argument 71 void exfat_free_exfat(struct exfat *exfat); 79 void exfat_free_dir_list(struct exfat *exfat);
|
/third_party/exfatprogs/ |
D | NEWS | 5 * fsck.exfat: Keep traveling files even if there is a corrupted 7 * fsck.exfat: Introduce the option "b" to recover a boot sector even 9 * fsck.exfat: Introduce the option "s" to create files in 12 * fsck.exfat: Rename '.' and '..' entry name to the one user want. 15 * fsck.exfat: Repair corruptions of an exFAT filesystem. Please refer 16 to fsck.exfat manpage to see what kind of corruptions can be repaired. 21 * fsck.exfat: Fix an infinite loop while traveling files. 22 * tune.exfat: Fix bitmap entry corruption when adding new volume lablel. 28 * mkfs.exfat: ensure that the cluster size is greater than or 30 * mkfs.exfat: replace lseek() + write() with pwrite(). [all …]
|
D | README.md | 3 As new exfat filesystem is merged into linux-5.7 kernel, exfatprogs is 5 utilities for creating and fixing and debugging exfat filesystem in linux 7 at the level of exfat utilities in windows. And this software is licensed 31 - mkfs.exfat: 32 Build a exfat filesystem on a device or partition(e.g. /dev/hda1, dev/sda1). 36 mkfs.exfat /dev/sda1 38 mkfs.exfat -c 1048576 /dev/sda1 39 mkfs.exfat -c 1024K /dev/sda1 40 mkfs.exfat -c 1M /dev/sda1 42 mkfs.exfat -f /dev/sda1 [all …]
|
D | BUILD.gn | 22 ":fsck.exfat", 23 ":mkfs.exfat", 27 config("exfat-defaults") { 47 configs = [ ":exfat-defaults" ] 64 ##Build mkfs.exfat 65 ohos_executable("mkfs.exfat") { 66 configs = [ ":exfat-defaults" ] 85 ##Build fsck.exfat 86 ohos_executable("fsck.exfat") { 87 configs = [ ":exfat-defaults" ] [all …]
|
D | Makefile.am | 9 manpages/fsck.exfat.8 \ 10 manpages/tune.exfat.8 \ 11 manpages/mkfs.exfat.8 \ 13 manpages/dump.exfat.8 \
|
/third_party/exfatprogs/label/ |
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->root); in main() 129 ret = exfat_read_volume_label(exfat); in main() 131 ret = exfat_set_volume_label(exfat, argv[2]); in main() [all …]
|
/third_party/exfatprogs/tune/ |
D | tune.c | 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() 134 exfat_free_inode(exfat->root); in main() 140 ret = exfat_read_volume_label(exfat); in main() 142 ret = exfat_set_volume_label(exfat, label_input); in main() [all …]
|
D | Makefile.am | 4 sbin_PROGRAMS = tune.exfat
|
/third_party/exfatprogs/tests/ |
D | test_fsck.sh | 5 IMAGE_FILE=exfat.img 6 FSCK_PROG=fsck.exfat 7 FSCK_PROG_2=fsck.exfat
|
/third_party/exfatprogs/dump/ |
D | Makefile.am | 4 sbin_PROGRAMS = dump.exfat
|
/third_party/exfatprogs/mkfs/ |
D | Makefile.am | 4 sbin_PROGRAMS = mkfs.exfat
|
/third_party/ltp/runtest/ |
D | commands | 22 df01_exfat_sh df01.sh -f exfat
|