qcow2: Write complete sectors
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | l2_allocate: Write complete sectorsblock/ | +28 | 0 replies | |
| 2/3 | alloc_cluster_link_l2: Write complete sectorsblock/ | +25 | 0 replies | |
| 3/3 | update_refcount: Write complete sectorsblock/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors
Once upon a time, there was a bdrv_pwrite that actually wrote single bytes to the file... However, today it is emulated by a read-modify-write cycle which aligns the request to sector size. This is slow. And we don't need it: qcow2 often has the complete sector in memory, we don't need to read it from the disk again.
These patches change the writes to L1 tables, L2 tables and refcount blocks to write complete sectors instead of single entries.
This series depends on the qcow2 split to apply cleanly.
Kevin Wolf (3):
l2_allocate: Write complete sectors
alloc_cluster_link_l2: Write complete sectors
update_refcount: Write complete sectors
block/qcow2-cluster.c | 61 +++++++++++++++++++++++++++++++++++++++++------ block/qcow2-refcount.c | 34 ++++++++++++++++++++------ 2 files changed, 79 insertions(+), 16 deletions(-)