cloud-hypervisor/block
Wei Liu 85556951a6 block: qcow2: Flush the buffer explicitly when writing pointer table
Previously the code relies on the implicit flush when BufWriter is
dropped. That's not safe.

Per BufWriter's document:

```
It is critical to call flush before BufWriter<W> is dropped. Though
dropping will attempt to flush the contents of the buffer, any errors
that happen in the process of dropping will be ignored. Calling flush
ensures that the buffer is empty and thus dropping will not even attempt
file operations.
```

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2025-11-30 18:39:49 +00:00
..
src block: qcow2: Flush the buffer explicitly when writing pointer table 2025-11-30 18:39:49 +00:00
Cargo.toml build: Bump the non-rust-vmm group across 2 directories with 38 updates 2025-11-25 11:12:36 +00:00