Skip to content

qcow2: Avoid making the L1 table too big

Max Reitz qemu-devel 1 version Applied

Status from this message: Applied to my block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qemu-img: Use strerror() for generic resize errorqemu-img.c+1 -11 reply
2/2qcow2: Avoid making the L1 table too bigblock/qcow2-cluster.c+1 -14 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] qcow2: Avoid making the L1 table too big

See https://bugs.launchpad.net/qemu/+bug/1592590 for a bug report.

Reproducer:

$ ./qemu-img create -f qcow2 test.qcow2 1M
Formatting 'test.qcow2', fmt=qcow2 size=1048576 encryption=off
cluster_size=65536 lazy_refcounts=off refcount_bits=16
$ ./qemu-img resize test.qcow2 100000T
Image resized.
$ ./qemu-img info test.qcow2
qemu-img: Could not open 'test.qcow2': Active L1 table too large

After this series:

$ ./qemu-img resize test.qcow2 100000T
qemu-img: Error resizing image: File too large

Max Reitz (2):
qemu-img: Use strerror() for generic resize error
qcow2: Avoid making the L1 table too big

 block/qcow2-cluster.c | 2 +-
 qemu-img.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.8.3