Home
last modified time | relevance | path

Searched refs:dblist (Results 1 – 22 of 22) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
Ddblist.c36 ext2_dblist dblist = NULL; in make_dblist() local
43 if ((ret_dblist == 0) && fs->dblist && in make_dblist()
44 (fs->dblist->magic == EXT2_ET_MAGIC_DBLIST)) in make_dblist()
47 retval = ext2fs_get_mem(sizeof(struct ext2_struct_dblist), &dblist); in make_dblist()
50 memset(dblist, 0, sizeof(struct ext2_struct_dblist)); in make_dblist()
52 dblist->magic = EXT2_ET_MAGIC_DBLIST; in make_dblist()
53 dblist->fs = fs; in make_dblist()
55 dblist->size = size; in make_dblist()
60 dblist->size = (num_dirs * 2) + 12; in make_dblist()
62 len = (size_t) sizeof(struct ext2_db_entry2) * dblist->size; in make_dblist()
[all …]
Dfreefs.c52 if (fs->dblist) in ext2fs_free()
53 ext2fs_free_dblist(fs->dblist); in ext2fs_free()
95 void ext2fs_free_dblist(ext2_dblist dblist) in ext2fs_free_dblist() argument
97 if (!dblist || (dblist->magic != EXT2_ET_MAGIC_DBLIST)) in ext2fs_free_dblist()
100 if (dblist->list) in ext2fs_free_dblist()
101 ext2fs_free_mem(&dblist->list); in ext2fs_free_dblist()
102 dblist->list = 0; in ext2fs_free_dblist()
103 if (dblist->fs && dblist->fs->dblist == dblist) in ext2fs_free_dblist()
104 dblist->fs->dblist = 0; in ext2fs_free_dblist()
105 dblist->magic = 0; in ext2fs_free_dblist()
[all …]
Ddblist_dir.c26 errcode_t ext2fs_dblist_dir_iterate(ext2_dblist dblist, in ext2fs_dblist_dir_iterate() argument
41 EXT2_CHECK_MAGIC(dblist, EXT2_ET_MAGIC_DBLIST); in ext2fs_dblist_dir_iterate()
48 retval = ext2fs_get_mem(dblist->fs->blocksize, &ctx.buf); in ext2fs_dblist_dir_iterate()
56 retval = ext2fs_dblist_iterate2(dblist, db_dir_proc, &ctx); in ext2fs_dblist_dir_iterate()
Ddupfs.c42 fs->dblist = 0; in ext2fs_dup_handle()
88 if (src->dblist) { in ext2fs_dup_handle()
89 retval = ext2fs_copy_dblist(src->dblist, &fs->dblist); in ext2fs_dup_handle()
Dbmove.c87 retval = ext2fs_add_dir_block2(fs->dblist, pb->ino, in process_block()
129 if (fs->dblist) { in ext2fs_move_blocks()
130 ext2fs_free_dblist(fs->dblist); in ext2fs_move_blocks()
131 fs->dblist = NULL; in ext2fs_move_blocks()
Dext2fs.h247 ext2_dblist dblist; member
1093 extern errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino,
1095 extern errcode_t ext2fs_add_dir_block2(ext2_dblist dblist, ext2_ino_t ino,
1097 extern void ext2fs_dblist_sort(ext2_dblist dblist,
1100 extern void ext2fs_dblist_sort2(ext2_dblist dblist,
1103 extern errcode_t ext2fs_dblist_iterate(ext2_dblist dblist,
1107 extern errcode_t ext2fs_dblist_iterate2(ext2_dblist dblist,
1111 extern errcode_t ext2fs_dblist_iterate3(ext2_dblist dblist,
1117 extern errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino,
1119 extern errcode_t ext2fs_set_dir_block2(ext2_dblist dblist, ext2_ino_t ino,
[all …]
Dtst_fs_struct.c61 check_field(dblist); in main()
DAndroid.bp30 "dblist.c",
DMakefile.in77 dblist.o \
155 $(srcdir)/dblist.c \
744 dblist.o: $(srcdir)/dblist.c $(top_builddir)/lib/config.h \
/external/e2fsprogs/e2fsck/
De2fsck.c87 if (ctx->fs && ctx->fs->dblist) { in e2fsck_reset_context()
88 ext2fs_free_dblist(ctx->fs->dblist); in e2fsck_reset_context()
89 ctx->fs->dblist = 0; in e2fsck_reset_context()
Dreadahead.c57 ext2_dblist dblist, in e2fsck_readahead_dblist() argument
70 err = ext2fs_dblist_iterate3(dblist, readahead_dir_block, start, in e2fsck_readahead_dblist()
Dpass2.c172 cd.max = ext2fs_dblist_count2(fs->dblist); in e2fsck_pass2()
181 ext2fs_dblist_sort2(fs->dblist, special_dir_block_cmp); in e2fsck_pass2()
184 cd.pctx.errcode = ext2fs_dblist_iterate2(fs->dblist, check_dir_func, in e2fsck_pass2()
277 ext2fs_free_dblist(fs->dblist); in e2fsck_pass2()
890 fs->dblist, in check_dir_block2()
Dpass1b.c492 ext2fs_dblist_dir_iterate(fs->dblist, 0, block_buf, in pass1c()
868 retval = ext2fs_set_dir_block2(fs->dblist, in clone_file_block()
Dpass1.c3042 ctx->fs->dblist, in scan_extent_node()
3054 ctx->fs->dblist, in scan_extent_node()
3231 pctx->errcode = ext2fs_add_dir_block2(ctx->fs->dblist, pb->ino, 0, 0); in check_blocks_inline_data()
3250 pctx->errcode = ext2fs_add_dir_block2(ctx->fs->dblist, pb->ino, 0, 1); in check_blocks_inline_data()
3606 pctx->errcode = ext2fs_add_dir_block2(fs->dblist, p->ino, 0, 0); in process_block()
3766 pctx->errcode = ext2fs_add_dir_block2(fs->dblist, in process_block()
3775 pctx->errcode = ext2fs_add_dir_block2(fs->dblist, p->ino, in process_block()
De2fsck.h567 ext2_dblist dblist,
/external/e2fsprogs/doc/
Dlibext2fs.texinfo1152 The dblist abstraction stores a list of blocks belonging to
1160 Creates a dblist data structure and returns it in @var{ret_dblist}.
1163 @deftypefun void ext2fs_free_dblist (ext2_dblist @var{dblist})
1165 Free a dblist data structure.
1168 @deftypefun errcode_t ext2fs_add_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @…
1170 Add an entry to the dblist data structure. This call records the fact
1175 @deftypefun errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @…
1177 Change an entry in the dblist data structure; this changes the location
1182 @deftypefun errcode_t ext2fs_dblist_iterate (ext2_dblist @var{dblist}, int (*func)(ext2_filsys @var…
1184 This iterator calls @var{func} for every entry in the dblist data structure.
[all …]
/external/e2fsprogs/doc/RelNotes/
Dv1.11.txt60 directory blocks in dblist.
Dv1.08.txt67 dblist entry, given the directory inode and blockcnt.
Dv1.07.txt79 Added new abstraction (defined in dblist.c) for maintaining a list of
Dv1.12.txt59 Fixed a bug in e2fsck (really in libext2fs's dblist function) where if
Dv1.41.txt1424 The ext2fs_add_dir_block() function will now grow the dblist more
/external/e2fsprogs/resize/
Dresize2fs.c1853 retval = ext2fs_add_dir_block2(fs->dblist, pb->ino, in process_block()
2281 retval = ext2fs_add_dir_block2(rfs->old_fs->dblist, in inode_scan_and_fix()
2396 is.max_dirs = ext2fs_dblist_count2(rfs->old_fs->dblist); in inode_ref_fix()
2408 retval = ext2fs_dblist_dir_iterate(rfs->old_fs->dblist, in inode_ref_fix()