/external/e2fsprogs/debugfs/ |
D | debugfs.c | 55 ext2_filsys current_fs; variable 145 current_fs = NULL; in open_filesystem() 153 current_fs = NULL; in open_filesystem() 159 current_fs = NULL; in open_filesystem() 175 io_ptr, ¤t_fs); in open_filesystem() 187 current_fs = NULL; in open_filesystem() 190 current_fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; in open_filesystem() 195 retval = ext2fs_read_bitmaps(current_fs); in open_filesystem() 204 retval = ext2fs_set_data_io(current_fs, data_io); in open_filesystem() 216 retval = ext2fs_close_free(¤t_fs); in open_filesystem() [all …]
|
D | zap.c | 58 if (bit >= (int) current_fs->blocksize * 8) { in do_zap_block() 61 current_fs->blocksize); in do_zap_block() 81 if (offset >= (int) current_fs->blocksize) { in do_zap_block() 84 current_fs->blocksize); in do_zap_block() 109 length = current_fs->blocksize - offset; in do_zap_block() 110 if ((offset + length) > (int) current_fs->blocksize) { in do_zap_block() 132 errcode = ext2fs_bmap2(current_fs, inode, 0, 0, 0, in do_zap_block() 141 buf = malloc(current_fs->blocksize); in do_zap_block() 147 errcode = io_channel_read_blk64(current_fs->io, block, 1, buf); in do_zap_block() 159 errcode = io_channel_write_blk64(current_fs->io, block, 1, buf); in do_zap_block() [all …]
|
D | unused.c | 41 for (blk=current_fs->super->s_first_data_block; in do_dump_unused() 42 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused() 43 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused() 45 retval = io_channel_read_blk64(current_fs->io, blk, 1, buf); in do_dump_unused() 50 for (i=0; i < current_fs->blocksize; i++) in do_dump_unused() 53 if (i >= current_fs->blocksize) in do_dump_unused() 57 for (i=0; i < current_fs->blocksize; i++) in do_dump_unused()
|
D | util.c | 122 if (*end=='>' && (ino <= current_fs->super->s_inodes_count)) in string_to_inode() 126 retval = ext2fs_namei(current_fs, root, cwd, str, &ino); in string_to_inode() 131 if (ino > current_fs->super->s_inodes_count) { in string_to_inode() 145 if (!current_fs) { in check_fs_open() 158 if (current_fs) { in check_fs_not_open() 161 current_fs->device_name); in check_fs_not_open() 173 if (!(current_fs->flags & EXT2_FLAG_RW)) { in check_fs_read_write() 187 if (!current_fs->block_map || !current_fs->inode_map) { in check_fs_bitmaps() 428 retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); in debugfs_read_inode_full() 441 retval = ext2fs_read_inode(current_fs, ino, inode); in debugfs_read_inode() [all …]
|
D | icheck.c | 83 block_buf = malloc(current_fs->blocksize * 3); in do_icheck() 96 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_icheck() 118 blk = ext2fs_file_acl_block(current_fs, &inode); in do_icheck() 120 icheck_proc(current_fs, &blk, 0, in do_icheck() 124 ext2fs_file_acl_block_set(current_fs, &inode, blk); in do_icheck() 127 if (!ext2fs_inode_has_valid_blocks2(current_fs, &inode)) in do_icheck() 136 retval = ext2fs_block_iterate3(current_fs, ino, in do_icheck()
|
D | set_fields.c | 345 ext2_filsys current_fs; variable 645 retval = ext2fs_bmap2(current_fs, set_ino, in parse_bmap() 661 *checksum = ext2fs_group_desc_csum(current_fs, set_bg); in parse_gd_csum() 747 set_sb = *current_fs->super; in do_set_super() 749 *current_fs->super = set_sb; in do_set_super() 750 ext2fs_mark_super_dirty(current_fs); in do_set_super() 813 if (current_fs && in do_set_block_group_descriptor() 814 EXT2_DESC_SIZE(current_fs->super) >= EXT2_MIN_DESC_SIZE_64BIT) { in do_set_block_group_descriptor() 839 if (set_bg >= current_fs->group_desc_count) { in do_set_block_group_descriptor() 849 target = ext2fs_group_desc(current_fs, current_fs->group_desc, set_bg); in do_set_block_group_descriptor() [all …]
|
D | htree.c | 60 errcode = ext2fs_read_dir_block4(current_fs, pblk, buf, 0, ino); in htree_dump_leaf_node() 214 errcode = io_channel_read_blk64(current_fs->io, pblk, 1, buf); in htree_dump_int_block() 262 buf = malloc(2*current_fs->blocksize); in do_htree_dump() 268 errcode = ext2fs_bmap2(current_fs, ino, &inode, buf, 0, 0, 0, &blk); in do_htree_dump() 275 errcode = io_channel_read_blk64(current_fs->io, blk, in do_htree_dump() 294 htree_dump_int_node(current_fs, ino, &inode, rootnode, ent, in do_htree_dump() 295 buf + current_fs->blocksize, in do_htree_dump() 385 pb.buf = malloc(current_fs->blocksize); in do_dirsearch() 393 ext2fs_block_iterate3(current_fs, inode, BLOCK_FLAG_READ_ONLY, 0, in do_dirsearch() 417 errcode = io_channel_read_blk64(current_fs->io, *blocknr, 1, p->buf); in search_dir_block()
|
D | filefrag.c | 133 int blocksize = current_fs->blocksize; in filefrag() 146 blk64_t num_blocks = ext2fs_inode_i_blocks(current_fs, inode); in filefrag() 148 if (!ext2fs_has_feature_huge_file(current_fs->super) || in filefrag() 150 num_blocks /= current_fs->blocksize / 512; in filefrag() 156 if (ext2fs_inode_has_valid_blocks2(current_fs, inode)) { in filefrag() 157 retval = ext2fs_block_iterate3(current_fs, ino, in filefrag() 244 retval = ext2fs_dir_iterate2(current_fs, ino, 0, in dir_iterate() 312 fs.physical_width = int_log10(ext2fs_blocks_count(current_fs->super)); in do_filefrag()
|
D | lsdel.c | 103 now = current_fs->now ? current_fs->now : time(0); in do_lsdel() 113 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel() 119 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_lsdel() 145 if (ext2fs_inode_has_valid_blocks2(current_fs, &inode)) { in do_lsdel() 146 retval = ext2fs_block_iterate3(current_fs, ino, in do_lsdel()
|
D | quota.c | 37 if (!ext2fs_has_feature_quota(current_fs->super)) { in load_quota_ctx() 45 retval = quota_init_context(¤t_qctx, current_fs, 0); in load_quota_ctx() 47 com_err(current_fs->device_name, retval, in load_quota_ctx() 79 if (current_fs->flags & EXT2_FLAG_RW) in parse_quota_type()
|
D | logdump.c | 149 if (current_fs) in do_logdump() 150 es = current_fs->super; in do_logdump() 166 inodes_per_block = (current_fs->blocksize in do_logdump() 170 ext2fs_inode_table_loc(current_fs, inode_group) + in do_logdump() 191 if (block_to_dump != ANY_BLOCK && current_fs != NULL) { in do_logdump() 195 bitmap_to_dump = ext2fs_block_bitmap_loc(current_fs, group_to_dump); in do_logdump() 232 retval = ext2fs_file_open2(current_fs, journal_inum, in do_logdump() 393 current_fs->blocksize, 0); in dump_journal() 668 super = current_fs->super; in dump_metadata_block()
|
D | xattrs.c | 99 err = ext2fs_xattrs_open(current_fs, ino, &h); in dump_inode_attributes() 199 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_get_xattr() 289 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_set_xattr() 302 err = ext2fs_get_mem(current_fs->blocksize, &buf); in do_set_xattr() 305 buflen = fread(buf, 1, current_fs->blocksize, fp); in do_set_xattr() 347 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_rm_xattr()
|
D | ncheck.c | 57 retval = ext2fs_get_pathname(current_fs, in ncheck_proc() 152 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_ncheck() 185 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, in do_ncheck()
|
D | do_journal.c | 877 if (!ext2fs_has_feature_journal(current_fs->super)) { in do_journal_open() 889 if (current_fs->journal_name) in do_journal_open() 890 free(current_fs->journal_name); in do_journal_open() 891 current_fs->journal_name = strdup(optarg); in do_journal_open() 908 err = ext2fs_open_journal(current_fs, ¤t_journal); in do_journal_open() 940 ext2fs_close_journal(current_fs, ¤t_journal); in do_journal_close() 960 err = ext2fs_run_ext3_journal(¤t_fs); in do_journal_run() 964 ext2fs_clear_feature_journal_needs_recovery(current_fs->super); in do_journal_run() 965 ext2fs_mark_super_dirty(current_fs); in do_journal_run()
|
D | dump.c | 108 unsigned int got, blocksize = current_fs->blocksize; in dump_file() 113 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); in dump_file() 217 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); in rdump_symlink() 291 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, in rdump_inode()
|
D | ls.c | 252 retval = ext2fs_dir_iterate2(current_fs, ino, flags, in do_list_dir()
|
D | debugfs.h | 25 extern ext2_filsys current_fs;
|
D | e2freefrag.c | 432 fs = current_fs; in do_freefrag()
|
D | extent_inode.c | 91 retval = ext2fs_extent_open(current_fs, inode, ¤t_handle); in do_extent_open()
|
/external/e2fsprogs/lib/ext2fs/ |
D | tst_libext2fs.c | 68 ext2fs_block_iterate3(current_fs, ino, flags, NULL, in do_block_iterate()
|
/external/e2fsprogs/misc/ |
D | e2freefrag.c | 432 fs = current_fs; in do_freefrag()
|