/external/e2fsprogs/e2fsck/ |
dx_dirinfo.c | 16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) 24 printf("add_dx_dir_info for inode %lu...\n", ino); 57 ctx->dx_dir_info[ctx->dx_dir_info_count-1].ino >= ino) { 59 if (ctx->dx_dir_info[i-1].ino < ino) 62 if (dir->ino != ino) 68 dir->ino = ino; [all...] |
pass3.c | 45 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); 105 if (ext2fs_test_inode_bitmap(ctx->inode_dir_map, dir->ino)) 106 if (check_directory(ctx, dir->ino, &pctx)) 263 ext2_ino_t ino = dir, parent; local 277 if (ext2fs_mark_inode_bitmap(inode_done_map, ino)) 280 if (e2fsck_dir_info_get_parent(ctx, ino, &parent)) { 294 pctx->ino = ino; 296 if (e2fsck_reconnect_file(ctx, pctx->ino)) 357 ext2_ino_t ino; local [all...] |
dirinfo.c | 109 void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent) 118 printf("add_dir_info for inode (%lu, %lu)...\n", ino, parent); 136 ent.ino = ino; 155 ctx->dir_info->array[ctx->dir_info->count-1].ino >= ino) { 157 if (ctx->dir_info->array[i-1].ino < ino) 160 if (dir->ino != ino) [all...] |
emptydir.c | 26 ext2_ino_t ino; member in struct:empty_dir_info_struct 94 if (db->ino == 11) 98 db->blk, db->blockcnt, db->ino); 101 if (ext2fs_test_inode_bitmap(edi->dir_map, db->ino)) 103 ext2fs_mark_inode_bitmap(edi->dir_map, db->ino); 105 ext2fs_add_dir_block(edi->empty_dblist, db->ino, 130 retval = ext2fs_bmap(fs, edi->ino, &edi->inode, 158 edi->ino = db->ino; 160 retval = ext2fs_read_inode(fs, db->ino, &edi->inode) [all...] |
pass1b.c | 88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino, 90 static int clone_file(e2fsck_t ctx, ext2_ino_t ino, 118 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk, 139 ino_el->inode = ino; 144 n = dict_lookup(&ino_dict, INT_TO_VOIDPTR(ino)); 150 if (ino == EXT2_ROOT_INO) { 159 dict_alloc_insert(&ino_dict, INT_TO_VOIDPTR(ino), di); 258 ext2_ino_t ino; member in struct:process_block_struct 267 ext2_ino_t ino; local 289 pctx.errcode = ext2fs_get_next_inode(scan, &ino, &inode) 432 ext2_ino_t *shared, ino; local [all...] |
pass1.c | 69 static void mark_inode_bad(e2fsck_t ctx, ino_t ino); 80 ext2_ino_t ino; member in struct:process_block_struct 96 ext2_ino_t ino; member in struct:process_inode_block 167 int e2fsck_pass1_check_symlink(ext2_filsys fs, ext2_ino_t ino, 184 if (ext2fs_extent_open2(fs, ino, inode, &handle)) 248 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1"); 267 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1"); 346 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode, 364 printf("inode #%u, i_extra_size %d\n", pctx->ino, 379 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode 548 ext2_ino_t ino; local 1413 ext2_ino_t ino = pctx->ino; local 1828 ext2_ino_t ino = pctx->ino; local 1877 ext2_ino_t ino = pctx->ino; local [all...] |
pass2.c | 62 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); 167 pctx.dir = dx_dir->ino; 242 clear_htree(ctx, dx_dir->ino); 331 if (db_a->ino != db_b->ino) 332 return (int) (db_a->ino - db_b->ino); 344 ext2_ino_t ino, struct problem_context *pctx) 365 dirent->inode = ino; 718 ext2_ino_t ino = db->ino; local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
icount.c | 45 ext2_ino_t ino; member in struct:ext2_icount_el 265 icount->list[i].ino = hint->list[i].ino; 289 ext2_ino_t ino, int pos) 296 if (icount->last_lookup && icount->last_lookup->ino == ino) 301 new_size = icount->list[(unsigned)icount->count-1].ino; 329 el->ino = ino; 340 ext2_ino_t ino, int create 671 ext2_ino_t ino; member in struct:test_program [all...] |
mkdir.c | 38 ext2_ino_t ino = inum; local 48 if (!ino) { 50 0, &ino); 65 retval = ext2fs_new_dir_block(fs, ino, parent, &block); 72 if (parent != ino) { 96 retval = ext2fs_write_new_inode(fs, ino, &inode); 113 retval = ext2fs_link(fs, parent, name, ino, EXT2_FT_DIR); 121 if (parent != ino) { 132 ext2fs_inode_alloc_stats2(fs, ino, +1, 1);
|
alloc_stats.c | 17 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino, 20 int group = ext2fs_group_of_ino(fs, ino); 23 if (ino > fs->super->s_inodes_count) { 25 "Illegal inode number: %lu", (unsigned long) ino); 30 ext2fs_mark_inode_bitmap(fs->inode_map, ino); 32 ext2fs_unmark_inode_bitmap(fs->inode_map, ino); 46 if (ino >= first_unused_inode) 49 fs->super->s_inodes_per_group - ino; 58 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse) 60 ext2fs_inode_alloc_stats2(fs, ino, inuse, 0) [all...] |
bmove.c | 29 ext2_ino_t ino; member in struct:process_block_struct 80 printf("ino=%ld, blockcnt=%lld, %u->%u\n", pb->ino, 84 retval = ext2fs_add_dir_block(fs->dblist, pb->ino, 99 ext2_ino_t ino; local 135 retval = ext2fs_get_next_inode(scan, &ino, &inode); 139 while (ino) { 144 pb.ino = ino; 150 retval = ext2fs_block_iterate2(fs, ino, 0, block_buf [all...] |
irel.h | 65 errcode_t (*add_ref)(ext2_irel irel, ext2_ino_t ino, 72 errcode_t (*start_iter_ref)(ext2_irel irel, ext2_ino_t ino); 109 #define ext2fs_irel_add_ref(irel, ino, ref) ((irel)->add_ref((irel), ino, ref)) 110 #define ext2fs_irel_start_iter_ref(irel, ino) ((irel)->start_iter_ref((irel), ino))
|
get_pathname.c | 14 * ext2fs_get_pathname(fs, dir, ino, name) 18 * directory inode, and <ino> is the inode number itself. If 19 * <ino> is zero, then ext2fs_get_pathname will return pathname 72 ext2_ino_t ino, int maxdepth, 79 if (dir == ino) { 95 gp.search_ino = ino; 112 if (!ino) { 143 errcode_t ext2fs_get_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino, 154 if (dir == ino) 155 ino = 0 [all...] |
irel_ma.c | 35 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...] |
inode.c | 68 fs->icache->cache[i].ino = 0; 111 errcode_t (*save_get_blocks)(ext2_filsys f, ext2_ino_t ino, blk_t *blocks); 404 errcode_t ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino, 425 *ino = 0; 508 *ino = scan->current_inode; 512 errcode_t ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino, 515 return ext2fs_get_next_inode_full(scan, ino, inode, 522 errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino, 535 retval = (fs->read_inode)(fs, ino, inode); 539 if ((ino == 0) || (ino > fs->super->s_inodes_count) [all...] |
/external/e2fsprogs/debugfs/ |
icheck.c | 23 ext2_ino_t ino; member in struct:block_info 44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { 45 bw->barray[i].ino = bw->inode; 61 ext2_ino_t ino; local 101 retval = ext2fs_get_next_inode(scan, &ino, &inode); 108 while (ino) { 112 bw.inode = ino; 130 retval = ext2fs_block_iterate2(current_fs, ino, 144 retval = ext2fs_get_next_inode(scan, &ino, &inode); 155 if (binfo->ino == 0) [all...] |
util.c | 109 ext2_ino_t ino; local 115 * If the string is of the form <ino>, then treat it as an 119 ino = strtoul(str+1, &end, 0); 121 return ino; 124 retval = ext2fs_namei(current_fs, root, cwd, str, &ino); 129 return ino; 354 int debugfs_read_inode_full(ext2_ino_t ino, struct ext2_inode * inode, 359 retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); 361 com_err(cmd, retval, "while reading inode %u", ino); 367 int debugfs_read_inode(ext2_ino_t ino, struct ext2_inode * inode [all...] |
ls.c | 53 ext2_ino_t ino; variable 67 ino = dirent->inode; 72 ino = 0; 77 if (ino && debugfs_read_inode(ino, &inode, name)) return 0; 78 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name); 86 if (ino) { 87 if (debugfs_read_inode(ino, &inode, name)) 99 fprintf(ls->f, "%c%6u%c %6o (%d) %5d %5d ", lbr, ino, rbr,
|
ncheck.c | 58 ext2_ino_t ino; local 95 retval = ext2fs_get_next_inode(scan, &ino, &inode); 103 while (ino) { 118 retval = ext2fs_get_pathname(current_fs, ino, 0, &iw.parent); 125 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, 139 retval = ext2fs_get_next_inode(scan, &ino, &inode);
|
dump.c | 100 static void dump_file(const char *cmdname, ext2_ino_t ino, int fd, 110 if (debugfs_read_inode(ino, &inode, cmdname)) 113 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); 188 static void rdump_symlink(ext2_ino_t ino, struct ext2_inode *inode, 208 retval = ext2fs_file_open(current_fs, ino, 0, &e2_file); 242 static void rdump_inode(ext2_ino_t ino, struct ext2_inode *inode, 257 rdump_symlink(ino, inode, fullname); 265 dump_file("rdump", ino, fd, 1, fullname); 278 retval = ext2fs_dir_iterate(current_fs, ino, 0, 0, 316 ext2_ino_t ino; local [all...] |
/external/e2fsprogs/tests/progs/ |
test_icount.c | 51 const char *str, ext2_ino_t *ino) 55 *ino = strtoul(str, &tmp, 0); 106 ext2_ino_t ino; local 115 if (parse_inode(argv[0], "inode", argv[1], &ino)) 117 retval = ext2fs_icount_fetch(test_icount, ino, &count); 129 ext2_ino_t ino; local 138 if (parse_inode(argv[0], "inode", argv[1], &ino)) 140 retval = ext2fs_icount_increment(test_icount, ino, &count); 153 ext2_ino_t ino; local 162 if (parse_inode(argv[0], "inode", argv[1], &ino)) 177 ext2_ino_t ino; local [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
bfs_fs.h | 44 __le16 ino; member in struct:bfs_dirent 66 #define BFS_INO2OFF(ino) \ 67 ((__u32)(((ino) - BFS_ROOT_INO) * sizeof(struct bfs_inode)) + BFS_BSIZE)
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
bfs_fs.h | 44 __le16 ino; member in struct:bfs_dirent 66 #define BFS_INO2OFF(ino) \ 67 ((__u32)(((ino) - BFS_ROOT_INO) * sizeof(struct bfs_inode)) + BFS_BSIZE)
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
bfs_fs.h | 44 __le16 ino; member in struct:bfs_dirent 66 #define BFS_INO2OFF(ino) \ 67 ((__u32)(((ino) - BFS_ROOT_INO) * sizeof(struct bfs_inode)) + BFS_BSIZE)
|
/system/core/toolbox/ |
du.c | 241 linkchk(dev_t dev, ino_t ino) 245 ino_t ino; member in struct:entry 260 if (dev == 0 && ino == 0) { 287 if (ohtable[i].ino || ohtable[i].dev) 288 linkchk(ohtable[i].dev, ohtable[i].ino); 296 tmp |= ino; 302 while (htable[h].ino || htable[h].dev) { 303 if ((htable[h].ino == ino) && (htable[h].dev == dev)) 310 htable[h].ino = ino [all...] |