Searched refs:ext2_qcow2_hdr (Results 1 – 3 of 3) sorted by relevance
/external/e2fsprogs/lib/ext2fs/ |
D | qcow2.c | 55 struct ext2_qcow2_hdr *qcow2_read_header(int fd) in qcow2_read_header() 58 struct ext2_qcow2_hdr *hdr = NULL; in qcow2_read_header() 62 ret = ext2fs_get_mem(sizeof(struct ext2_qcow2_hdr), &buffer); in qcow2_read_header() 65 memset(buffer, 0, sizeof(struct ext2_qcow2_hdr)); in qcow2_read_header() 72 size = read(fd, buffer, sizeof(struct ext2_qcow2_hdr)); in qcow2_read_header() 73 if (size != sizeof(struct ext2_qcow2_hdr)) { in qcow2_read_header() 78 hdr = (struct ext2_qcow2_hdr *)(buffer); in qcow2_read_header() 160 struct ext2_qcow2_hdr *hdr) in qcow2_write_raw_image()
|
D | qcow2.h | 40 struct ext2_qcow2_hdr { struct 93 struct ext2_qcow2_hdr *hdr; 112 struct ext2_qcow2_hdr *qcow2_read_header(int); 113 int qcow2_write_raw_image(int, int, struct ext2_qcow2_hdr *);
|
/external/e2fsprogs/misc/ |
D | e2image.c | 889 struct ext2_qcow2_hdr *header; in initialize_qcow2_image() 899 ret = ext2fs_get_memzero(sizeof(struct ext2_qcow2_hdr), &header); in initialize_qcow2_image() 914 header_size = (sizeof(struct ext2_qcow2_hdr) + 7) & ~7; in initialize_qcow2_image() 1171 header_size = align_offset(sizeof(struct ext2_qcow2_hdr), in output_qcow2_meta_data_blocks() 1173 write_header(fd, img->hdr, sizeof(struct ext2_qcow2_hdr), header_size); in output_qcow2_meta_data_blocks() 1468 static struct ext2_qcow2_hdr *check_qcow2_image(int *fd, char *name) in check_qcow2_image() 1484 struct ext2_qcow2_hdr *header = NULL; in main()
|