e2fsprogs/resize/banalysis.h
Theodore Ts'o 24b2c7a7a1 ChangeLog, Makefile.in, configure.in:
configure.in (rmakefile): Added (optional) private directory for resize2fs.
  Makefile.in: Change recursive descent rules to check to see if a
  	directory exists before trying to make it.
Many files:
  Initial checkin of work done to date.
1997-06-07 20:42:58 +00:00

31 lines
756 B
C

/*
* banalysis.h --- Block analysis header file
*/
struct ext2_inode_context {
ino_t ino;
struct ext2_inode * inode;
errcode_t error;
ext2_brel brel;
void * ctx;
};
struct ext2_block_analyzer_funcs {
int (*pre_analyze)(ext2_filsys fs,
struct ext2_inode_context *icontext,
void *private);
blk_t (*block_analyze)(ext2_filsys fs, blk_t blk,
blk_t ref_block, int ref_offset,
struct ext2_inode_context *icontext,
void *private);
void (*post_analyze)(ext2_filsys fs,
struct ext2_inode_context *icontext,
void *private);
};
errcode_t ext2_block_analyze(ext2_filsys fs,
struct ext2_block_analyzer_funcs *funcs,
ext2_brel block_relocation_table,
void *private);