vmdk.c (3db1d98a20262228373bb973ca62b1ab64b29af4) | vmdk.c (67a0fd2a9bca204d2b39f910a97c7137636a0715) |
---|---|
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 --- 1247 unchanged lines hidden (view full) --- 1256 1257 extent_begin_sector = extent->end_sector - extent->sectors; 1258 extent_relative_sector_num = sector_num - extent_begin_sector; 1259 index_in_cluster = extent_relative_sector_num % extent->cluster_sectors; 1260 return index_in_cluster; 1261} 1262 1263static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs, | 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 --- 1247 unchanged lines hidden (view full) --- 1256 1257 extent_begin_sector = extent->end_sector - extent->sectors; 1258 extent_relative_sector_num = sector_num - extent_begin_sector; 1259 index_in_cluster = extent_relative_sector_num % extent->cluster_sectors; 1260 return index_in_cluster; 1261} 1262 1263static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs, |
1264 int64_t sector_num, int nb_sectors, int *pnum) | 1264 int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) |
1265{ 1266 BDRVVmdkState *s = bs->opaque; 1267 int64_t index_in_cluster, n, ret; 1268 uint64_t offset; 1269 VmdkExtent *extent; 1270 1271 extent = find_extent(s, sector_num, NULL); 1272 if (!extent) { --- 1056 unchanged lines hidden --- | 1265{ 1266 BDRVVmdkState *s = bs->opaque; 1267 int64_t index_in_cluster, n, ret; 1268 uint64_t offset; 1269 VmdkExtent *extent; 1270 1271 extent = find_extent(s, sector_num, NULL); 1272 if (!extent) { --- 1056 unchanged lines hidden --- |