mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
This commit is contained in:
commit
3a069ff11b
9 changed files with 37 additions and 35 deletions
|
@ -208,7 +208,7 @@ static void vmdk_free_last_extent(BlockDriverState *bs)
|
|||
static uint32_t vmdk_read_cid(BlockDriverState *bs, int parent)
|
||||
{
|
||||
char desc[DESC_SIZE];
|
||||
uint32_t cid;
|
||||
uint32_t cid = 0xffffffff;
|
||||
const char *p_name, *cid_str;
|
||||
size_t cid_str_size;
|
||||
BDRVVmdkState *s = bs->opaque;
|
||||
|
@ -1407,7 +1407,6 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options)
|
|||
bdrv_delete(bs);
|
||||
return -EINVAL;
|
||||
}
|
||||
filesize = bdrv_getlength(bs);
|
||||
parent_cid = vmdk_read_cid(bs, 0);
|
||||
bdrv_delete(bs);
|
||||
relative_path(parent_filename, sizeof(parent_filename),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue