Lines Matching refs:VHDXHeader
311 static int vhdx_write_header(BdrvChild *file, VHDXHeader *hdr, in vhdx_write_header()
317 VHDXHeader *header_le; in vhdx_write_header()
338 header_le = (VHDXHeader *)buffer; in vhdx_write_header()
339 memcpy(header_le, hdr, sizeof(VHDXHeader)); in vhdx_write_header()
342 offsetof(VHDXHeader, checksum)); in vhdx_write_header()
343 ret = bdrv_pwrite_sync(file, offset, sizeof(VHDXHeader), header_le, 0); in vhdx_write_header()
364 VHDXHeader *active_header; in vhdx_update_header()
365 VHDXHeader *inactive_header; in vhdx_update_header()
424 VHDXHeader *header1; in vhdx_parse_header()
425 VHDXHeader *header2; in vhdx_parse_header()
433 header1 = qemu_blockalign(bs, sizeof(VHDXHeader)); in vhdx_parse_header()
434 header2 = qemu_blockalign(bs, sizeof(VHDXHeader)); in vhdx_parse_header()
450 memcpy(header1, buffer, sizeof(VHDXHeader)); in vhdx_parse_header()
467 memcpy(header2, buffer, sizeof(VHDXHeader)); in vhdx_parse_header()
498 if (!memcmp(header1, header2, sizeof(VHDXHeader))) { in vhdx_parse_header()
1523 VHDXHeader *hdr = NULL; in vhdx_create_new_headers()
1527 hdr = g_new0(VHDXHeader, 1); in vhdx_create_new_headers()