Lines Matching refs:exfat_fsck
46 struct exfat_fsck exfat_fsck; variable
98 exfat_repair_ask(&exfat_fsck, code, \
257 if (exfat_repair_ask(&exfat_fsck, in root_check_clus_chain()
272 if (exfat_repair_ask(&exfat_fsck, in root_check_clus_chain()
528 exfat_repair_ask(&exfat_fsck, ER_BS_BOOT_REGION, in exfat_boot_region_check()
765 num = exfat_repair_ask(&exfat_fsck, ER_DE_DOT_NAME, in handle_dot_dotdot_filename()
1116 static int read_children(struct exfat_fsck *fsck, struct exfat_inode *dir) in read_children()
1205 static int write_bitmap(struct exfat_fsck *fsck) in write_bitmap()
1250 static int exfat_filesystem_check(struct exfat_fsck *fsck) in exfat_filesystem_check()
1375 static int rescue_orphan_clusters(struct exfat_fsck *fsck) in rescue_orphan_clusters()
1477 static void exfat_show_info(struct exfat_fsck *fsck, const char *dev_name) in exfat_show_info()
1576 exfat_fsck.options = ui.options; in main()
1591 exfat_fsck.exfat = exfat_alloc_exfat(&bd, bs); in main()
1592 if (!exfat_fsck.exfat) { in main()
1597 exfat_fsck.buffer_desc = exfat_alloc_buffer(2, in main()
1598 exfat_fsck.exfat->clus_size, in main()
1599 exfat_fsck.exfat->sect_size); in main()
1600 if (!exfat_fsck.buffer_desc) { in main()
1605 if ((exfat_fsck.options & FSCK_OPTS_REPAIR_WRITE) && in main()
1606 exfat_mark_volume_dirty(exfat_fsck.exfat, true)) { in main()
1612 ret = exfat_root_dir_check(exfat_fsck.exfat); in main()
1618 if (exfat_fsck.options & FSCK_OPTS_RESCUE_CLUS) { in main()
1619 ret = exfat_create_file(exfat_fsck.exfat, in main()
1620 exfat_fsck.exfat->root, in main()
1628 if (fsync(exfat_fsck.exfat->blk_dev->dev_fd) != 0) { in main()
1636 ret = exfat_filesystem_check(&exfat_fsck); in main()
1640 if (exfat_fsck.options & FSCK_OPTS_RESCUE_CLUS) { in main()
1641 rescue_orphan_clusters(&exfat_fsck); in main()
1642 exfat_fsck.dirty = true; in main()
1643 exfat_fsck.dirty_fat = true; in main()
1646 if (exfat_fsck.options & FSCK_OPTS_REPAIR_WRITE) { in main()
1647 ret = write_bitmap(&exfat_fsck); in main()
1659 if (exfat_fsck.options & FSCK_OPTS_REPAIR_WRITE) in main()
1660 exfat_mark_volume_dirty(exfat_fsck.exfat, false); in main()
1663 exfat_show_info(&exfat_fsck, ui.ei.dev_name); in main()
1670 else if (exfat_fsck.dirty) in main()
1675 if (exfat_fsck.buffer_desc) in main()
1676 exfat_free_buffer(exfat_fsck.buffer_desc, 2); in main()
1677 if (exfat_fsck.exfat) in main()
1678 exfat_free_exfat(exfat_fsck.exfat); in main()