Home
last modified time | relevance | path

Searched refs:bat (Results 1 – 11 of 11) sorted by relevance

/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/
A Dvhd-util-resize.c249 src_off = vhd->bat.bat[src]; in vhd_move_block()
289 vhd->bat.bat[src] = offset >> VHD_SECTOR_SHIFT; in vhd_move_block()
307 off = vhd_sectors_to_bytes(vhd->bat.bat[dest]); in vhd_clobber_block()
318 vhd->bat.bat[dest] = DD_BLK_UNUSED; in vhd_clobber_block()
357 blocks[i].offset = vhd->bat.bat[i]; in vhd_defrag_shrink()
435 vhd->bat.bat[i] = 0; in vhd_clear_bat_entries()
505 uint32_t blk = vhd->bat.bat[i]; in vhd_dynamic_shrink()
551 blk = vhd->bat.bat[i]; in vhd_first_data_block()
572 blk = vhd->bat.bat[i]; in vhd_next_block_offset()
834 memcpy(new_bat.bat, vhd->bat.bat, bat_size); in vhd_add_bat_entries()
[all …]
A Dlibvhd.c218 BE32_IN(&bat->bat[i]); in vhd_bat_in()
227 BE32_OUT(&bat->bat[i]); in vhd_bat_out()
356 if (!bat->bat) in vhd_validate_bat()
690 blk = ctx->bat.bat[i]; in vhd_end_of_data()
836 free(ctx->bat.bat); in vhd_put_bat()
1809 blk = ctx->bat.bat[block]; in vhd_read_bitmap()
1858 blk = ctx->bat.bat[block]; in vhd_read_block()
2047 memcpy(b.bat, bat->bat, size); in vhd_write_bat()
2429 free(ctx->bat.bat); in vhd_close()
2754 ctx->bat.bat = NULL; in vhd_create_bat()
[all …]
A Dvhd-util-read.c336 offset = vhd->bat.bat[blk]; in vhd_print_logical_to_physical()
364 offset = vhd->bat.bat[cur]; in vhd_print_bat()
410 if (vhd->bat.bat[cur] == DD_BLK_UNUSED) { in vhd_print_bitmap()
455 if (vhd->bat.bat[blk] != DD_BLK_UNUSED) { in vhd_test_bitmap()
462 if (vhd->bat.bat[blk] == DD_BLK_UNUSED) in vhd_test_bitmap()
535 if (vhd->bat.bat[cur] == DD_BLK_UNUSED) { in vhd_print_data()
589 uint64_t bat, bitmap, tbitmap, batmap, tbatmap, data, lsec, count, read; in vhd_util_read() local
595 bat = -1; in vhd_util_read()
621 bat = strtoull(optarg, NULL, 10); in vhd_util_read()
678 if (bat != -1) { in vhd_util_read()
[all …]
A Dlibvhd-journal.c547 vhd_bat_t bat; in vhd_journal_add_bat() local
564 err = vhd_journal_update(j, off, (char *)bat.bat, size, in vhd_journal_add_bat()
567 free(bat.bat); in vhd_journal_add_bat()
804 err = posix_memalign((void **)&bat->bat, VHD_SECTOR_SIZE, size); in vhd_journal_read_bat()
808 err = vhd_journal_read(j, bat->bat, entry.size); in vhd_journal_read_bat()
814 vhd_bat_in(bat); in vhd_journal_read_bat()
819 free(bat->bat); in vhd_journal_read_bat()
820 bat->bat = NULL; in vhd_journal_read_bat()
1228 free(vhd->bat.bat); in vhd_journal_open()
1365 blk = vhd->bat.bat[block]; in vhd_journal_add_block()
[all …]
A Dvhd-util-snapshot.c61 for (i = 0; i < vhd.bat.entries; i++) in vhd_util_find_snapshot_target()
62 if (vhd.bat.bat[i] != DD_BLK_UNUSED) in vhd_util_find_snapshot_target()
A Dvhd-util-coalesce.c73 if (vhd->bat.bat[block] == DD_BLK_UNUSED) in vhd_util_coalesce_block()
198 for (i = 0; i < vhd.bat.entries; i++) { in vhd_util_coalesce()
A Dvhd-util-check.c560 uint32_t off = vhd->bat.bat[i]; in vhd_util_check_bat()
577 uint32_t joff = vhd->bat.bat[j]; in vhd_util_check_bat()
635 if (vhd->bat.bat[i] == DD_BLK_UNUSED) { in vhd_util_check_batmap()
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dblock-vhd.c257 #define bat_entry(s, blk) ((s)->bat.bat.bat[(blk)])
380 for (i = 0; i < s->bat.bat.entries; i++) { in find_next_free_block()
392 free(s->bat.bat.bat); in vhd_free_bat()
407 err = vhd_read_bat(&s->vhd, &s->bat.bat); in vhd_initialize_bat()
584 for (i = 0; i < s->bat.bat.entries; i++) { in vhd_log_open()
592 s->vhd.file, buf, s->vhd.footer.crtr_ver, s->bat.bat.entries, in vhd_log_open()
713 for (i = 0; i < s->bat.bat.entries; i++) { in vhd_log_close()
744 memcpy(&s->vhd.bat, &s->bat.bat, sizeof(vhd_bat_t)); in _vhd_close()
1999 s->bat.pbw_blk, s->bat.pbw_offset, req->error); in finish_bat_write()
2008 bat_entry(s, s->bat.pbw_blk) = s->bat.pbw_offset; in finish_bat_write()
[all …]
A Dtapdisk-diff.c408 while (s->cur < s->end && vhd1.bat.bat[blk] == DD_BLK_UNUSED) { in tapdisk_stream_enqueue1()
/xen-4.10.0-shim-comet/tools/blktap2/vhd/
A Dvhd-update.c66 for (i = 0; i < journal->vhd.bat.entries; i++) { in journal_bitmaps()
126 for (i = 0; i < journal->vhd.bat.entries; i++) { in update_vhd()
127 if (journal->vhd.bat.bat[i] == DD_BLK_UNUSED) in update_vhd()
/xen-4.10.0-shim-comet/tools/blktap2/include/
A Dlibvhd.h133 uint32_t *bat; member
152 vhd_bat_t bat; member

Completed in 25 milliseconds