]> Git Repo - qemu.git/blobdiff - block/vvfat.c
vvfat: fix qemu-img map and qemu-img convert
[qemu.git] / block / vvfat.c
index 8ab647c0c6f5c2d7db5684379cb87162c11c0c26..040fb713ec4016df0472efc3a9500320e6eedd81 100644 (file)
@@ -2968,8 +2968,7 @@ vvfat_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
 static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs,
        int64_t sector_num, int nb_sectors, int *n, BlockDriverState **file)
 {
-    BDRVVVFATState* s = bs->opaque;
-    *n = s->sector_count - sector_num;
+    *n = bs->total_sectors - sector_num;
     if (*n > nb_sectors) {
         *n = nb_sectors;
     } else if (*n < 0) {
This page took 0.022457 seconds and 4 git commands to generate.