diff options
author | fishsoupisgood <github@madingley.org> | 2018-05-12 17:10:22 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2018-05-12 17:10:22 +0100 |
commit | b6afefb5d12dbed4801272dae3048588dfc1cb9a (patch) | |
tree | 0dc99b5b05d54cd5496b26fa37e19cc79f0b4b5e /src/prototypes.h | |
download | ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.tar.gz ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.tar.bz2 ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.zip |
first working version
Diffstat (limited to 'src/prototypes.h')
-rw-r--r-- | src/prototypes.h | 27 |
1 files changed, 27 insertions, 0 deletions
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); |