aboutsummaryrefslogtreecommitdiff
path: root/block-vmdk.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-vmdk.c')
-rw-r--r--block-vmdk.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/block-vmdk.c b/block-vmdk.c
index 1f3709ced..b5a48aa6e 100644
--- a/block-vmdk.c
+++ b/block-vmdk.c
@@ -23,7 +23,7 @@
* THE SOFTWARE.
*/
-#include "vl.h"
+#include "qemu-common.h"
#include "block_int.h"
#define VMDK3_MAGIC (('C' << 24) | ('O' << 16) | ('W' << 8) | 'D')
@@ -76,7 +76,6 @@ typedef struct BDRVVmdkState {
unsigned int cluster_sectors;
uint32_t parent_cid;
int is_parent;
- DiskIOStatistics io;
} BDRVVmdkState;
typedef struct VmdkMetaData {
@@ -94,13 +93,6 @@ typedef struct ActiveBDRVState{
static ActiveBDRVState activeBDRV;
-DiskIOStatistics vmdk_io_statistics(BlockDriverState *bs)
-{
- BDRVVmdkState *s = bs->opaque;
- // return disk I/O counters
- return s->io;
-}
-
static int vmdk_probe(const uint8_t *buf, int buf_size, const char *filename)
{
uint32_t magic;
@@ -651,7 +643,6 @@ static int vmdk_read(BlockDriverState *bs, int64_t sector_num,
nb_sectors -= n;
sector_num += n;
buf += n * 512;
- s->io.read_byte_counter += (uint64_t)(n*512);
}
return 0;
}
@@ -692,7 +683,6 @@ static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
nb_sectors -= n;
sector_num += n;
buf += n * 512;
- s->io.write_byte_counter += (uint64_t)(n*512);
// update CID on the first write every time the virtual disk is opened
if (!cid_update) {