Home
last modified time | relevance | path

Searched refs:ext2_qcow2_hdr (Results 1 – 3 of 3) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
Dqcow2.c55 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()
Dqcow2.h39 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/
De2image.c879 struct ext2_qcow2_hdr *header; in initialize_qcow2_image()
886 ret = ext2fs_get_memzero(sizeof(struct ext2_qcow2_hdr), &header); in initialize_qcow2_image()
901 header_size = (sizeof(struct ext2_qcow2_hdr) + 7) & ~7; in initialize_qcow2_image()
1158 header_size = align_offset(sizeof(struct ext2_qcow2_hdr), in output_qcow2_meta_data_blocks()
1160 write_header(fd, img->hdr, sizeof(struct ext2_qcow2_hdr), header_size); in output_qcow2_meta_data_blocks()
1438 static struct ext2_qcow2_hdr *check_qcow2_image(int *fd, char *name) in check_qcow2_image()
1454 struct ext2_qcow2_hdr *header = NULL; in main()