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
143 current_fs = NULL; in open_filesystem()
151 current_fs = NULL; in open_filesystem()
157 current_fs = NULL; in open_filesystem()
177 io_ptr, &current_fs); in open_filesystem()
182 current_fs = NULL; in open_filesystem()
185 current_fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; in open_filesystem()
190 retval = ext2fs_read_inode_bitmap(current_fs); in open_filesystem()
195 retval = ext2fs_read_block_bitmap(current_fs); in open_filesystem()
203 retval = ext2fs_set_data_io(current_fs, data_io); in open_filesystem()
[all …]
Dzap.c57 if (bit >= (int) current_fs->blocksize * 8) { in do_zap_block()
60 current_fs->blocksize); in do_zap_block()
80 if (offset >= (int) current_fs->blocksize) { in do_zap_block()
83 current_fs->blocksize); in do_zap_block()
108 length = current_fs->blocksize - offset; in do_zap_block()
109 if ((offset + length) > (int) current_fs->blocksize) { in do_zap_block()
131 errcode = ext2fs_bmap2(current_fs, inode, 0, 0, 0, in do_zap_block()
140 buf = malloc(current_fs->blocksize); in do_zap_block()
146 errcode = io_channel_read_blk64(current_fs->io, block, 1, buf); in do_zap_block()
158 errcode = io_channel_write_blk64(current_fs->io, block, 1, buf); in do_zap_block()
[all …]
Dunused.c39 for (blk=current_fs->super->s_first_data_block; in do_dump_unused()
40 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()
41 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused()
43 retval = io_channel_read_blk64(current_fs->io, blk, 1, buf); in do_dump_unused()
48 for (i=0; i < current_fs->blocksize; i++) in do_dump_unused()
51 if (i >= current_fs->blocksize) in do_dump_unused()
55 for (i=0; i < current_fs->blocksize; i++) in do_dump_unused()
Dicheck.c82 block_buf = malloc(current_fs->blocksize * 3); in do_icheck()
95 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_icheck()
117 blk = ext2fs_file_acl_block(current_fs, &inode); in do_icheck()
119 icheck_proc(current_fs, &blk, 0, in do_icheck()
123 ext2fs_file_acl_block_set(current_fs, &inode, blk); in do_icheck()
126 if (!ext2fs_inode_has_valid_blocks2(current_fs, &inode)) in do_icheck()
135 retval = ext2fs_block_iterate3(current_fs, ino, in do_icheck()
Dutil.c126 retval = ext2fs_namei(current_fs, root, cwd, str, &ino); in string_to_inode()
140 if (!current_fs) { in check_fs_open()
153 if (current_fs) { in check_fs_not_open()
156 current_fs->device_name); in check_fs_not_open()
168 if (!(current_fs->flags & EXT2_FLAG_RW)) { in check_fs_read_write()
182 if (!current_fs->block_map || !current_fs->inode_map) { in check_fs_bitmaps()
423 retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); in debugfs_read_inode_full()
436 retval = ext2fs_read_inode(current_fs, ino, inode); in debugfs_read_inode()
451 retval = ext2fs_write_inode_full(current_fs, ino, in debugfs_write_inode_full()
465 retval = ext2fs_write_inode(current_fs, ino, inode); in debugfs_write_inode()
[all …]
Dset_fields.c342 ext2_filsys current_fs; variable
642 retval = ext2fs_bmap2(current_fs, set_ino, in parse_bmap()
658 *checksum = ext2fs_group_desc_csum(current_fs, set_bg); in parse_gd_csum()
743 set_sb = *current_fs->super; in do_set_super()
745 *current_fs->super = set_sb; in do_set_super()
746 ext2fs_mark_super_dirty(current_fs); in do_set_super()
806 if (current_fs && in do_set_block_group_descriptor()
807 EXT2_DESC_SIZE(current_fs->super) >= EXT2_MIN_DESC_SIZE_64BIT) { in do_set_block_group_descriptor()
832 if (set_bg >= current_fs->group_desc_count) { in do_set_block_group_descriptor()
842 target = ext2fs_group_desc(current_fs, current_fs->group_desc, set_bg); in do_set_block_group_descriptor()
[all …]
Dlsdel.c102 now = current_fs->now ? current_fs->now : time(0); in do_lsdel()
112 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel()
118 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_lsdel()
144 if (ext2fs_inode_has_valid_blocks2(current_fs, &inode)) { in do_lsdel()
145 retval = ext2fs_block_iterate3(current_fs, ino, in do_lsdel()
Dhtree.c60 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()
261 buf = malloc(2*current_fs->blocksize); in do_htree_dump()
267 errcode = ext2fs_bmap2(current_fs, ino, &inode, buf, 0, 0, 0, &blk); in do_htree_dump()
274 errcode = io_channel_read_blk64(current_fs->io, blk, in do_htree_dump()
292 htree_dump_int_node(current_fs, ino, &inode, rootnode, ent, in do_htree_dump()
293 buf + current_fs->blocksize, in do_htree_dump()
381 pb.buf = malloc(current_fs->blocksize); in do_dirsearch()
389 ext2fs_block_iterate3(current_fs, inode, BLOCK_FLAG_READ_ONLY, 0, in do_dirsearch()
413 errcode = io_channel_read_blk64(current_fs->io, *blocknr, 1, p->buf); in search_dir_block()
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()
311 fs.physical_width = int_log10(ext2fs_blocks_count(current_fs->super)); in do_filefrag()
Dxattrs.c64 err = ext2fs_xattrs_open(current_fs, ino, &h); in dump_inode_attributes()
147 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_get_xattr()
221 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_set_xattr()
230 err = ext2fs_get_mem(current_fs->blocksize, &buf); in do_set_xattr()
233 buflen = fread(buf, 1, current_fs->blocksize, fp); in do_set_xattr()
281 err = ext2fs_xattrs_open(current_fs, ino, &h); in do_rm_xattr()
Dquota.c37 if (!ext2fs_has_feature_quota(current_fs->super)) { in load_quota_ctx()
45 retval = quota_init_context(&current_qctx, current_fs, QUOTA_ALL_BIT); 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.c144 if (current_fs) in do_logdump()
145 es = current_fs->super; in do_logdump()
161 inodes_per_block = (current_fs->blocksize in do_logdump()
165 ext2fs_inode_table_loc(current_fs, inode_group) + in do_logdump()
186 if (block_to_dump != ANY_BLOCK && current_fs != NULL) { in do_logdump()
190 bitmap_to_dump = ext2fs_block_bitmap_loc(current_fs, group_to_dump); in do_logdump()
227 retval = ext2fs_file_open2(current_fs, journal_inum, in do_logdump()
657 super = current_fs->super; in dump_metadata_block()
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()
213 if (ext2fs_inode_data_blocks2(current_fs, inode) == 0) in rdump_symlink()
218 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); in rdump_symlink()
292 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, in rdump_inode()
Dncheck.c57 retval = ext2fs_get_pathname(current_fs, in ncheck_proc()
143 retval = ext2fs_open_inode_scan(current_fs, 0, &scan); in do_ncheck()
176 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, in do_ncheck()
Ddo_journal.c875 if (!ext2fs_has_feature_journal(current_fs->super)) { in do_journal_open()
887 if (current_fs->journal_name) in do_journal_open()
888 free(current_fs->journal_name); in do_journal_open()
889 current_fs->journal_name = strdup(optarg); in do_journal_open()
906 err = ext2fs_open_journal(current_fs, &current_journal); in do_journal_open()
936 ext2fs_close_journal(current_fs, &current_journal); in do_journal_close()
954 err = ext2fs_run_ext3_journal(&current_fs); in do_journal_run()
958 ext2fs_clear_feature_journal_needs_recovery(current_fs->super); in do_journal_run()
959 ext2fs_mark_super_dirty(current_fs); in do_journal_run()
Dls.c252 retval = ext2fs_dir_iterate2(current_fs, ino, flags, in do_list_dir()
Ddebugfs.h25 extern ext2_filsys current_fs;
De2freefrag.c323 fs = current_fs; in do_freefrag()
Dextent_inode.c90 retval = ext2fs_extent_open(current_fs, inode, &current_handle); in do_extent_open()
/external/e2fsprogs/lib/ext2fs/
Dtst_libext2fs.c67 ext2fs_block_iterate3(current_fs, ino, flags, NULL, in do_block_iterate()
/external/e2fsprogs/misc/
De2freefrag.c323 fs = current_fs; in do_freefrag()