/external/e2fsprogs/lib/ext2fs/ |
D | bmap.c | 29 char *block_buf, int bmap_flags, 35 blk_t ind, char *block_buf, in block_ind_bmap() argument 48 retval = io_channel_read_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 59 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() 60 return io_channel_write_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 63 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap() 72 b = nr ? ((blk_t *) block_buf)[nr-1] : 0; in block_ind_bmap() 74 block_buf + fs->blocksize, &b); in block_ind_bmap() 81 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap() 84 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() [all …]
|
D | ext_attr.c | 70 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument 81 if (!block_buf) { in ext2fs_adjust_ea_refcount() 85 block_buf = buf; in ext2fs_adjust_ea_refcount() 88 retval = ext2fs_read_ext_attr(fs, blk, block_buf); in ext2fs_adjust_ea_refcount() 92 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount() 97 retval = ext2fs_write_ext_attr(fs, blk, block_buf); in ext2fs_adjust_ea_refcount()
|
D | dblist_dir.c | 28 char *block_buf, in ext2fs_dblist_dir_iterate() argument 45 if (block_buf) in ext2fs_dblist_dir_iterate() 46 ctx.buf = block_buf; in ext2fs_dblist_dir_iterate() 58 if (!block_buf) in ext2fs_dblist_dir_iterate()
|
D | dir_iterate.c | 50 char *block_buf, in ext2fs_dir_iterate2() argument 71 if (block_buf) in ext2fs_dir_iterate2() 72 ctx.buf = block_buf; in ext2fs_dir_iterate2() 83 if (!block_buf) in ext2fs_dir_iterate2() 112 char *block_buf, in ext2fs_dir_iterate() argument 125 return ext2fs_dir_iterate2(fs, dir, flags, block_buf, in ext2fs_dir_iterate()
|
D | rw_bitmaps.c | 62 char *block_buf, *inode_buf; in write_bitmaps() local 78 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in write_bitmaps() 81 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps() 101 memcpy(block_buf, block_bitmap, block_nbytes); in write_bitmaps() 109 ext2fs_set_bit(j, block_buf); in write_bitmaps() 116 ext2fs_swap_bitmap(fs, block_buf, in write_bitmaps() 120 block_buf); in write_bitmaps() 155 ext2fs_free_mem(&block_buf); in write_bitmaps()
|
D | alloc.c | 107 char *block_buf, blk_t *ret) in ext2fs_alloc_block() argument 113 if (!block_buf) { in ext2fs_alloc_block() 117 block_buf = buf; in ext2fs_alloc_block() 119 memset(block_buf, 0, fs->blocksize); in ext2fs_alloc_block() 131 retval = io_channel_write_blk(fs->io, block, 1, block_buf); in ext2fs_alloc_block()
|
D | bb_inode.c | 40 char *block_buf; member 76 retval = ext2fs_get_mem(fs->blocksize, &rec.block_buf); in ext2fs_update_bb_inode() 79 memset(rec.block_buf, 0, fs->blocksize); in ext2fs_update_bb_inode() 139 ext2fs_free_mem(&rec.block_buf); in ext2fs_update_bb_inode() 247 retval = io_channel_write_blk(fs->io, blk, 1, rec->block_buf); in set_bad_block_proc()
|
D | bmove.c | 100 char *block_buf; in ext2fs_move_blocks() local 111 retval = ext2fs_get_array(4, fs->blocksize, &block_buf); in ext2fs_move_blocks() 114 pb.buf = block_buf + fs->blocksize * 3; in ext2fs_move_blocks() 146 retval = ext2fs_block_iterate2(fs, ino, 0, block_buf, in ext2fs_move_blocks()
|
D | block.c | 269 char *block_buf, in ext2fs_block_iterate2() argument 313 if (block_buf) { in ext2fs_block_iterate2() 314 ctx.ind_buf = block_buf; in ext2fs_block_iterate2() 388 if (!block_buf) in ext2fs_block_iterate2() 422 char *block_buf, in ext2fs_block_iterate() argument 435 block_buf, xlate_func, &xl); in ext2fs_block_iterate()
|
D | ext2fs.h | 490 char *block_buf, blk_t *ret); 583 char *block_buf, 592 char *block_buf, 604 char *block_buf, int bmap_flags, 663 char *block_buf, 694 char *block_buf, 704 char *block_buf, 725 char *block_buf,
|
/external/e2fsprogs/debugfs/ |
D | icheck.c | 64 char *block_buf; in do_icheck() local 81 block_buf = malloc(current_fs->blocksize * 3); in do_icheck() 82 if (!block_buf) { in do_icheck() 130 retval = ext2fs_block_iterate2(current_fs, ino, 0, block_buf, in do_icheck() 163 if (block_buf) in do_icheck() 164 free(block_buf); in do_icheck()
|
D | lsdel.c | 82 char *block_buf; in do_lsdel() local 111 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel() 112 if (!block_buf) { in do_lsdel() 143 retval = ext2fs_block_iterate2(current_fs, ino, 0, block_buf, in do_lsdel() 205 free(block_buf); in do_lsdel()
|
/external/e2fsprogs/e2fsck/ |
D | swapfs.c | 80 static void swap_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, char *block_buf, in swap_inode_blocks() argument 88 sb.dir_buf = block_buf + ctx->fs->blocksize*3; in swap_inode_blocks() 94 retval = ext2fs_block_iterate(ctx->fs, ino, 0, block_buf, in swap_inode_blocks() 116 char *buf = NULL, *block_buf = NULL; in swap_inodes() local 130 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in swap_inodes() 163 swap_inode_blocks(ctx, ino, block_buf, inode); in swap_inodes() 185 if (block_buf) in swap_inodes() 186 ext2fs_free_mem(&block_buf); in swap_inodes()
|
D | pass1b.c | 89 struct dup_inode *dp, char *block_buf); 91 struct dup_inode *dp, char* block_buf); 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); 207 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() argument 227 pass1b(ctx, block_buf); in e2fsck_pass1_dupblocks() 228 pass1c(ctx, block_buf); in e2fsck_pass1_dupblocks() 229 pass1d(ctx, block_buf); in e2fsck_pass1_dupblocks() 250 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() argument [all …]
|
D | emptydir.c | 25 char *block_buf; member 131 edi->block_buf, 0, edi->logblk, in empty_pass1() 164 retval = ext2fs_block_iterate2(fs, db->ino, 0, edi->block_buf, in fix_directory() 185 edi->block_buf = malloc(ctx->fs->blocksize * 3); in process_empty_dirblock() 187 if (edi->block_buf) { in process_empty_dirblock() 191 free(edi->block_buf); in process_empty_dirblock()
|
D | pass1.c | 65 char *block_buf); 71 static void process_inodes(e2fsck_t ctx, char *block_buf); 76 char *block_buf, int adjust_sign); 101 char *block_buf; member 474 char *block_buf; in e2fsck_pass1() local 596 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1() 606 ext2fs_free_mem(&block_buf); in e2fsck_pass1() 613 scan_struct.block_buf = block_buf; in e2fsck_pass1() 676 block_buf, process_bad_block, &pb); in e2fsck_pass1() 734 check_blocks(ctx, &pctx, block_buf); in e2fsck_pass1() [all …]
|
D | super.c | 154 struct ext2_inode *inode, char *block_buf, in release_inode_blocks() argument 165 pb.buf = block_buf + 3 * ctx->fs->blocksize; in release_inode_blocks() 184 block_buf, release_inode_block, &pb); in release_inode_blocks() 203 block_buf, -1, &count); in release_inode_blocks() 231 char *block_buf; in release_orphan_inodes() local 259 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes() 282 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes() 295 ext2fs_free_mem(&block_buf); in release_orphan_inodes() 298 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
|
D | pass2.c | 62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf); 528 char *block_buf) in parse_int_node() argument 541 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node() 552 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node() 554 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node() 566 expect_limit = (fs->blocksize - ((char *) ent - block_buf)) / in parse_int_node() 1105 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument 1133 block_buf, -1, &count); in deallocate_inode() 1159 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0, block_buf, in deallocate_inode()
|
D | e2fsck.h | 250 char *block_buf; member 358 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
|
/external/e2fsprogs/misc/ |
D | e2image.c | 457 char * block_buf; in write_raw_image_file() local 484 block_buf = malloc(fs->blocksize * 3); in write_raw_image_file() 485 if (!block_buf) { in write_raw_image_file() 520 block_buf, process_dir_block, &pb); in write_raw_image_file() 532 ino, 0, block_buf, in write_raw_image_file() 544 free(block_buf); in write_raw_image_file()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1116 char *block_buf = 0; in inode_scan_and_fix() local 1142 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix() 1196 ino, 0, block_buf, in inode_scan_and_fix() 1259 if (block_buf) in inode_scan_and_fix() 1260 ext2fs_free_mem(&block_buf); in inode_scan_and_fix() 1521 char * block_buf; in fix_resize_inode() local 1527 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in fix_resize_inode() 1549 memset(block_buf, 0, fs->blocksize); in fix_resize_inode() 1552 1, block_buf); in fix_resize_inode() 1560 if (block_buf) in fix_resize_inode() [all …]
|
/external/e2fsprogs/doc/ |
D | libext2fs.texinfo | 497 ext2_ino_t @var{ino}, int @var{flags}, char *block_buf, int 503 inode. The @var{block_buf} parameter should either be NULL, or if the 653 …ext2_filsys @var{fs}, ext2_ino_t @var{dir}, int @var{flags}, char *@var{block_buf}, int (*@var{fun… 657 directory entry in the directory. The @var{block_buf} parameter should 1075 …2fs_dblist_dir_iterate (ext2_dblist @var{dblist}, int flags, char *@var{block_buf}, int (*func)(ex…
|