vmdk.c (b3fc0af1ff5e922d4dd7c875394dbd26dc7313b4) vmdk.c (1bf6e9ca9234e1dbcaa18baa06eca9d55cc2dbbb)
1/*
2 * Block driver for the VMDK format
3 *
4 * Copyright (c) 2004 Fabrice Bellard
5 * Copyright (c) 2005 Filip Navara
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

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

2538 }
2539 sector_num += extent->cluster_sectors;
2540 }
2541
2542 result->corruptions++;
2543 return ret;
2544}
2545
1/*
2 * Block driver for the VMDK format
3 *
4 * Copyright (c) 2004 Fabrice Bellard
5 * Copyright (c) 2005 Filip Navara
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

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

2538 }
2539 sector_num += extent->cluster_sectors;
2540 }
2541
2542 result->corruptions++;
2543 return ret;
2544}
2545
2546static ImageInfoSpecific *vmdk_get_specific_info(BlockDriverState *bs)
2546static ImageInfoSpecific *vmdk_get_specific_info(BlockDriverState *bs,
2547 Error **errp)
2547{
2548 int i;
2549 BDRVVmdkState *s = bs->opaque;
2550 ImageInfoSpecific *spec_info = g_new0(ImageInfoSpecific, 1);
2551 ImageInfoList **next;
2552
2553 *spec_info = (ImageInfoSpecific){
2554 .type = IMAGE_INFO_SPECIFIC_KIND_VMDK,

--- 130 unchanged lines hidden ---
2548{
2549 int i;
2550 BDRVVmdkState *s = bs->opaque;
2551 ImageInfoSpecific *spec_info = g_new0(ImageInfoSpecific, 1);
2552 ImageInfoList **next;
2553
2554 *spec_info = (ImageInfoSpecific){
2555 .type = IMAGE_INFO_SPECIFIC_KIND_VMDK,

--- 130 unchanged lines hidden ---