vpc.c (3c9331c47f22224118d5019b0af8eac704824d8d) vpc.c (67a0fd2a9bca204d2b39f910a97c7137636a0715)
1/*
2 * Block driver for Connectix / Microsoft Virtual PC images
3 *
4 * Copyright (c) 2005 Alex Beregszaszi
5 * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 565 unchanged lines hidden (view full) ---

574 BDRVVPCState *s = bs->opaque;
575 qemu_co_mutex_lock(&s->lock);
576 ret = vpc_write(bs, sector_num, buf, nb_sectors);
577 qemu_co_mutex_unlock(&s->lock);
578 return ret;
579}
580
581static int64_t coroutine_fn vpc_co_get_block_status(BlockDriverState *bs,
1/*
2 * Block driver for Connectix / Microsoft Virtual PC images
3 *
4 * Copyright (c) 2005 Alex Beregszaszi
5 * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 565 unchanged lines hidden (view full) ---

574 BDRVVPCState *s = bs->opaque;
575 qemu_co_mutex_lock(&s->lock);
576 ret = vpc_write(bs, sector_num, buf, nb_sectors);
577 qemu_co_mutex_unlock(&s->lock);
578 return ret;
579}
580
581static int64_t coroutine_fn vpc_co_get_block_status(BlockDriverState *bs,
582 int64_t sector_num, int nb_sectors, int *pnum)
582 int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file)
583{
584 BDRVVPCState *s = bs->opaque;
585 VHDFooter *footer = (VHDFooter*) s->footer_buf;
586 int64_t start, offset;
587 bool allocated;
588 int n;
589
590 if (be32_to_cpu(footer->type) == VHD_FIXED) {

--- 357 unchanged lines hidden ---
583{
584 BDRVVPCState *s = bs->opaque;
585 VHDFooter *footer = (VHDFooter*) s->footer_buf;
586 int64_t start, offset;
587 bool allocated;
588 int n;
589
590 if (be32_to_cpu(footer->type) == VHD_FIXED) {

--- 357 unchanged lines hidden ---