implement discard operation for Parallels images
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest22 patches 4 repliesIn review
- v121 patches 33 repliesSuperseded
Changes in v2 from the cover letter
* added #3 - fix memory leak in parallels_open
* rewritten #4 (orig #3) - reflecting leak fixed previous patch
* fixed warning in #7 (orig #6), thanks Mike!
* fixed typo in #16 (was #15)
* fixed warning in #19 (was #18)
* fixed wrong argument for bdrv_co_pdiscard in #19 (was #18)
* improved discard tests in #20 (was #19)
Patches in v2 No applies recorded yet
Reviews trailers per patch
All 22 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Alexander Ivanov |
|---|---|
| Series | R-b |
| 1/22 | R-b |
| 2/22 | R-b |
| 3/22 | R-b |
| 4/22 | R-b |
| 5/22 | R-b |
| 6/22 | R-b |
| 7/22 | R-b |
| 8/22 | R-b |
| 9/22 | R-b |
| 10/22 | R-b |
| 11/22 | R-b |
| 12/22 | R-b |
| 13/22 | R-b |
| 14/22 | R-b |
| 15/22 | R-b |
| 16/22 | R-b |
| 17/22 | R-b |
| 18/22 | R-b |
| 19/22 | R-b |
| 20/22 | R-b |
| 21/22 | R-b |
| 22/22 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/22] implement discard operation for Parallels images
This series introduces new block allocator scheme into unused data blocks inside the image first and only after that extends the file. On top of that naive implementation of discard and write-zeroes (through the discard) is added.
There are also a bunch of bugs revealed in the code during the implementation and testing.
Changes from v1:
* added #3 - fix memory leak in parallels_open
* rewritten #4 (orig #3) - reflecting leak fixed previous patch
* fixed warning in #7 (orig #6), thanks Mike!
* fixed typo in #16 (was #15)
* fixed warning in #19 (was #18)
* fixed wrong argument for bdrv_co_pdiscard in #19 (was #18)
* improved discard tests in #20 (was #19)
Denis V. Lunev (22):
parallels: fix formatting in bdrv_parallels initialization
parallels: mark driver as supporting CBT
parallels: fix memory leak in parallels_open()
parallels: invent parallels_opts_prealloc() helper to parse prealloc
opts
parallels: return earler in fail_format branch in parallels_open()
parallels: return earlier from parallels_open() function on error
parallels: refactor path when we need to re-check image in
parallels_open
parallels: create mark_used() helper which sets bit in used bitmap
tests: ensure that image validation will not cure the corruption
parallels: fix broken parallels_check_data_off()
parallels: add test which will validate data_off fixes through repair
parallels: collect bitmap of used clusters at open
tests: fix broken deduplication check in parallels format test
tests: test self-cure of parallels image with duplicated clusters
parallels: accept multiple clusters in mark_used()
parallels: update used bitmap in allocate_cluster
parallels: naive implementation of allocate_clusters with used bitmap
parallels: improve readability of allocate_clusters
parallels: naive implementation of parallels_co_pdiscard
tests: extend test 131 to cover availability of the discard operation
parallels: naive implementation of parallels_co_pwrite_zeroes
tests: extend test 131 to cover availability of the write-zeroes
block/parallels.c | 389 ++++++++++++++---- block/parallels.h | 3 + tests/qemu-iotests/131 | 52 +++ tests/qemu-iotests/131.out | 60 +++ tests/qemu-iotests/tests/parallels-checks | 76 +++- tests/qemu-iotests/tests/parallels-checks.out | 65 ++- 6 files changed, 544 insertions(+), 101 deletions(-)
Signature · 1 line
2.34.1