Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/ext2fs/
Ddblist.c61 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 …]
Dfreefs.c50 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 …]
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_iterate(dblist, db_dir_proc, &ctx); in ext2fs_dblist_dir_iterate()
Ddupfs.c41 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()
Dbmove.c80 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()
Dext2fs.h228 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);
DAndroid.mk18 dblist.c \
DMakefile.in31 dblist.o \
86 $(srcdir)/dblist.c \
368 dblist.o: $(srcdir)/dblist.c $(srcdir)/ext2_fs.h \
/external/e2fsprogs/e2fsck/
De2fsck.c80 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()
Dpass2.c144 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()
Dpass1b.c408 ext2fs_dblist_dir_iterate(fs->dblist, 0, block_buf, in pass1c()
672 retval = ext2fs_set_dir_block(fs->dblist, in clone_file_block()
Dpass1.c1553 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/
Dlibext2fs.texinfo1040 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/
Dresize2fs.c1070 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/
DRELEASE-NOTES3826 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