Home
last modified time | relevance | path

Searched refs:current_fs (Results 1 – 21 of 21) sorted by relevance

/external/e2fsprogs/debugfs/
Ddebugfs.c55 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, &current_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(&current_fs); in open_filesystem()
[all …]
Dzap.c58 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 …]
Dunused.c41 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()
Dutil.c122 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_inode2(current_fs, ino, inode, bufsize, flags); in debugfs_read_inode2()
441 retval = ext2fs_read_inode(current_fs, ino, inode); in debugfs_read_inode()
[all …]
Dicheck.c83 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()
Dset_fields.c350 ext2_filsys current_fs; variable
663 retval = ext2fs_bmap2(current_fs, set_ino, in parse_bmap()
679 *checksum = ext2fs_group_desc_csum(current_fs, set_bg); in parse_gd_csum()
694 size_t sz = EXT2_INODE_SIZE(current_fs->super); in parse_inode_csum()
701 retval = ext2fs_read_inode_full(current_fs, set_ino, in parse_inode_csum()
708 ext2fs_swap_inode_full(current_fs, tmp_inode, in parse_inode_csum()
715 retval = ext2fs_inode_csum_set(current_fs, set_ino, in parse_inode_csum()
826 set_sb = *current_fs->super; in do_set_super()
828 *current_fs->super = set_sb; in do_set_super()
829 ext2fs_mark_super_dirty(current_fs); in do_set_super()
[all …]
Dlsdel.c103 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()
Dfilefrag.c133 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()
Dhtree.c61 errcode = ext2fs_read_dir_block4(current_fs, pblk, buf, 0, ino); in htree_dump_leaf_node()
216 errcode = io_channel_read_blk64(current_fs->io, pblk, 1, buf); in htree_dump_int_block()
264 buf = malloc(2*current_fs->blocksize); in do_htree_dump()
270 errcode = ext2fs_bmap2(current_fs, ino, &inode, buf, 0, 0, 0, &blk); in do_htree_dump()
277 errcode = io_channel_read_blk64(current_fs->io, blk, in do_htree_dump()
296 htree_dump_int_node(current_fs, ino, &inode, rootnode, ent, in do_htree_dump()
297 buf + current_fs->blocksize, in do_htree_dump()
402 pb.buf = malloc(current_fs->blocksize); in do_dirsearch()
410 ext2fs_block_iterate3(current_fs, inode, BLOCK_FLAG_READ_ONLY, 0, in do_dirsearch()
434 errcode = io_channel_read_blk64(current_fs->io, *blocknr, 1, p->buf); in search_dir_block()
Dquota.c37 if (!ext2fs_has_feature_quota(current_fs->super)) { in load_quota_ctx()
45 retval = quota_init_context(&current_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()
Dlogdump.c149 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()
Dxattrs.c99 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()
Dncheck.c57 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()
Ddo_journal.c877 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, &current_journal); in do_journal_open()
940 ext2fs_close_journal(current_fs, &current_journal); in do_journal_close()
960 err = ext2fs_run_ext3_journal(&current_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()
Ddump.c108 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()
Dls.c240 retval = ext2fs_dir_iterate2(current_fs, ino, flags, in do_list_dir()
Ddebugfs.h25 extern ext2_filsys current_fs;
De2freefrag.c438 fs = current_fs; in do_freefrag()
Dextent_inode.c91 retval = ext2fs_extent_open(current_fs, inode, &current_handle); in do_extent_open()
/external/e2fsprogs/lib/ext2fs/
Dtst_libext2fs.c68 ext2fs_block_iterate3(current_fs, ino, flags, NULL, in do_block_iterate()
/external/e2fsprogs/misc/
De2freefrag.c438 fs = current_fs; in do_freefrag()