]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-io-cmds.c
block: Add a 'flags' param to blk_pread()
[mirror_qemu.git] / qemu-io-cmds.c
index 443f22c732c8d01b81c01f02534481e321b8ca3f..582e1a7090f2bc83f85720e2d2f25a4ac29526fc 100644 (file)
@@ -547,7 +547,7 @@ static int do_pread(BlockBackend *blk, char *buf, int64_t offset,
         return -ERANGE;
     }
 
-    ret = blk_pread(blk, offset, (uint8_t *)buf, bytes);
+    ret = blk_pread(blk, offset, (uint8_t *)buf, bytes, 0);
     if (ret < 0) {
         return ret;
     }