/external/e2fsprogs/lib/ext2fs/ |
D | bmap.c | 30 char *block_buf, int bmap_flags, 36 blk_t ind, char *block_buf, in block_ind_bmap() argument 49 retval = io_channel_read_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 58 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() 59 return io_channel_write_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 62 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap() 69 b = nr ? ((blk_t *) block_buf)[nr-1] : 0; in block_ind_bmap() 71 block_buf + fs->blocksize, &b); in block_ind_bmap() 76 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap() 78 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() [all …]
|
D | ext_attr.c | 103 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument 114 if (!block_buf) { in ext2fs_adjust_ea_refcount() 118 block_buf = buf; in ext2fs_adjust_ea_refcount() 121 retval = ext2fs_read_ext_attr(fs, blk, block_buf); in ext2fs_adjust_ea_refcount() 125 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount() 130 retval = ext2fs_write_ext_attr(fs, blk, block_buf); in ext2fs_adjust_ea_refcount()
|
D | dblist_dir.c | 27 char *block_buf, in ext2fs_dblist_dir_iterate() argument 44 if (block_buf) in ext2fs_dblist_dir_iterate() 45 ctx.buf = block_buf; in ext2fs_dblist_dir_iterate() 57 if (!block_buf) in ext2fs_dblist_dir_iterate()
|
D | dir_iterate.c | 94 char *block_buf, in ext2fs_dir_iterate2() argument 115 if (block_buf) in ext2fs_dir_iterate2() 116 ctx.buf = block_buf; in ext2fs_dir_iterate2() 127 if (!block_buf) in ext2fs_dir_iterate2() 156 char *block_buf, in ext2fs_dir_iterate() argument 169 return ext2fs_dir_iterate2(fs, dir, flags, block_buf, in ext2fs_dir_iterate()
|
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 | rw_bitmaps.c | 37 char *block_buf, *inode_buf; in write_bitmaps() local 56 &block_buf); in write_bitmaps() 59 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps() 80 blk_itr, block_nbytes << 3, block_buf); in write_bitmaps() 91 ext2fs_set_bit(j, block_buf); in write_bitmaps() 96 block_buf); in write_bitmaps() 129 ext2fs_free_mem(&block_buf); in write_bitmaps()
|
D | bmove.c | 104 char *block_buf; in ext2fs_move_blocks() local 115 retval = ext2fs_get_array(4, fs->blocksize, &block_buf); in ext2fs_move_blocks() 118 pb.buf = block_buf + fs->blocksize * 3; in ext2fs_move_blocks() 150 retval = ext2fs_block_iterate2(fs, ino, 0, block_buf, in ext2fs_move_blocks()
|
D | alloc.c | 188 char *block_buf, blk_t *ret) in ext2fs_alloc_block() argument 194 if (!block_buf) { in ext2fs_alloc_block() 198 block_buf = buf; in ext2fs_alloc_block() 200 memset(block_buf, 0, fs->blocksize); in ext2fs_alloc_block() 221 retval = io_channel_write_blk(fs->io, block, 1, block_buf); in ext2fs_alloc_block()
|
D | block.c | 298 char *block_buf, in ext2fs_block_iterate2() argument 336 if (block_buf) { in ext2fs_block_iterate2() 337 ctx.ind_buf = block_buf; in ext2fs_block_iterate2() 500 if (!block_buf) in ext2fs_block_iterate2() 534 char *block_buf, in ext2fs_block_iterate() argument 547 block_buf, xlate_func, &xl); in ext2fs_block_iterate()
|
D | ext2fs.h | 572 char *block_buf, blk_t *ret); 699 char *block_buf, 708 char *block_buf, 720 char *block_buf, int bmap_flags, 724 char *block_buf, int bmap_flags, blk64_t block, 781 char *block_buf, 818 char *block_buf, 828 char *block_buf, 851 char *block_buf,
|
D | extent.c | 827 char *block_buf = NULL; in extent_node_split() local 922 block_buf = malloc(handle->fs->blocksize); in extent_node_split() 923 if (!block_buf) { in extent_node_split() 937 retval = ext2fs_alloc_block(handle->fs, (blk_t) goal_blk, block_buf, in extent_node_split() 949 neweh = (struct ext3_extent_header *) block_buf; in extent_node_split() 965 retval = io_channel_write_blk(handle->fs->io, new_node_pblk, 1, block_buf); in extent_node_split() 1041 free(block_buf); in extent_node_split()
|
/external/e2fsprogs/e2fsck/ |
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); 209 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() argument 233 pass1b(ctx, block_buf); in e2fsck_pass1_dupblocks() 237 pass1c(ctx, block_buf); in e2fsck_pass1_dupblocks() 241 pass1d(ctx, block_buf); in e2fsck_pass1_dupblocks() 264 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() 184 edi->block_buf = malloc(ctx->fs->blocksize * 3); in process_empty_dirblock() 186 if (edi->block_buf) { in process_empty_dirblock() 190 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); 102 char *block_buf; member 551 char *block_buf; in e2fsck_pass1() local 672 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1() 682 ext2fs_free_mem(&block_buf); in e2fsck_pass1() 689 scan_struct.block_buf = block_buf; in e2fsck_pass1() 823 block_buf, process_bad_block, &pb); in e2fsck_pass1() 874 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() 202 block_buf, -1, &count); in release_inode_blocks() 230 char *block_buf; in release_orphan_inodes() local 258 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes() 281 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes() 294 ext2fs_free_mem(&block_buf); in release_orphan_inodes() 297 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); 523 char *block_buf) in parse_int_node() argument 536 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node() 547 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node() 549 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node() 561 expect_limit = (fs->blocksize - ((char *) ent - block_buf)) / in parse_int_node() 1177 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument 1198 block_buf, -1, &count); in deallocate_inode() 1224 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0, block_buf, in deallocate_inode()
|
D | e2fsck.h | 261 char *block_buf; member 372 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, 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() 131 BLOCK_FLAG_READ_ONLY, 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() 144 BLOCK_FLAG_READ_ONLY, block_buf, in do_lsdel() 206 free(block_buf); in do_lsdel()
|
/external/e2fsprogs/misc/ |
D | e2image.c | 466 char * block_buf; in write_raw_image_file() local 493 block_buf = malloc(fs->blocksize * 3); in write_raw_image_file() 494 if (!block_buf) { in write_raw_image_file() 529 BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 543 ino, BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 555 free(block_buf); in write_raw_image_file()
|
D | tune2fs.c | 1208 char *block_buf = 0; in inode_scan_and_fix() local 1212 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in inode_scan_and_fix() 1258 retval = ext2fs_block_iterate2(fs, ino, 0, block_buf, in inode_scan_and_fix() 1266 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1313 char *block_buf = 0; in inode_scan_and_fix() local 1339 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix() 1393 ino, 0, block_buf, in inode_scan_and_fix() 1447 if (block_buf) in inode_scan_and_fix() 1448 ext2fs_free_mem(&block_buf); in inode_scan_and_fix() 1713 char * block_buf; in fix_resize_inode() local 1719 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in fix_resize_inode() 1741 memset(block_buf, 0, fs->blocksize); in fix_resize_inode() 1744 1, block_buf); in fix_resize_inode() 1752 if (block_buf) in fix_resize_inode() [all …]
|
/external/e2fsprogs/doc/ |
D | libext2fs.texinfo | 616 …ate (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, int @var{flags}, char *block_buf, int (*func)(ext… 620 inode. The @var{block_buf} parameter should either be NULL, or if the 768 …ext2_filsys @var{fs}, ext2_ino_t @var{dir}, int @var{flags}, char *@var{block_buf}, int (*@var{fun… 772 directory entry in the directory. The @var{block_buf} parameter should 1190 …2fs_dblist_dir_iterate (ext2_dblist @var{dblist}, int flags, char *@var{block_buf}, int (*func)(ex…
|