]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-io-cmds.c
block: Hide HBitmap in block dirty bitmap interface
[mirror_qemu.git] / qemu-io-cmds.c
index 25954f5634470f64e2d6bfbc0b5d197d523e6629..3a3838a079fb47f457463061066f9a6e84ba6ed6 100644 (file)
@@ -504,7 +504,7 @@ static int do_write_compressed(BlockBackend *blk, char *buf, int64_t offset,
         return -ERANGE;
     }
 
-    ret = blk_write_compressed(blk, offset >> 9, (uint8_t *)buf, count >> 9);
+    ret = blk_pwrite_compressed(blk, offset, buf, count);
     if (ret < 0) {
         return ret;
     }