Skip to content

More bdrv_getlength() fixes

Eric Blake qemu-devel 2 versions – Applied

Status from this message: Thanks, applied the patches to block and block-next, respectively.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesApplied
  2. v14 patches 15 repliesSuperseded

Changes in v2 from the cover letter

- patch 1: fix error message capitalization (Kevin, R-b kept)
- fix locking bug in original patch 2 (Kevin)
- split original patch 2 into two parts: signature update, and added error checking (Kevin)
- check for unlikely integer overflow before bdrv_truncate (Jeff)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5vpc: Check failure of bdrv_getlength()block/vpc.c+8 -10 replies
2/5qcow: Change signature of get_cluster_offset()block/qcow.c+76 -590 replies
3/5qcow: Check failure of bdrv_getlength() and bdrv_truncate()block/qcow.c+22 -80 replies
4/5qcow2: Drop debugging dump_refcounts()block/qcow2.c+0 -210 replies
5/5qcow2: Check failure of bdrv_getlength()block/qcow2.c+4 -10 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéJeff CodyJohn SnowKevin Wolf
1/5R-b R-b R-b
2/5
3/5
4/5R-b R-b R-b R-b
5/5R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH for-2.10 v2 0/5] More bdrv_getlength() fixes

We already have a lot of bdrv_getlength() fixes in -rc2; so I think this is still okay for -rc3.

v1 was here (with a typo'd subject line):
https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg01226.html

Since v1:
- patch 1: fix error message capitalization (Kevin, R-b kept)
- fix locking bug in original patch 2 (Kevin)
- split original patch 2 into two parts: signature update, and added error checking (Kevin)
- check for unlikely integer overflow before bdrv_truncate (Jeff)

001/5:[0002] [FC] 'vpc: Check failure of bdrv_getlength()' 002/5:[down] 'qcow: Change signature of get_cluster_offset()' 003/5:[0048] [FC] 'qcow: Check failure of bdrv_getlength() and bdrv_truncate()' 004/5:[----] [--] 'qcow2: Drop debugging dump_refcounts()' 005/5:[----] [--] 'qcow2: Check failure of bdrv_getlength()'

Eric Blake (5):
vpc: Check failure of bdrv_getlength()
qcow: Change signature of get_cluster_offset()
qcow: Check failure of bdrv_getlength() and bdrv_truncate()
qcow2: Drop debugging dump_refcounts()
qcow2: Check failure of bdrv_getlength()

 block/qcow.c  | 165 ++++++++++++++++++++++++++++++++++------------------------
 block/qcow2.c |  26 ++-------
 block/vpc.c   |   9 +++-
 3 files changed, 110 insertions(+), 90 deletions(-)
Signature · 1 line
2.13.4