Home
last modified time | relevance | path

Searched refs:e2fsck_t (Results 1 – 25 of 25) sorted by relevance

/third_party/e2fsprogs/e2fsck/
De2fsck.h222 typedef struct e2fsck_struct *e2fsck_t; typedef
253 int (*progress)(e2fsck_t ctx, int pass, unsigned long cur,
441 extern void e2fsck_pass1(e2fsck_t ctx);
442 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
443 extern void e2fsck_pass2(e2fsck_t ctx);
444 extern void e2fsck_pass3(e2fsck_t ctx);
445 extern void e2fsck_pass4(e2fsck_t ctx);
446 extern void e2fsck_pass5(e2fsck_t ctx);
449 extern errcode_t e2fsck_allocate_context(e2fsck_t *ret);
450 extern errcode_t e2fsck_reset_context(e2fsck_t ctx);
[all …]
Ddirinfo.c43 static void e2fsck_put_dir_info(e2fsck_t ctx, struct dir_info *dir);
46 static void setup_tdb(e2fsck_t ctx, ext2_ino_t num_dirs) in setup_tdb()
89 static void setup_db(e2fsck_t ctx) in setup_db()
130 void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent) in e2fsck_add_dir_info()
204 static struct dir_info *e2fsck_get_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dir_info()
288 static void e2fsck_put_dir_info(e2fsck_t ctx EXT2FS_NO_TDB_UNUSED, in e2fsck_put_dir_info()
323 void e2fsck_free_dir_info(e2fsck_t ctx) in e2fsck_free_dir_info()
349 int e2fsck_get_num_dirinfo(e2fsck_t ctx) in e2fsck_get_num_dirinfo()
354 struct dir_info_iter *e2fsck_dir_info_iter_begin(e2fsck_t ctx) in e2fsck_dir_info_iter_begin()
369 void e2fsck_dir_info_iter_end(e2fsck_t ctx EXT2FS_ATTR((unused)), in e2fsck_dir_info_iter_end()
[all …]
Dutil.c46 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
53 void fatal_error(e2fsck_t ctx, const char *msg) in fatal_error()
91 void log_out(e2fsck_t ctx, const char *fmt, ...) in log_out()
105 void log_err(e2fsck_t ctx, const char *fmt, ...) in log_err()
119 void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned long size, in e2fsck_allocate_memory()
137 char *string_copy(e2fsck_t ctx EXT2FS_ATTR((unused)), in string_copy()
191 int ask_yn(e2fsck_t ctx, const char * string, int def) in ask_yn()
289 int ask (e2fsck_t ctx, const char * string, int def) in ask()
306 void e2fsck_read_bitmaps(e2fsck_t ctx) in e2fsck_read_bitmaps()
339 void e2fsck_write_bitmaps(e2fsck_t ctx) in e2fsck_write_bitmaps()
[all …]
Ddx_dirinfo.c16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, struct ext2_inode *inode, in e2fsck_add_dx_dir()
86 struct dx_dir_info *e2fsck_get_dx_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dx_dir_info()
117 void e2fsck_free_dx_dir_info(e2fsck_t ctx) in e2fsck_free_dx_dir_info()
140 ext2_ino_t e2fsck_get_num_dx_dirinfo(e2fsck_t ctx) in e2fsck_get_num_dx_dirinfo()
148 struct dx_dir_info *e2fsck_dx_dir_info_iter(e2fsck_t ctx, ext2_ino_t *control) in e2fsck_dx_dir_info_iter()
Dehandler.c34 e2fsck_t ctx; in e2fsck_handle_read_error()
36 ctx = (e2fsck_t) fs->priv_data; in e2fsck_handle_read_error()
86 e2fsck_t ctx; in e2fsck_handle_write_error()
88 ctx = (e2fsck_t) fs->priv_data; in e2fsck_handle_write_error()
Dlogfile.c23 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
69 static void expand_percent_expression(e2fsck_t ctx, char ch, in expand_percent_expression()
162 static void expand_logfn(e2fsck_t ctx, const char *log_fn, struct string *s) in expand_logfn()
288 static FILE *set_up_log_file(e2fsck_t ctx, const char *key, const char *fn) in set_up_log_file()
349 void set_up_logging(e2fsck_t ctx) in set_up_logging()
356 void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned long size, in e2fsck_allocate_memory()
371 errcode_t e2fsck_allocate_context(e2fsck_t *ret) in e2fsck_allocate_context()
373 e2fsck_t context; in e2fsck_allocate_context()
394 e2fsck_t ctx; in main()
Dpass1b.c89 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
91 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
93 static int check_if_fs_block(e2fsck_t ctx, blk64_t test_block);
94 static int check_if_fs_cluster(e2fsck_t ctx, blk64_t cluster);
96 static void pass1b(e2fsck_t ctx, char *block_buf);
97 static void pass1c(e2fsck_t ctx, char *block_buf);
98 static void pass1d(e2fsck_t ctx, char *block_buf);
120 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, in add_dupe()
211 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks()
279 e2fsck_t ctx;
[all …]
De2fsck.c21 errcode_t e2fsck_allocate_context(e2fsck_t *ret) in e2fsck_allocate_context()
23 e2fsck_t context; in e2fsck_allocate_context()
55 errcode_t e2fsck_reset_context(e2fsck_t ctx) in e2fsck_reset_context()
194 void e2fsck_free_context(e2fsck_t ctx) in e2fsck_free_context()
232 typedef void (*pass_t)(e2fsck_t ctx);
238 int e2fsck_run(e2fsck_t ctx) in e2fsck_run()
Dpass1.c74 static void check_blocks(e2fsck_t ctx, struct problem_context *pctx,
77 static void mark_table_blocks(e2fsck_t ctx);
78 static void alloc_bb_map(e2fsck_t ctx);
79 static void alloc_imagic_map(e2fsck_t ctx);
80 static void mark_inode_bad(e2fsck_t ctx, ino_t ino);
81 static void add_encrypted_dir(e2fsck_t ctx, ino_t ino);
82 static void handle_fs_bad_blocks(e2fsck_t ctx);
83 static void process_inodes(e2fsck_t ctx, char *block_buf);
87 static void adjust_extattr_refcount(e2fsck_t ctx, ext2_refcount_t refcount,
106 e2fsck_t ctx;
[all …]
Dpass5.c24 static void check_block_bitmaps(e2fsck_t ctx);
25 static void check_inode_bitmaps(e2fsck_t ctx);
26 static void check_inode_end(e2fsck_t ctx);
27 static void check_block_end(e2fsck_t ctx);
28 static void check_inode_bitmap_checksum(e2fsck_t ctx);
29 static void check_block_bitmap_checksum(e2fsck_t ctx);
31 void e2fsck_pass5(e2fsck_t ctx) in e2fsck_pass5()
82 static void check_inode_bitmap_checksum(e2fsck_t ctx) in check_inode_bitmap_checksum()
136 static void check_block_bitmap_checksum(e2fsck_t ctx) in check_block_bitmap_checksum()
192 static void e2fsck_discard_blocks(e2fsck_t ctx, blk64_t start, in e2fsck_discard_blocks()
[all …]
Dextents.c25 static errcode_t e2fsck_rebuild_extents(e2fsck_t ctx, ext2_ino_t ino);
28 errcode_t e2fsck_rebuild_extents_later(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_rebuild_extents_later()
54 int e2fsck_ino_will_be_rebuilt(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_ino_will_be_rebuilt()
71 static errcode_t load_extents(e2fsck_t ctx, struct extent_list *list) in load_extents()
209 static errcode_t rebuild_extent_tree(e2fsck_t ctx, struct extent_list *list, in rebuild_extent_tree()
323 static errcode_t e2fsck_rebuild_extents(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_rebuild_extents()
345 static void rebuild_extents(e2fsck_t ctx, const char *pass_name, int pr_header) in rebuild_extents()
408 errcode_t e2fsck_check_rebuild_extents(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_check_rebuild_extents()
508 errcode_t e2fsck_should_rebuild_extents(e2fsck_t ctx, in e2fsck_should_rebuild_extents()
552 void e2fsck_pass1e(e2fsck_t ctx) in e2fsck_pass1e()
Dpass3.c45 static void check_root(e2fsck_t ctx);
46 static int check_directory(e2fsck_t ctx, ext2_ino_t ino,
48 static void fix_dotdot(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent);
53 void e2fsck_pass3(e2fsck_t ctx) in e2fsck_pass3()
156 static void check_root(e2fsck_t ctx) in check_root()
289 static int check_directory(e2fsck_t ctx, ext2_ino_t dir, in check_directory()
384 ext2_ino_t e2fsck_get_lost_and_found(e2fsck_t ctx, int fix) in e2fsck_get_lost_and_found()
598 int e2fsck_reconnect_file(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_reconnect_file()
649 errcode_t e2fsck_adjust_inode_count(e2fsck_t ctx, ext2_ino_t ino, int adj) in e2fsck_adjust_inode_count()
695 e2fsck_t ctx;
[all …]
Djfs_user.h46 e2fsck_t b_ctx;
61 e2fsck_t i_ctx;
71 e2fsck_t k_ctx;
209 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
Demptydir.c35 extern empty_dir_info init_empty_dir(e2fsck_t ctx);
39 extern void process_empty_dirblock(e2fsck_t ctx, empty_dir_info edi);
42 empty_dir_info init_empty_dir(e2fsck_t ctx) in init_empty_dir()
179 void process_empty_dirblock(e2fsck_t ctx, empty_dir_info edi) in process_empty_dirblock()
Djournal.c240 static void e2fsck_clear_recover(e2fsck_t ctx, int error) in e2fsck_clear_recover()
278 static errcode_t e2fsck_get_journal(e2fsck_t ctx, journal_t **ret_journal) in e2fsck_get_journal()
535 static errcode_t e2fsck_journal_fix_bad_inode(e2fsck_t ctx, in e2fsck_journal_fix_bad_inode()
570 e2fsck_t ctx = journal->j_dev->k_ctx; in clear_v2_journal_fields()
587 e2fsck_t ctx = journal->j_dev->k_ctx; in e2fsck_journal_load()
693 static void e2fsck_journal_reset_super(e2fsck_t ctx, journal_superblock_t *jsb, in e2fsck_journal_reset_super()
738 static errcode_t e2fsck_journal_fix_corrupt_super(e2fsck_t ctx, in e2fsck_journal_fix_corrupt_super()
760 static void e2fsck_journal_release(e2fsck_t ctx, journal_t *journal, in e2fsck_journal_release()
796 errcode_t e2fsck_check_ext3_journal(e2fsck_t ctx) in e2fsck_check_ext3_journal()
923 static errcode_t recover_ext3_journal(e2fsck_t ctx) in recover_ext3_journal()
[all …]
Dsuper.c27 static int check_super_value(e2fsck_t ctx, const char *descr, in check_super_value()
46 static int check_super_value64(e2fsck_t ctx, const char *descr, in check_super_value64()
69 e2fsck_t ctx;
90 e2fsck_t ctx; in release_inode_block()
188 static int release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, in release_inode_blocks()
266 static errcode_t e2fsck_read_all_quotas(e2fsck_t ctx) in e2fsck_read_all_quotas()
294 static errcode_t e2fsck_write_all_quotas(e2fsck_t ctx) in e2fsck_write_all_quotas()
320 static int release_orphan_inodes(e2fsck_t ctx) in release_orphan_inodes()
425 void check_resize_inode(e2fsck_t ctx) in check_resize_inode()
555 static void e2fsck_fix_dirhash_hint(e2fsck_t ctx) in e2fsck_fix_dirhash_hint()
[all …]
Dunix.c69 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()
229 static void check_mount(e2fsck_t ctx) in check_mount()
339 static void check_if_skip(e2fsck_t ctx) in check_if_skip()
504 void e2fsck_clear_progbar(e2fsck_t ctx) in e2fsck_clear_progbar()
515 int e2fsck_simple_progress(e2fsck_t ctx, const char *label, float percent, in e2fsck_simple_progress()
584 static int e2fsck_update_progress(e2fsck_t ctx, int pass, in e2fsck_update_progress()
630 e2fsck_t ctx = e2fsck_global_ctx; in signal_progress_on()
640 e2fsck_t ctx = e2fsck_global_ctx; in signal_progress_off()
[all …]
Dpass2.c63 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf);
70 static int allocate_dir_block(e2fsck_t ctx,
73 static void clear_htree(e2fsck_t ctx, ext2_ino_t ino);
82 e2fsck_t ctx;
121 void e2fsck_pass2(e2fsck_t ctx) in e2fsck_pass2()
375 static int check_dot(e2fsck_t ctx, in check_dot()
439 static int check_dotdot(e2fsck_t ctx, in check_dotdot()
486 static int check_name(e2fsck_t ctx, in check_name()
507 static int encrypted_check_name(e2fsck_t ctx, in encrypted_check_name()
524 static _INLINE_ int check_filetype(e2fsck_t ctx, in check_filetype()
[all …]
Dquota.c69 void e2fsck_hide_quota(e2fsck_t ctx) in e2fsck_hide_quota()
100 void e2fsck_validate_quota_inodes(e2fsck_t ctx) in e2fsck_validate_quota_inodes()
Dpass4.c29 static int disconnect_inode(e2fsck_t ctx, ext2_ino_t i, in disconnect_inode()
90 static void check_ea_inode(e2fsck_t ctx, ext2_ino_t i, in check_ea_inode()
137 void e2fsck_pass4(e2fsck_t ctx) in e2fsck_pass4()
Dproblem.h1273 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx);
1274 int end_problem_latch(e2fsck_t ctx, int mask);
1280 void print_e2fsck_message(FILE *f, e2fsck_t ctx, const char *msg,
Dmessage.c245 static _INLINE_ void expand_at_expression(FILE *f, e2fsck_t ctx, char ch, in expand_at_expression()
397 e2fsck_t e2fsck_ctx = fs ? (e2fsck_t) fs->priv_data : NULL; in expand_percent_expression()
516 void print_e2fsck_message(FILE *f, e2fsck_t ctx, const char *msg, in print_e2fsck_message()
Drehash.c56 void e2fsck_rehash_dir_later(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_rehash_dir_later()
65 int e2fsck_dir_will_be_rehashed(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_dir_will_be_rehashed()
81 e2fsck_t ctx;
381 static int duplicate_search_and_fix(e2fsck_t ctx, ext2_filsys fs, in duplicate_search_and_fix()
453 static errcode_t copy_dir_entries(e2fsck_t ctx, in copy_dir_entries()
789 e2fsck_t ctx;
844 static errcode_t write_directory(e2fsck_t ctx, ext2_filsys fs, in write_directory()
887 errcode_t e2fsck_rehash_dir(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_rehash_dir()
1007 void e2fsck_rehash_directories(e2fsck_t ctx) in e2fsck_rehash_directories()
Dproblem.c2258 int end_problem_latch(e2fsck_t ctx, int mask) in end_problem_latch()
2303 static void reconfigure_bool(e2fsck_t ctx, struct e2fsck_problem *ptr, in reconfigure_bool()
2356 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx) in fix_problem()
2545 void print_e2fsck_message(FILE *f, e2fsck_t ctx, const char *msg, in print_e2fsck_message()
2552 void fatal_error(e2fsck_t ctx, const char *msg) in fatal_error()
2557 void preenhalt(e2fsck_t ctx) in preenhalt()
2570 int ask (e2fsck_t ctx, const char * string, int def) in ask()
2575 int verify_problem_table(e2fsck_t ctx) in verify_problem_table()
2608 e2fsck_t ctx; in main()
Dbadblocks.c27 void read_bad_blocks_file(e2fsck_t ctx, const char *bad_blocks_file, in read_bad_blocks_file()