mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-10 02:23:27 +08:00
24b2c7a7a1
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.
31 lines
756 B
C
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);
|
|
|