/external/e2fsprogs/e2fsck/ |
D | e2fsck.h | 193 typedef struct e2fsck_struct *e2fsck_t; typedef 215 int (*progress)(e2fsck_t ctx, int pass, unsigned long cur, 357 extern void e2fsck_pass1(e2fsck_t ctx); 358 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf); 359 extern void e2fsck_pass2(e2fsck_t ctx); 360 extern void e2fsck_pass3(e2fsck_t ctx); 361 extern void e2fsck_pass4(e2fsck_t ctx); 362 extern void e2fsck_pass5(e2fsck_t ctx); 365 extern errcode_t e2fsck_allocate_context(e2fsck_t *ret); 366 extern errcode_t e2fsck_reset_context(e2fsck_t ctx); [all …]
|
D | dirinfo.c | 37 static void e2fsck_put_dir_info(e2fsck_t ctx, struct dir_info *dir); 39 static void setup_tdb(e2fsck_t ctx, ext2_ino_t num_dirs) in setup_tdb() 70 static void setup_db(e2fsck_t ctx) in setup_db() 109 void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent) in e2fsck_add_dir_info() 175 static struct dir_info *e2fsck_get_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dir_info() 256 static void e2fsck_put_dir_info(e2fsck_t ctx, struct dir_info *dir) in e2fsck_put_dir_info() 287 void e2fsck_free_dir_info(e2fsck_t ctx) in e2fsck_free_dir_info() 306 int e2fsck_get_num_dirinfo(e2fsck_t ctx) in e2fsck_get_num_dirinfo() 311 extern struct dir_info_iter *e2fsck_dir_info_iter_begin(e2fsck_t ctx) in e2fsck_dir_info_iter_begin() 326 extern void e2fsck_dir_info_iter_end(e2fsck_t ctx EXT2FS_ATTR((unused)), in e2fsck_dir_info_iter_end() [all …]
|
D | util.c | 34 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */ 39 void fatal_error(e2fsck_t ctx, const char *msg) in fatal_error() 55 void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned int size, in e2fsck_allocate_memory() 73 char *string_copy(e2fsck_t ctx EXT2FS_ATTR((unused)), in string_copy() 189 int ask (e2fsck_t ctx, const char * string, int def) in ask() 206 void e2fsck_read_bitmaps(e2fsck_t ctx) in e2fsck_read_bitmaps() 230 void e2fsck_write_bitmaps(e2fsck_t ctx) in e2fsck_write_bitmaps() 261 void preenhalt(e2fsck_t ctx) in preenhalt() 353 void e2fsck_read_inode(e2fsck_t ctx, unsigned long ino, in e2fsck_read_inode() 366 extern void e2fsck_write_inode_full(e2fsck_t ctx, unsigned long ino, in e2fsck_write_inode_full() [all …]
|
D | pass1b.c | 88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino, 90 static int clone_file(e2fsck_t ctx, ext2_ino_t ino, 92 static int check_if_fs_block(e2fsck_t ctx, blk_t test_blk); 94 static void pass1b(e2fsck_t ctx, char *block_buf); 95 static void pass1c(e2fsck_t ctx, char *block_buf); 96 static void pass1d(e2fsck_t ctx, char *block_buf); 118 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk, in add_dupe() 207 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() 243 e2fsck_t ctx; 250 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() [all …]
|
D | pass1.c | 64 static void check_blocks(e2fsck_t ctx, struct problem_context *pctx, 66 static void mark_table_blocks(e2fsck_t ctx); 67 static void alloc_bb_map(e2fsck_t ctx); 68 static void alloc_imagic_map(e2fsck_t ctx); 69 static void mark_inode_bad(e2fsck_t ctx, ino_t ino); 70 static void handle_fs_bad_blocks(e2fsck_t ctx); 71 static void process_inodes(e2fsck_t ctx, char *block_buf); 75 static void adjust_extattr_refcount(e2fsck_t ctx, ext2_refcount_t refcount, 91 e2fsck_t ctx; 100 e2fsck_t ctx; [all …]
|
D | e2fsck.c | 20 errcode_t e2fsck_allocate_context(e2fsck_t *ret) in e2fsck_allocate_context() 22 e2fsck_t context; in e2fsck_allocate_context() 50 errcode_t e2fsck_reset_context(e2fsck_t ctx) in e2fsck_reset_context() 161 void e2fsck_free_context(e2fsck_t ctx) in e2fsck_free_context() 180 typedef void (*pass_t)(e2fsck_t ctx); 188 int e2fsck_run(e2fsck_t ctx) in e2fsck_run()
|
D | dx_dirinfo.c | 16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) in e2fsck_add_dx_dir() 81 struct dx_dir_info *e2fsck_get_dx_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dx_dir_info() 111 void e2fsck_free_dx_dir_info(e2fsck_t ctx) in e2fsck_free_dx_dir_info() 134 int e2fsck_get_num_dx_dirinfo(e2fsck_t ctx) in e2fsck_get_num_dx_dirinfo() 142 struct dx_dir_info *e2fsck_dx_dir_info_iter(e2fsck_t ctx, int *control) in e2fsck_dx_dir_info_iter()
|
D | pass3.c | 44 static void check_root(e2fsck_t ctx); 45 static int check_directory(e2fsck_t ctx, ext2_ino_t ino, 47 static void fix_dotdot(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent); 52 void e2fsck_pass3(e2fsck_t ctx) in e2fsck_pass3() 154 static void check_root(e2fsck_t ctx) in check_root() 272 static int check_directory(e2fsck_t ctx, ext2_ino_t dir, in check_directory() 367 ext2_ino_t e2fsck_get_lost_and_found(e2fsck_t ctx, int fix) in e2fsck_get_lost_and_found() 513 int e2fsck_reconnect_file(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_reconnect_file() 564 errcode_t e2fsck_adjust_inode_count(e2fsck_t ctx, ext2_ino_t ino, int adj) in e2fsck_adjust_inode_count() 610 e2fsck_t ctx; [all …]
|
D | jfs_user.h | 19 e2fsck_t b_ctx; 29 e2fsck_t i_ctx; 35 e2fsck_t k_ctx; 49 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
|
D | ehandler.c | 33 e2fsck_t ctx; in e2fsck_handle_read_error() 35 ctx = (e2fsck_t) fs->priv_data; in e2fsck_handle_read_error() 79 e2fsck_t ctx; in e2fsck_handle_write_error() 81 ctx = (e2fsck_t) fs->priv_data; in e2fsck_handle_write_error()
|
D | pass5.c | 16 static void check_block_bitmaps(e2fsck_t ctx); 17 static void check_inode_bitmaps(e2fsck_t ctx); 18 static void check_inode_end(e2fsck_t ctx); 19 static void check_block_end(e2fsck_t ctx); 21 void e2fsck_pass5(e2fsck_t ctx) in e2fsck_pass5() 77 static void print_bitmap_problem(e2fsck_t ctx, int problem, in print_bitmap_problem() 111 static void check_block_bitmaps(e2fsck_t ctx) in check_block_bitmaps() 309 static void check_inode_bitmaps(e2fsck_t ctx) in check_inode_bitmaps() 514 static void check_inode_end(e2fsck_t ctx) in check_inode_end() 558 static void check_block_end(e2fsck_t ctx) in check_block_end()
|
D | journal.c | 182 static void e2fsck_clear_recover(e2fsck_t ctx, int error) in e2fsck_clear_recover() 220 static errcode_t e2fsck_get_journal(e2fsck_t ctx, journal_t **ret_journal) in e2fsck_get_journal() 438 static errcode_t e2fsck_journal_fix_bad_inode(e2fsck_t ctx, in e2fsck_journal_fix_bad_inode() 475 e2fsck_t ctx = journal->j_dev->k_ctx; in clear_v2_journal_fields() 491 e2fsck_t ctx = journal->j_dev->k_ctx; in e2fsck_journal_load() 581 static void e2fsck_journal_reset_super(e2fsck_t ctx, journal_superblock_t *jsb, in e2fsck_journal_reset_super() 625 static errcode_t e2fsck_journal_fix_corrupt_super(e2fsck_t ctx, in e2fsck_journal_fix_corrupt_super() 648 static void e2fsck_journal_release(e2fsck_t ctx, journal_t *journal, in e2fsck_journal_release() 683 int e2fsck_check_ext3_journal(e2fsck_t ctx) in e2fsck_check_ext3_journal() 799 static errcode_t recover_ext3_journal(e2fsck_t ctx) in recover_ext3_journal() [all …]
|
D | emptydir.c | 34 extern empty_dir_info init_empty_dir(e2fsck_t ctx); 38 extern void process_empty_dirblock(e2fsck_t ctx, empty_dir_info edi); 41 empty_dir_info init_empty_dir(e2fsck_t ctx) in init_empty_dir() 180 void process_empty_dirblock(e2fsck_t ctx, empty_dir_info edi) in process_empty_dirblock()
|
D | unix.c | 65 e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */ 75 static void usage(e2fsck_t ctx) in usage() 102 static void show_stats(e2fsck_t ctx) in show_stats() 171 static void check_mount(e2fsck_t ctx) in check_mount() 259 static void check_if_skip(e2fsck_t ctx) in check_if_skip() 368 extern void e2fsck_clear_progbar(e2fsck_t ctx) in e2fsck_clear_progbar() 379 int e2fsck_simple_progress(e2fsck_t ctx, const char *label, float percent, in e2fsck_simple_progress() 448 static int e2fsck_update_progress(e2fsck_t ctx, int pass, in e2fsck_update_progress() 491 e2fsck_t ctx = e2fsck_global_ctx; in signal_progress_on() 502 e2fsck_t ctx = e2fsck_global_ctx; in signal_progress_off() [all …]
|
D | pass2.c | 62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf); 66 static int allocate_dir_block(e2fsck_t ctx, 75 static void clear_htree(e2fsck_t ctx, ext2_ino_t ino); 84 e2fsck_t ctx; 87 void e2fsck_pass2(e2fsck_t ctx) in e2fsck_pass2() 350 static int check_dot(e2fsck_t ctx, in check_dot() 409 static int check_dotdot(e2fsck_t ctx, in check_dotdot() 453 static int check_name(e2fsck_t ctx, in check_name() 479 static _INLINE_ int check_filetype(e2fsck_t ctx, in check_filetype() 717 e2fsck_t ctx; in check_dir_block() [all …]
|
D | super.c | 25 static void check_super_value(e2fsck_t ctx, const char *descr, in check_super_value() 45 e2fsck_t ctx; 64 e2fsck_t ctx; in release_inode_block() 153 static int release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, in release_inode_blocks() 225 static int release_orphan_inodes(e2fsck_t ctx) in release_orphan_inodes() 308 static void check_resize_inode(e2fsck_t ctx) in check_resize_inode() 430 static void e2fsck_fix_dirhash_hint(e2fsck_t ctx) in e2fsck_fix_dirhash_hint() 455 void check_super_block(e2fsck_t ctx) in check_super_block() 796 int check_backup_super_block(e2fsck_t ctx) in check_backup_super_block()
|
D | problem.h | 916 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx); 917 int end_problem_latch(e2fsck_t ctx, int mask); 923 void print_e2fsck_message(e2fsck_t ctx, const char *msg,
|
D | swapfs.c | 80 static void swap_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, char *block_buf, in swap_inode_blocks() 110 static void swap_inodes(e2fsck_t ctx) in swap_inodes() 216 void swap_filesys(e2fsck_t ctx) in swap_filesys()
|
D | pass4.c | 26 static int disconnect_inode(e2fsck_t ctx, ext2_ino_t i) in disconnect_inode() 82 void e2fsck_pass4(e2fsck_t ctx) in e2fsck_pass4()
|
D | rehash.c | 58 e2fsck_t ctx; 331 static int duplicate_search_and_fix(e2fsck_t ctx, ext2_filsys fs, in duplicate_search_and_fix() 602 e2fsck_t ctx; 641 static errcode_t write_directory(e2fsck_t ctx, ext2_filsys fs, in write_directory() 677 errcode_t e2fsck_rehash_dir(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_rehash_dir() 778 void e2fsck_rehash_directories(e2fsck_t ctx) in e2fsck_rehash_directories()
|
D | message.c | 215 static _INLINE_ void expand_at_expression(e2fsck_t ctx, char ch, in expand_at_expression() 458 void print_e2fsck_message(e2fsck_t ctx, const char *msg, in print_e2fsck_message()
|
D | badblocks.c | 26 void read_bad_blocks_file(e2fsck_t ctx, const char *bad_blocks_file, in read_bad_blocks_file()
|
D | problem.c | 1550 int end_problem_latch(e2fsck_t ctx, int mask) in end_problem_latch() 1595 static void reconfigure_bool(e2fsck_t ctx, struct e2fsck_problem *ptr, in reconfigure_bool() 1609 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx) in fix_problem()
|