Searched refs:VHDX_HEADER_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/block/ |
H A D | vhdx.h | 37 #define VHDX_HEADER_BLOCK_SIZE (64 * KiB) macro 40 #define VHDX_HEADER1_OFFSET (VHDX_HEADER_BLOCK_SIZE * 1) 41 #define VHDX_HEADER2_OFFSET (VHDX_HEADER_BLOCK_SIZE * 2) 42 #define VHDX_REGION_TABLE_OFFSET (VHDX_HEADER_BLOCK_SIZE * 3) 43 #define VHDX_REGION_TABLE2_OFFSET (VHDX_HEADER_BLOCK_SIZE * 4)
|
H A D | vhdx.c | 534 buffer = qemu_blockalign(bs, VHDX_HEADER_BLOCK_SIZE); in vhdx_open_region_tables() 537 VHDX_HEADER_BLOCK_SIZE, buffer, 0); in vhdx_open_region_tables() 544 if (!vhdx_checksum_is_valid(buffer, VHDX_HEADER_BLOCK_SIZE, 4)) { in vhdx_open_region_tables() 1625 buffer = g_malloc0(VHDX_HEADER_BLOCK_SIZE); in vhdx_create_new_metadata() 1676 ret = blk_co_pwrite(blk, metadata_offset, VHDX_HEADER_BLOCK_SIZE, buffer, 0); in vhdx_create_new_metadata() 1833 buffer = g_malloc0(VHDX_HEADER_BLOCK_SIZE); in vhdx_create_new_region_table() 1861 vhdx_update_checksum(buffer, VHDX_HEADER_BLOCK_SIZE, in vhdx_create_new_region_table() 1874 ret = blk_co_pwrite(blk, VHDX_REGION_TABLE_OFFSET, VHDX_HEADER_BLOCK_SIZE, in vhdx_create_new_region_table() 1881 ret = blk_co_pwrite(blk, VHDX_REGION_TABLE2_OFFSET, VHDX_HEADER_BLOCK_SIZE, in vhdx_create_new_region_table()
|