Lines Matching refs:ino
130 void e2fsck_add_dir_info(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent) in e2fsck_add_dir_info() argument
138 printf("add_dir_info for inode (%lu, %lu)...\n", ino, parent); in e2fsck_add_dir_info()
166 ent.ino = ino; in e2fsck_add_dir_info()
184 ctx->dir_info->array[ctx->dir_info->count-1].ino >= ino) { in e2fsck_add_dir_info()
186 if (ctx->dir_info->array[i-1].ino < ino) in e2fsck_add_dir_info()
189 if (dir->ino != ino) in e2fsck_add_dir_info()
195 dir->ino = ino; in e2fsck_add_dir_info()
204 static struct dir_info *e2fsck_get_dir_info(e2fsck_t ctx, ext2_ino_t ino) in e2fsck_get_dir_info() argument
213 printf("e2fsck_get_dir_info %d...", ino); in e2fsck_get_dir_info()
222 key.dptr = (unsigned char *) &ino; in e2fsck_get_dir_info()
234 ret_dir_info.ino = ino; in e2fsck_get_dir_info()
238 printf("(%d,%d,%d)\n", ino, buf->dotdot, buf->parent); in e2fsck_get_dir_info()
245 if (db->last_lookup && db->last_lookup->ino == ino) in e2fsck_get_dir_info()
250 if (ino == ctx->dir_info->array[low].ino) { in e2fsck_get_dir_info()
252 printf("(%d,%d,%d)\n", ino, in e2fsck_get_dir_info()
258 if (ino == ctx->dir_info->array[high].ino) { in e2fsck_get_dir_info()
260 printf("(%d,%d,%d)\n", ino, in e2fsck_get_dir_info()
271 if (ino == ctx->dir_info->array[mid].ino) { in e2fsck_get_dir_info()
273 printf("(%d,%d,%d)\n", ino, in e2fsck_get_dir_info()
279 if (ino < ctx->dir_info->array[mid].ino) in e2fsck_get_dir_info()
297 printf("e2fsck_put_dir_info (%d, %d, %d)...", dir->ino, dir->dotdot, in e2fsck_put_dir_info()
308 key.dptr = (unsigned char *) &dir->ino; in e2fsck_put_dir_info()
401 ret_dir_info.ino = *((ext2_ino_t *) iter->tdb_iter.dptr); in e2fsck_dir_info_iter()
415 printf("iter(%d, %d, %d)...", ctx->dir_info->array[iter->i].ino, in e2fsck_dir_info_iter()
427 int e2fsck_dir_info_set_parent(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_dir_info_set_parent() argument
432 p = e2fsck_get_dir_info(ctx, ino); in e2fsck_dir_info_set_parent()
444 int e2fsck_dir_info_set_dotdot(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_dir_info_set_dotdot() argument
449 p = e2fsck_get_dir_info(ctx, ino); in e2fsck_dir_info_set_dotdot()
461 int e2fsck_dir_info_get_parent(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_dir_info_get_parent() argument
466 p = e2fsck_get_dir_info(ctx, ino); in e2fsck_dir_info_get_parent()
477 int e2fsck_dir_info_get_dotdot(e2fsck_t ctx, ext2_ino_t ino, in e2fsck_dir_info_get_dotdot() argument
482 p = e2fsck_get_dir_info(ctx, ino); in e2fsck_dir_info_get_dotdot()