something wrong.
[qemu/umeq.git] / block / add-cow.h
blobf8a7c032baf0a334844911ec20e4ddc67bd83ad3
1 #ifndef QEMU_ADD_COW_H
2 #include <sys/types.h>
3 #include <stdint.h>
4 #include <stdio.h>
5 #include <stdio.h>
6 #include <errno.h>
8 #include "qemu-common.h"
10 struct add_cow_head {
11 char backing_file[1024];
12 char backing_format[1024];
13 uint64_t size;
16 int get_add_cow_head(const char * add_cow_file, struct add_cow_head* p);
17 int create_cow_file(const char *backing_file,const char *backing_format, const char *cow_file, uint64_t size);
18 int my_cow_update_bitmap(BlockDriverState *bs, int64_t sector_num,int nb_sectors);
19 int my_cow_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *num_same);
20 inline int my_is_bit_set(BlockDriverState *bs, int64_t bitnum);
21 inline int my_cow_set_bit(BlockDriverState *bs, int64_t bitnum);
23 #endif