Home
last modified time | relevance | path

Searched refs:ino (Results 1 – 25 of 139) sorted by relevance

123456

/external/e2fsprogs/lib/ext2fs/
Dicount.c45 ext2_ino_t ino; member
278 icount->list[i].ino = hint->list[i].ino; in ext2fs_create_icount2()
302 ext2_ino_t ino, int pos) in insert_icount_el() argument
309 if (icount->last_lookup && icount->last_lookup->ino == ino) in insert_icount_el()
314 new_size = icount->list[(unsigned)icount->count-1].ino; in insert_icount_el()
342 el->ino = ino; in insert_icount_el()
353 ext2_ino_t ino, int create) in get_icount_el() argument
361 (ino > icount->list[(unsigned)icount->count-1].ino))) { in get_icount_el()
362 return insert_icount_el(icount, ino, (unsigned) icount->count); in get_icount_el()
369 if (ino == icount->list[icount->cursor].ino) in get_icount_el()
[all …]
Ddblist.c159 errcode_t ext2fs_add_dir_block2(ext2_dblist dblist, ext2_ino_t ino, in ext2fs_add_dir_block2() argument
181 new_entry->ino = ino; in ext2fs_add_dir_block2()
192 errcode_t ext2fs_set_dir_block2(ext2_dblist dblist, ext2_ino_t ino, in ext2fs_set_dir_block2() argument
200 if ((dblist->list[i].ino != ino) || in ext2fs_set_dir_block2()
255 if (db_a->ino != db_b->ino) in dir_block_cmp2()
256 return (int) (db_a->ino - db_b->ino); in dir_block_cmp2()
297 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_add_dir_block() argument
300 return ext2fs_add_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_add_dir_block()
306 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_set_dir_block() argument
309 return ext2fs_set_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_set_dir_block()
[all …]
Dinode.c68 fs->icache->cache[i].ino = 0; in ext2fs_flush_icache()
111 errcode_t (*save_get_blocks)(ext2_filsys f, ext2_ino_t ino, blk_t *blocks); in ext2fs_open_inode_scan()
404 errcode_t ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino, in ext2fs_get_next_inode_full() argument
425 *ino = 0; in ext2fs_get_next_inode_full()
508 *ino = scan->current_inode; in ext2fs_get_next_inode_full()
512 errcode_t ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino, in ext2fs_get_next_inode() argument
515 return ext2fs_get_next_inode_full(scan, ino, inode, in ext2fs_get_next_inode()
522 errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, in ext2fs_read_inode_full() argument
538 retval = (fs->read_inode)(fs, ino, inode); in ext2fs_read_inode_full()
542 if ((ino == 0) || (ino > fs->super->s_inodes_count)) in ext2fs_read_inode_full()
[all …]
Dmkdir.c39 ext2_ino_t ino = inum; in ext2fs_mkdir() local
49 if (!ino) { in ext2fs_mkdir()
51 0, &ino); in ext2fs_mkdir()
66 retval = ext2fs_new_dir_block(fs, ino, parent, &block); in ext2fs_mkdir()
73 if (parent != ino) { in ext2fs_mkdir()
100 retval = ext2fs_write_new_inode(fs, ino, &inode); in ext2fs_mkdir()
105 retval = ext2fs_extent_open2(fs, ino, &inode, &handle); in ext2fs_mkdir()
127 retval = ext2fs_link(fs, parent, name, ino, EXT2_FT_DIR); in ext2fs_mkdir()
135 if (parent != ino) { in ext2fs_mkdir()
146 ext2fs_inode_alloc_stats2(fs, ino, +1, 1); in ext2fs_mkdir()
Dalloc_stats.c17 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, in ext2fs_inode_alloc_stats2() argument
20 int group = ext2fs_group_of_ino(fs, ino); in ext2fs_inode_alloc_stats2()
23 if (ino > fs->super->s_inodes_count) { in ext2fs_inode_alloc_stats2()
25 "Illegal inode number: %lu", (unsigned long) ino); in ext2fs_inode_alloc_stats2()
30 ext2fs_mark_inode_bitmap2(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
32 ext2fs_unmark_inode_bitmap2(fs->inode_map, ino); in ext2fs_inode_alloc_stats2()
46 if (ino >= first_unused_inode) in ext2fs_inode_alloc_stats2()
47 …unused_set(fs, group, group * fs->super->s_inodes_per_group + fs->super->s_inodes_per_group - ino); in ext2fs_inode_alloc_stats2()
56 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse) in ext2fs_inode_alloc_stats() argument
58 ext2fs_inode_alloc_stats2(fs, ino, inuse, 0); in ext2fs_inode_alloc_stats()
Direl_ma.c35 static errcode_t ima_add_ref(ext2_irel irel, ext2_ino_t ino,
37 static errcode_t ima_start_iter_ref(ext2_irel irel, ext2_ino_t ino);
197 ext2_ino_t ino;
202 ino = ma->orig_map[(unsigned) orig];
203 if (ino == 0)
205 *old = ino;
206 *ent = ma->entries[(unsigned) ino];
233 static errcode_t ima_add_ref(ext2_irel irel, ext2_ino_t ino,
243 if (ino > ma->max_inode)
246 ref_ent = ma->ref_entries + (unsigned) ino;
[all …]
Dbmove.c29 ext2_ino_t ino; member
81 (unsigned) pb->ino, blockcnt, in process_block()
86 retval = ext2fs_add_dir_block2(fs->dblist, pb->ino, in process_block()
101 ext2_ino_t ino; in ext2fs_move_blocks() local
137 retval = ext2fs_get_next_inode(scan, &ino, &inode); in ext2fs_move_blocks()
141 while (ino) { in ext2fs_move_blocks()
146 pb.ino = ino; in ext2fs_move_blocks()
152 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in ext2fs_move_blocks()
160 retval = ext2fs_get_next_inode(scan, &ino, &inode); in ext2fs_move_blocks()
Dget_pathname.c72 ext2_ino_t ino, int maxdepth, in ext2fs_get_pathname_int() argument
79 if (dir == ino) { in ext2fs_get_pathname_int()
95 gp.search_ino = ino; in ext2fs_get_pathname_int()
104 if (ino) in ext2fs_get_pathname_int()
105 snprintf(tmp, sizeof(tmp), "<%u>/<%u>", dir, ino); in ext2fs_get_pathname_int()
124 if (!ino) { in ext2fs_get_pathname_int()
154 errcode_t ext2fs_get_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino, in ext2fs_get_pathname() argument
165 if (dir == ino) in ext2fs_get_pathname()
166 ino = 0; in ext2fs_get_pathname()
167 retval = ext2fs_get_pathname_int(fs, dir, ino, 32, buf, name); in ext2fs_get_pathname()
Dsymlink.c30 errcode_t ext2fs_symlink(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t ino, in ext2fs_symlink() argument
67 if (!ino) { in ext2fs_symlink()
69 0, &ino); in ext2fs_symlink()
107 retval = ext2fs_write_new_inode(fs, ino, &inode); in ext2fs_symlink()
112 retval = ext2fs_bmap2(fs, ino, &inode, NULL, BMAP_SET, 0, NULL, in ext2fs_symlink()
134 retval = ext2fs_link(fs, parent, name, ino, EXT2_FT_SYMLINK); in ext2fs_symlink()
144 ext2fs_inode_alloc_stats2(fs, ino, +1, 0); in ext2fs_symlink()
/external/e2fsprogs/e2fsck/
Ddx_dirinfo.c16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) in e2fsck_add_dx_dir() argument
24 printf("add_dx_dir_info for inode %lu...\n", ino); in e2fsck_add_dx_dir()
57 ctx->dx_dir_info[ctx->dx_dir_info_count-1].ino >= ino) { in e2fsck_add_dx_dir()
59 if (ctx->dx_dir_info[i-1].ino < ino) in e2fsck_add_dx_dir()
62 if (dir->ino != ino) in e2fsck_add_dx_dir()
68 dir->ino = ino; in e2fsck_add_dx_dir()
81 struct dx_dir_info *e2fsck_get_dx_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dx_dir_info() argument
89 if (ino == ctx->dx_dir_info[low].ino) in e2fsck_get_dx_dir_info()
91 if (ino == ctx->dx_dir_info[high].ino) in e2fsck_get_dx_dir_info()
98 if (ino == ctx->dx_dir_info[mid].ino) in e2fsck_get_dx_dir_info()
[all …]
Ddirinfo.c117 void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent) in e2fsck_add_dir_info() argument
126 printf("add_dir_info for inode (%lu, %lu)...\n", ino, parent); in e2fsck_add_dir_info()
144 ent.ino = ino; in e2fsck_add_dir_info()
163 ctx->dir_info->array[ctx->dir_info->count-1].ino >= ino) { in e2fsck_add_dir_info()
165 if (ctx->dir_info->array[i-1].ino < ino) in e2fsck_add_dir_info()
168 if (dir->ino != ino) in e2fsck_add_dir_info()
174 dir->ino = ino; in e2fsck_add_dir_info()
183 static struct dir_info *e2fsck_get_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dir_info() argument
194 printf("e2fsck_get_dir_info %d...", ino); in e2fsck_get_dir_info()
200 key.dptr = (unsigned char *) &ino; in e2fsck_get_dir_info()
[all …]
Dpass3.c45 static int check_directory(e2fsck_t ctx, ext2_ino_t ino,
47 static void fix_dotdot(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent);
106 if (ext2fs_test_inode_bitmap2(ctx->inode_dir_map, dir->ino)) in e2fsck_pass3()
107 if (check_directory(ctx, dir->ino, &pctx)) in e2fsck_pass3()
265 ext2_ino_t ino = dir, parent; in check_directory() local
279 if (ext2fs_mark_inode_bitmap2(inode_done_map, ino)) in check_directory()
282 if (e2fsck_dir_info_get_parent(ctx, ino, &parent)) { in check_directory()
296 pctx->ino = ino; in check_directory()
298 if (e2fsck_reconnect_file(ctx, pctx->ino)) in check_directory()
301 fix_dotdot(ctx, pctx->ino, in check_directory()
[all …]
Dpass1b.c88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
90 static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
119 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, in add_dupe() argument
140 ino_el->inode = ino; in add_dupe()
145 n = dict_lookup(&ino_dict, INT_TO_VOIDPTR(ino)); in add_dupe()
151 if (ino == EXT2_ROOT_INO) { in add_dupe()
160 dict_alloc_insert(&ino_dict, INT_TO_VOIDPTR(ino), di); in add_dupe()
261 ext2_ino_t ino; member
271 ext2_ino_t ino = 0; in pass1b() local
293 if (ino % (fs->super->s_inodes_per_group * 4) == 1) { in pass1b()
[all …]
Dpass1.c69 static void mark_inode_bad(e2fsck_t ctx, ino_t ino);
80 ext2_ino_t ino; member
97 ext2_ino_t ino; member
168 int e2fsck_pass1_check_symlink(ext2_filsys fs, ext2_ino_t ino, in e2fsck_pass1_check_symlink() argument
185 if (ext2fs_extent_open2(fs, ino, inode, &handle)) in e2fsck_pass1_check_symlink()
249 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1"); in check_immutable()
268 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1"); in check_size()
346 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode, in check_ea_in_inode()
364 printf("inode #%u, i_extra_size %d\n", pctx->ino, in check_inode_extra_space()
379 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode, in check_inode_extra_space()
[all …]
Demptydir.c26 ext2_ino_t ino; member
94 if (db->ino == 11) in add_empty_dirblock()
98 db->blk, db->blockcnt, db->ino); in add_empty_dirblock()
101 if (ext2fs_test_inode_bitmap(edi->dir_map, db->ino)) in add_empty_dirblock()
103 ext2fs_mark_inode_bitmap(edi->dir_map, db->ino); in add_empty_dirblock()
105 ext2fs_add_dir_block2(edi->empty_dblist, db->ino, in add_empty_dirblock()
130 retval = ext2fs_bmap2(fs, edi->ino, &edi->inode, in empty_pass1()
158 edi->ino = db->ino; in fix_directory()
160 retval = ext2fs_read_inode(fs, db->ino, &edi->inode); in fix_directory()
164 retval = ext2fs_block_iterate3(fs, db->ino, 0, edi->block_buf, in fix_directory()
[all …]
Dpass2.c62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf);
69 static void clear_htree(e2fsck_t ctx, ext2_ino_t ino);
172 pctx.dir = dx_dir->ino; in e2fsck_pass2()
247 clear_htree(ctx, dx_dir->ino); in e2fsck_pass2()
336 if (db_a->ino != db_b->ino) in special_dir_block_cmp()
337 return (int) (db_a->ino - db_b->ino); in special_dir_block_cmp()
349 ext2_ino_t ino, struct problem_context *pctx) in check_dot() argument
370 dirent->inode = ino; in check_dot()
378 if (dirent->inode != ino) { in check_dot()
380 dirent->inode = ino; in check_dot()
[all …]
/external/e2fsprogs/debugfs/
Dutil.c110 ext2_ino_t ino; in string_to_inode() local
120 ino = strtoul(str+1, &end, 0); in string_to_inode()
122 return ino; in string_to_inode()
125 retval = ext2fs_namei(current_fs, root, cwd, str, &ino); in string_to_inode()
130 return ino; in string_to_inode()
386 int debugfs_read_inode_full(ext2_ino_t ino, struct ext2_inode * inode, in debugfs_read_inode_full() argument
391 retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); in debugfs_read_inode_full()
393 com_err(cmd, retval, "while reading inode %u", ino); in debugfs_read_inode_full()
399 int debugfs_read_inode(ext2_ino_t ino, struct ext2_inode * inode, in debugfs_read_inode() argument
404 retval = ext2fs_read_inode(current_fs, ino, inode); in debugfs_read_inode()
[all …]
Dfilefrag.c36 ext2_ino_t ino; member
128 static void filefrag(ext2_ino_t ino, struct ext2_inode *inode, in filefrag() argument
156 retval = ext2fs_block_iterate3(current_fs, ino, in filefrag()
177 ext2_ino_t ino; in filefrag_dir_proc() local
188 ino = dirent->inode; in filefrag_dir_proc()
203 if (debugfs_read_inode(ino, &inode, fs->name)) in filefrag_dir_proc()
206 filefrag(ino, &inode, fs); in filefrag_dir_proc()
219 p->ino = ino; in filefrag_dir_proc()
234 static void dir_iterate(ext2_ino_t ino, struct filefrag_struct *fs) in dir_iterate() argument
242 retval = ext2fs_dir_iterate2(current_fs, ino, 0, in dir_iterate()
[all …]
Dicheck.c23 ext2_ino_t ino; member
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
45 bw->barray[i].ino = bw->inode; in icheck_proc()
61 ext2_ino_t ino; in do_icheck() local
101 retval = ext2fs_get_next_inode(scan, &ino, &inode); in do_icheck()
108 while (ino) { in do_icheck()
114 bw.inode = ino; in do_icheck()
134 retval = ext2fs_block_iterate3(current_fs, ino, in do_icheck()
148 retval = ext2fs_get_next_inode(scan, &ino, &inode); in do_icheck()
159 if (binfo->ino == 0) { in do_icheck()
[all …]
Dlsdel.c24 ext2_ino_t ino; member
79 ext2_ino_t ino; in do_lsdel() local
125 retval = ext2fs_get_next_inode(scan, &ino, &inode); in do_lsdel()
133 while (ino) { in do_lsdel()
138 lsd.inode = ino; in do_lsdel()
143 retval = ext2fs_block_iterate3(current_fs, ino, in do_lsdel()
164 delarray[num_delarray].ino = ino; in do_lsdel()
176 retval = ext2fs_get_next_inode(scan, &ino, &inode); in do_lsdel()
194 delarray[i].ino, in do_lsdel()
Ddump.c102 static void dump_file(const char *cmdname, ext2_ino_t ino, int fd, in dump_file() argument
112 if (debugfs_read_inode(ino, &inode, cmdname)) in dump_file()
115 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); in dump_file()
200 static void rdump_symlink(ext2_ino_t ino, struct ext2_inode *inode, in rdump_symlink() argument
220 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); in rdump_symlink()
254 static void rdump_inode(ext2_ino_t ino, struct ext2_inode *inode, in rdump_inode() argument
269 rdump_symlink(ino, inode, fullname); in rdump_inode()
277 dump_file("rdump", ino, fd, 1, fullname); in rdump_inode()
294 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, in rdump_inode()
331 ext2_ino_t ino; in do_rdump() local
[all …]
/external/e2fsprogs/tests/progs/
Dtest_icount.c51 const char *str, ext2_ino_t *ino) in parse_inode() argument
55 *ino = strtoul(str, &tmp, 0); in parse_inode()
106 ext2_ino_t ino; in do_fetch() local
115 if (parse_inode(argv[0], "inode", argv[1], &ino)) in do_fetch()
117 retval = ext2fs_icount_fetch(test_icount, ino, &count); in do_fetch()
129 ext2_ino_t ino; in do_increment() local
138 if (parse_inode(argv[0], "inode", argv[1], &ino)) in do_increment()
140 retval = ext2fs_icount_increment(test_icount, ino, &count); in do_increment()
153 ext2_ino_t ino; in do_decrement() local
162 if (parse_inode(argv[0], "inode", argv[1], &ino)) in do_decrement()
[all …]
/external/e2fsprogs/lib/quota/
Dquotaio.c112 errcode_t quota_inode_truncate(ext2_filsys fs, ext2_ino_t ino) in quota_inode_truncate() argument
117 if ((err = ext2fs_read_inode(fs, ino, &inode))) in quota_inode_truncate()
120 if ((ino == EXT4_USR_QUOTA_INO) || (ino == EXT4_GRP_QUOTA_INO)) { in quota_inode_truncate()
124 err = ext2fs_punch(fs, ino, &inode, NULL, 0, ~0ULL); in quota_inode_truncate()
132 err = ext2fs_write_inode(fs, ino, &inode); in quota_inode_truncate()
136 static ext2_off64_t compute_inode_size(ext2_filsys fs, ext2_ino_t ino) in compute_inode_size() argument
140 ext2fs_block_iterate3(fs, ino, in compute_inode_size()
221 h->qh_qf.ino = qf_ino; in quota_file_open()
246 static errcode_t quota_inode_init_new(ext2_filsys fs, ext2_ino_t ino) in quota_inode_init_new() argument
251 err = ext2fs_read_inode(fs, ino, &inode); in quota_inode_init_new()
[all …]
Dmkquota.c57 ext2_ino_t ino; in quota_file_exists() local
65 &ino); in quota_file_exists()
69 return ino; in quota_file_exists()
75 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, int qtype) in quota_set_sb_inum() argument
82 log_debug("setting quota ino in superblock: ino=%u, type=%d", ino, in quota_set_sb_inum()
84 *inump = ino; in quota_set_sb_inum()
162 quota_inode_truncate(fs, h->qh_qf.ino); in quota_write_inode()
167 quota_set_sb_inum(fs, h->qh_qf.ino, i); in quota_write_inode()
291 void quota_data_add(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino, in quota_data_add() argument
301 log_debug("ADD_DATA: Inode: %u, UID/GID: %u/%u, space: %ld", ino, in quota_data_add()
[all …]
/external/f2fs-tools/fsck/
Ddump.c131 DBG(1, "nat_entry.ino [0x%x]\n", ni.ino); in dump_node()
137 DBG(1, "node_blk.footer.ino [0x%x]\n", le32_to_cpu(node_blk->footer.ino)); in dump_node()
140 if (le32_to_cpu(node_blk->footer.ino) == ni.ino && in dump_node()
153 nid_t ino, nid; in dump_inode_from_blkaddr() local
174 DBG(1, "NAT.ino [0x%x]\n", ni.ino); in dump_inode_from_blkaddr()
181 ino = le32_to_cpu(node_blk->footer.ino); in dump_inode_from_blkaddr()
184 if (ino == nid) { in dump_inode_from_blkaddr()
187 ret = get_node_info(sbi, ino, &ni); in dump_inode_from_blkaddr()
192 return ino; in dump_inode_from_blkaddr()

123456