Skip to content

block: Preallocated truncation for gluster and sheepdog

Max Reitz qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7gluster: Move glfs_close() to create's clean-upblock/gluster.c+6 -41 reply
2/7gluster: Pull truncation from qemu_gluster_createblock/gluster.c+40 -341 reply
3/7gluster: Query current size in do_truncate()block/gluster.c+19 -21 reply
4/7gluster: Add preallocated truncationblock/gluster.c+1 -161 reply
5/7sheepdog: Make sd_prealloc() take a BDSblock/sheepdog.c+21 -81 reply
6/7sheepdog: Pass old and new size to sd_prealloc()block/sheepdog.c+5 -111 reply
7/7sheepdog: Allow fully preallocated truncationblock/sheepdog.c+12 -31 reply

Reviews trailers per patch

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

PatchEric Blake
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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/7] block: Preallocated truncation for gluster and sheepdog

As far as I can see, these are the only protocols beside file-posix that support preallocated creation. In contrast to file-posix, however, they have not supported preallocated truncation so far. This series brings their truncation code to feature parity with their creation code in this regard.

Note that I do not have a test setup for either of the two drivers, so I do not actually know whether this works. Anyone with a setup is more than welcome to test this series.

Max Reitz (7):
gluster: Move glfs_close() to create's clean-up
gluster: Pull truncation from qemu_gluster_create
gluster: Query current size in do_truncate()
gluster: Add preallocated truncation
sheepdog: Make sd_prealloc() take a BDS
sheepdog: Pass old and new size to sd_prealloc()
sheepdog: Allow fully preallocated truncation

 block/gluster.c  | 116 ++++++++++++++++++++++++++++++-------------------------
 block/sheepdog.c |  56 +++++++++++++++++----------
 2 files changed, 99 insertions(+), 73 deletions(-)
Signature · 1 line
2.14.3