Searched refs:ext2_qcow2_hdr (Results 1 – 3 of 3) sorted by relevance
/external/e2fsprogs/lib/ext2fs/ |
D | qcow2.c | 50 struct ext2_qcow2_hdr *qcow2_read_header(int fd) in qcow2_read_header() 53 struct ext2_qcow2_hdr *hdr = NULL; in qcow2_read_header() 57 ret = ext2fs_get_mem(sizeof(struct ext2_qcow2_hdr), &buffer); in qcow2_read_header() 60 memset(buffer, 0, sizeof(struct ext2_qcow2_hdr)); in qcow2_read_header() 67 size = read(fd, buffer, sizeof(struct ext2_qcow2_hdr)); in qcow2_read_header() 68 if (size != sizeof(struct ext2_qcow2_hdr)) { in qcow2_read_header() 73 hdr = (struct ext2_qcow2_hdr *)(buffer); in qcow2_read_header() 155 struct ext2_qcow2_hdr *hdr) in qcow2_write_raw_image()
|
D | qcow2.h | 39 struct ext2_qcow2_hdr { struct 92 struct ext2_qcow2_hdr *hdr; 111 struct ext2_qcow2_hdr *qcow2_read_header(int); 112 int qcow2_write_raw_image(int, int, struct ext2_qcow2_hdr *);
|
/external/e2fsprogs/misc/ |
D | e2image.c | 865 struct ext2_qcow2_hdr *header; in initialize_qcow2_image() 872 ret = ext2fs_get_memzero(sizeof(struct ext2_qcow2_hdr), &header); in initialize_qcow2_image() 887 header_size = (sizeof(struct ext2_qcow2_hdr) + 7) & ~7; in initialize_qcow2_image() 1144 header_size = align_offset(sizeof(struct ext2_qcow2_hdr), in output_qcow2_meta_data_blocks() 1146 write_header(fd, img->hdr, sizeof(struct ext2_qcow2_hdr), header_size); in output_qcow2_meta_data_blocks() 1420 static struct ext2_qcow2_hdr *check_qcow2_image(int *fd, char *name) in check_qcow2_image() 1436 struct ext2_qcow2_hdr *header = NULL; in main()
|