Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:iter

316 	struct dir_info_iter *iter;
319 iter = e2fsck_allocate_memory(ctx, sizeof(struct dir_info_iter),
321 memset(iter, 0, sizeof(iter));
324 iter->tdb_iter = tdb_firstkey(db->tdb);
326 return iter;
330 struct dir_info_iter *iter)
332 free(iter->tdb_iter.dptr);
333 ext2fs_free_mem(&iter);
339 struct dir_info *e2fsck_dir_info_iter(e2fsck_t ctx, struct dir_info_iter *iter)
346 if (!ctx->dir_info || !iter)
350 if (iter->tdb_iter.dptr == 0)
352 key = iter->tdb_iter;
355 printf("iter fetch failed: %s\n",
360 ret_dir_info.ino = *((ext2_ino_t *) iter->tdb_iter.dptr);
363 iter->tdb_iter = tdb_nextkey(db->tdb, key);
369 if (iter->i >= ctx->dir_info->count)
373 printf("iter(%d, %d, %d)...", ctx->dir_info->array[iter->i].ino,
374 ctx->dir_info->array[iter->i].dotdot,
375 ctx->dir_info->array[iter->i].parent);
377 ctx->dir_info->last_lookup = ctx->dir_info->array + iter->i++;