blob: 18cf98ec7db065d653de4999a20a1ffed1ea1a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* 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 *priv_data);
blk_t (*block_analyze)(ext2_filsys fs, blk_t blk,
blk_t ref_block, int ref_offset,
struct ext2_inode_context *icontext,
void *priv_data);
void (*post_analyze)(ext2_filsys fs,
struct ext2_inode_context *icontext,
void *priv_data);
};
errcode_t ext2_block_analyze(ext2_filsys fs,
struct ext2_block_analyzer_funcs *funcs,
ext2_brel block_relocation_table,
void *priv_data);
|