Home
last modified time | relevance | path

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

/third_party/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.h40 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 *);
/third_party/e2fsprogs/misc/
De2image.c895 struct ext2_qcow2_hdr *header; in initialize_qcow2_image()
906 ret = ext2fs_get_memzero(sizeof(struct ext2_qcow2_hdr), &header); in initialize_qcow2_image()
921 header_size = (sizeof(struct ext2_qcow2_hdr) + 7) & ~7; in initialize_qcow2_image()
1178 header_size = align_offset(sizeof(struct ext2_qcow2_hdr), in output_qcow2_meta_data_blocks()
1180 write_header(fd, img->hdr, sizeof(struct ext2_qcow2_hdr), header_size); in output_qcow2_meta_data_blocks()
1478 static struct ext2_qcow2_hdr *check_qcow2_image(int *fd, char *name) in check_qcow2_image()
1494 struct ext2_qcow2_hdr *header = NULL; in main()