/external/e2fsprogs/lib/ext2fs/ |
D | dblist.c | 61 ext2_dblist dblist; in make_dblist() local 67 if ((ret_dblist == 0) && fs->dblist && in make_dblist() 68 (fs->dblist->magic == EXT2_ET_MAGIC_DBLIST)) in make_dblist() 71 retval = ext2fs_get_mem(sizeof(struct ext2_struct_dblist), &dblist); in make_dblist() 74 memset(dblist, 0, sizeof(struct ext2_struct_dblist)); in make_dblist() 76 dblist->magic = EXT2_ET_MAGIC_DBLIST; in make_dblist() 77 dblist->fs = fs; in make_dblist() 79 dblist->size = size; in make_dblist() 81 retval = ext2fs_get_num_dirs(fs, &dblist->size); in make_dblist() 84 dblist->size = (dblist->size * 2) + 12; in make_dblist() [all …]
|
D | freefs.c | 50 if (fs->dblist) in ext2fs_free() 51 ext2fs_free_dblist(fs->dblist); in ext2fs_free() 134 void ext2fs_free_dblist(ext2_dblist dblist) in ext2fs_free_dblist() argument 136 if (!dblist || (dblist->magic != EXT2_ET_MAGIC_DBLIST)) in ext2fs_free_dblist() 139 if (dblist->list) in ext2fs_free_dblist() 140 ext2fs_free_mem(&dblist->list); in ext2fs_free_dblist() 141 dblist->list = 0; in ext2fs_free_dblist() 142 if (dblist->fs && dblist->fs->dblist == dblist) in ext2fs_free_dblist() 143 dblist->fs->dblist = 0; in ext2fs_free_dblist() 144 dblist->magic = 0; in ext2fs_free_dblist() [all …]
|
D | dblist_dir.c | 26 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_iterate(dblist, db_dir_proc, &ctx); in ext2fs_dblist_dir_iterate()
|
D | dupfs.c | 41 fs->dblist = 0; in ext2fs_dup_handle() 84 if (src->dblist) { in ext2fs_dup_handle() 85 retval = ext2fs_copy_dblist(src->dblist, &fs->dblist); in ext2fs_dup_handle()
|
D | bmove.c | 80 retval = ext2fs_add_dir_block(fs->dblist, pb->ino, in process_block() 122 if (fs->dblist) { in ext2fs_move_blocks() 123 ext2fs_free_dblist(fs->dblist); in ext2fs_move_blocks() 124 fs->dblist = NULL; in ext2fs_move_blocks()
|
D | ext2fs.h | 228 ext2_dblist dblist; member 641 extern errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, 643 extern void ext2fs_dblist_sort(ext2_dblist dblist, 646 extern errcode_t ext2fs_dblist_iterate(ext2_dblist dblist, 650 extern errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, 654 extern int ext2fs_dblist_count(ext2_dblist dblist); 655 extern errcode_t ext2fs_dblist_get_last(ext2_dblist dblist, 657 extern errcode_t ext2fs_dblist_drop_last(ext2_dblist dblist); 661 ext2fs_dblist_dir_iterate(ext2_dblist dblist, 760 extern void ext2fs_free_dblist(ext2_dblist dblist);
|
D | Android.mk | 18 dblist.c \
|
D | Makefile.in | 31 dblist.o \ 86 $(srcdir)/dblist.c \ 368 dblist.o: $(srcdir)/dblist.c $(srcdir)/ext2_fs.h \
|
/external/e2fsprogs/e2fsck/ |
D | e2fsck.c | 80 if (ctx->fs && ctx->fs->dblist) { in e2fsck_reset_context() 81 ext2fs_free_dblist(ctx->fs->dblist); in e2fsck_reset_context() 82 ctx->fs->dblist = 0; in e2fsck_reset_context()
|
D | pass2.c | 144 cd.max = ext2fs_dblist_count(fs->dblist); in e2fsck_pass2() 150 ext2fs_dblist_sort(fs->dblist, special_dir_block_cmp); in e2fsck_pass2() 152 cd.pctx.errcode = ext2fs_dblist_iterate(fs->dblist, check_dir_block, in e2fsck_pass2() 252 ext2fs_free_dblist(fs->dblist); in e2fsck_pass2()
|
D | pass1b.c | 408 ext2fs_dblist_dir_iterate(fs->dblist, 0, block_buf, in pass1c() 672 retval = ext2fs_set_dir_block(fs->dblist, in clone_file_block()
|
D | pass1.c | 1553 if (ext2fs_dblist_get_last(fs->dblist, &entry) || in check_blocks() 1560 ext2fs_dblist_drop_last(fs->dblist); in check_blocks() 1561 if (ext2fs_dblist_get_last(fs->dblist, &entry) || in check_blocks() 1843 pctx->errcode = ext2fs_add_dir_block(fs->dblist, p->ino, in process_block()
|
/external/e2fsprogs/doc/ |
D | libext2fs.texinfo | 1040 The dblist abstraction stores a list of blocks belonging to 1048 Creates a dblist data structure and return it in @var{ret_dblist}. 1051 @deftypefun void ext2fs_free_dblist (ext2_dblist @var{dblist}) 1053 Free a dblist data structure. 1056 @deftypefun errcode_t ext2fs_add_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @… 1058 Add an entry to the dblist data structure. This call records the fact 1063 @deftypefun errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @… 1065 Change an entry in the dblist data structure; this changes the location 1070 @deftypefun errcode_t ext2fs_dblist_iterate (ext2_dblist @var{dblist}, int (*func)(ext2_filsys @var… 1072 This iterator calls @var{func} for every entry in the dblist data structure. [all …]
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1070 retval = ext2fs_add_dir_block(fs->dblist, pb->ino, in process_block() 1342 is.max_dirs = ext2fs_dblist_count(rfs->old_fs->dblist); in inode_ref_fix() 1353 retval = ext2fs_dblist_dir_iterate(rfs->old_fs->dblist, in inode_ref_fix()
|
/external/e2fsprogs/ |
D | RELEASE-NOTES | 3826 Fixed a bug in e2fsck (really in libext2fs's dblist function) where if 3981 directory blocks in dblist. 4120 dblist entry, given the directory inode and blockcnt. 4207 Added new abstraction (defined in dblist.c) for maintaining a list of
|