Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:ctx

104 	struct		dir_context	ctx;
113 ctx.dir = dir;
114 ctx.flags = flags;
116 ctx.buf = block_buf;
118 retval = ext2fs_get_mem(fs->blocksize, &ctx.buf);
122 ctx.func = func;
123 ctx.priv_data = priv_data;
124 ctx.errcode = 0;
126 ext2fs_process_dir_block, &ctx);
128 ext2fs_free_mem(&ctx.buf);
131 return ctx.errcode;
185 struct dir_context *ctx = (struct dir_context *) priv_data;
200 ctx->errcode = ext2fs_read_dir_block(fs, *blocknr, ctx->buf);
201 if (ctx->errcode)
205 dirent = (struct ext2_dir_entry *) (ctx->buf + offset);
212 ctx->errcode = EXT2_ET_DIR_CORRUPTED;
216 !(ctx->flags & DIRENT_FLAG_INCLUDE_EMPTY))
219 ret = (ctx->func)(ctx->dir,
223 fs->blocksize, ctx->buf,
224 ctx->priv_data);
241 if (ctx->flags & DIRENT_FLAG_INCLUDE_REMOVED) {
250 !ext2fs_validate_entry(fs, ctx->buf,
261 ctx->errcode = ext2fs_write_dir_block(fs, *blocknr, ctx->buf);
262 if (ctx->errcode)