Home
last modified time | relevance | path

Searched refs:curr_size (Results 1 – 10 of 10) sorted by relevance

/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/
A Dvhd-util-resize.c85 new_eof = vhd->footer.curr_size - vhd_sectors_to_bytes(secs); in vhd_fixed_shrink()
93 vhd->footer.curr_size = new_eof; in vhd_fixed_shrink()
160 vhd->footer.curr_size += size; in vhd_fixed_grow()
179 cur_secs = vhd->footer.curr_size >> VHD_SECTOR_SHIFT; in vhd_fixed_resize()
427 vhd->footer.curr_size = (uint64_t)new_entries * vhd->header.block_size; in vhd_clear_bat_entries()
428 vhd->footer.geometry = vhd_chs(vhd->footer.curr_size); in vhd_clear_bat_entries()
820 vhd->footer.curr_size = (uint64_t)new_entries * vhd->header.block_size; in vhd_add_bat_entries()
821 vhd->footer.geometry = vhd_chs(vhd->footer.curr_size); in vhd_add_bat_entries()
1002 cur_secs = vhd->footer.curr_size >> VHD_SECTOR_SHIFT; in vhd_dynamic_resize()
A Dvhd-util-read.c136 printf("Current disk size : %s MB ", conv(hex, f->curr_size >> 20)); in vhd_print_footer()
137 printf("(%s Bytes)\n", conv(hex, f->curr_size)); in vhd_print_footer()
326 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_print_logical_to_physical()
437 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_test_bitmap()
558 if (vhd_sectors_to_bytes(sec + count) > vhd->footer.curr_size) in vhd_read_data()
A Dvhd-util-query.c97 printf("%"PRIu64"\n", vhd.footer.curr_size >> 20); in vhd_util_query()
A Dvhd-util-snapshot.c180 size = vhd.footer.curr_size; in vhd_util_snapshot()
A Dlibvhd.c126 BE64_IN(&footer->curr_size); in vhd_footer_in()
142 BE64_OUT(&footer->curr_size); in vhd_footer_out()
2445 ctx->footer.curr_size = size; in vhd_initialize_footer()
2545 ctx->header.max_bat_size = (ctx->footer.curr_size + in vhd_initialize_header()
2570 size = parent.footer.curr_size; in vhd_initialize_header()
2574 ctx->footer.curr_size = size; in vhd_initialize_header()
2790 for (i = 0; i < ctx->footer.curr_size >> VHD_BLOCK_SHIFT; i++) { in vhd_initialize_fixed_disk()
3174 if (vhd_sectors_to_bytes(sec + secs) > ctx->footer.curr_size) in vhd_io_read()
3254 if (vhd_sectors_to_bytes(sector + secs) > ctx->footer.curr_size) in __vhd_io_dynamic_write()
3341 if (vhd_sectors_to_bytes(sec + secs) > ctx->footer.curr_size) in vhd_io_write()
A Dvhd-util-check.c125 if (vhd_chs(footer->curr_size) < footer->geometry) in vhd_util_check_validate_footer()
A Dvhd-util-scan.c576 image->capacity = vhd->footer.curr_size; in vhd_util_scan_get_size()
/xen-4.10.0-shim-comet/tools/blktap2/include/
A Dvhd.h58 u64 curr_size; /* Current size of disk (bytes) */ member
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dtd.c455 printf("%"PRIu64"\n", vhd.footer.curr_size >> 20); in td_query()
A Dblock-vhd.c649 driver->info.size = s->vhd.footer.curr_size >> VHD_SECTOR_SHIFT; in __vhd_open()

Completed in 25 milliseconds