From b6afefb5d12dbed4801272dae3048588dfc1cb9a Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Sat, 12 May 2018 17:10:22 +0100 Subject: first working version --- src/prototypes.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/prototypes.h (limited to 'src/prototypes.h') diff --git a/src/prototypes.h b/src/prototypes.h new file mode 100644 index 0000000..3ac93b7 --- /dev/null +++ b/src/prototypes.h @@ -0,0 +1,27 @@ +/* clone_data.c */ +int clone_data(ext2_filsys src_fs, ext2_filsys dst_fs, ext2_ino_t i_num, struct ext2_inode *src_i, struct ext2_inode *dst_i, uint64_t offset, uint64_t len); +/* clone_ea.c */ +int clone_ea(ext2_filsys src_fs, ext2_filsys dst_fs, ext2_ino_t i_num, struct ext2_inode *src_i, struct ext2_inode *dst_i); +/* clone_extents.c */ +int clone_extents(ext2_filsys src_fs, ext2_filsys dst_fs, ext2_ino_t i_num, struct ext2_inode *src_i, struct ext2_inode *dst_i); +/* clone_inode.c */ +int clone_inode(ext2_filsys src_fs, ext2_filsys dst_fs, ext2_ino_t i_num, struct ext2_inode *src_i); +/* ea_map.c */ +int ea_map_lookup(blk64_t src_blk, blk64_t *dst_blk, blk64_t *len); +int ea_map_set(blk64_t src_blk, blk64_t dst_blk, blk64_t len); +/* ext_clone.c */ +char buf[(16*1024*1024)]; +int main(int argc, char *argv[]); +/* stats.c */ +uint64_t stats_inodes; +uint64_t stats_ea_blocks; +uint64_t stats_bytes; +struct timeval start_time; +struct timeval last_time; +void stats(int force); +/* clone_fs.c */ +int clone_fs(ext2_filsys src_fs, ext2_filsys dst_fs); +/* zap_fs.c */ +int zap_fs(ext2_filsys fs); +/* zap_inode.c */ +int zap_inode(ext2_filsys fs, ext2_ino_t i_num, struct ext2_inode *i); -- cgit v1.2.3