Searched refs:batmap (Results 1 – 8 of 8) sorted by relevance
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/ |
A D | libvhd-journal.c | 578 vhd_batmap_t batmap; in vhd_journal_add_batmap() local 598 vhd_batmap_header_in(&batmap); in vhd_journal_add_batmap() 606 free(batmap.map); in vhd_journal_add_batmap() 854 memcpy(&batmap->header, buf, sizeof(batmap->header)); in vhd_journal_read_batmap_header() 856 vhd_batmap_header_in(batmap); in vhd_journal_read_batmap_header() 886 free(batmap->map); in vhd_journal_read_batmap_map() 887 batmap->map = NULL; in vhd_journal_read_batmap_map() 909 free(batmap->map); in vhd_journal_read_batmap() 910 batmap->map = NULL; in vhd_journal_read_batmap() 1229 free(vhd->batmap.map); in vhd_journal_open() [all …]
|
A D | libvhd.c | 369 blob = batmap->map; in vhd_checksum_batmap() 401 if (!batmap->map) in vhd_validate_batmap() 551 set_bit(batmap->map, block); in vhd_batmap_set() 849 free(ctx->batmap.map); in vhd_put_batmap() 1148 batmap->map = buf; in vhd_read_batmap_map() 1153 batmap->map = NULL; in vhd_read_batmap_map() 1187 free(batmap->map); in vhd_read_batmap() 2075 b.header = batmap->header; in vhd_write_batmap() 2076 b.map = batmap->map; in vhd_write_batmap() 2430 free(ctx->batmap.map); in vhd_close() [all …]
|
A D | vhd-util-read.c | 238 conv(hex, batmap->header.batmap_offset)); in vhd_print_batmap_header() 240 conv(hex, batmap->header.batmap_size)); in vhd_print_batmap_header() 242 batmap->header.batmap_version); in vhd_print_batmap_header() 244 cksm = vhd_checksum_batmap(batmap); in vhd_print_batmap_header() 246 batmap->header.checksum, cksm, in vhd_print_batmap_header() 283 vhd_print_batmap_header(&vhd->batmap, hex); in vhd_print_headers() 491 write_full(STDOUT_FILENO, vhd->batmap.map, size); in vhd_print_batmap() 514 vhd_batmap_test(vhd, &vhd->batmap, cur)); in vhd_test_batmap() 598 batmap = -1; in vhd_util_read() 630 batmap = 1; in vhd_util_read() [all …]
|
A D | vhd-util-check.c | 238 size = sizeof(batmap->header.cookie); in vhd_util_check_validate_batmap() 239 if (memcmp(batmap->header.cookie, VHD_BATMAP_COOKIE, size)) in vhd_util_check_validate_batmap() 245 checksum = vhd_checksum_batmap(batmap); in vhd_util_check_validate_batmap() 246 if (checksum != batmap->header.checksum) in vhd_util_check_validate_batmap() 249 if (!batmap->header.batmap_size) in vhd_util_check_validate_batmap() 256 if (!batmap->header.batmap_offset || in vhd_util_check_validate_batmap() 257 batmap->header.batmap_offset % 512) in vhd_util_check_validate_batmap() 260 if ((batmap->header.batmap_offset + in vhd_util_check_validate_batmap() 261 vhd_sectors_to_bytes(batmap->header.batmap_size)) > in vhd_util_check_validate_batmap() 625 msg = vhd_util_check_validate_batmap(vhd, &vhd->batmap); in vhd_util_check_batmap() [all …]
|
A D | vhd-util-resize.c | 464 vhd_batmap_clear(vhd, &vhd->batmap, i); in vhd_clear_bat_entries() 466 err = vhd_write_batmap(vhd, &vhd->batmap); in vhd_clear_bat_entries() 637 in_range(off, vhd->batmap.header.batmap_offset, in vhd_check_for_clobber() 759 vhd->batmap.header.batmap_offset += bat_needed; in vhd_shift_metadata() 804 off = vhd->batmap.header.batmap_offset + new_map_size; in vhd_add_bat_entries() 808 new_map_size, vhd->batmap.header.batmap_offset); in vhd_add_bat_entries() 858 new_batmap.header = vhd->batmap.header; in vhd_add_bat_entries() 860 memcpy(new_batmap.map, vhd->batmap.map, map_size); in vhd_add_bat_entries() 871 free(vhd->batmap.map); in vhd_add_bat_entries() 872 vhd->batmap = new_batmap; in vhd_add_bat_entries() [all …]
|
A D | vhd-util-coalesce.c | 84 if (vhd_has_batmap(vhd) && vhd_batmap_test(vhd, &vhd->batmap, block)) { in vhd_util_coalesce_block()
|
/xen-4.10.0-shim-comet/tools/blktap2/include/ |
A D | libvhd.h | 153 vhd_batmap_t batmap; member 245 int vhd_validate_batmap_header(vhd_batmap_t *batmap); 246 int vhd_validate_batmap(vhd_batmap_t *batmap);
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | block-vhd.c | 187 vhd_batmap_t batmap; member 318 if (s->bat.batmap.map) { in set_batmap() 319 vhd_batmap_set(&s->vhd, &s->bat.batmap, blk); in set_batmap() 327 if (!s->bat.batmap.map) in test_batmap() 329 return vhd_batmap_test(&s->vhd, &s->bat.batmap, blk); in test_batmap() 393 free(s->bat.batmap.map); in vhd_free_bat() 424 err = vhd_read_batmap(&s->vhd, &s->bat.batmap); in vhd_initialize_bat() 754 err = vhd_write_batmap(&s->vhd, &s->bat.batmap); in _vhd_close()
|
Completed in 25 milliseconds