Skip to content

Replace posix_fallocate() with falloate()

Nir Soffer qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: file-posix: Extract preallocate helpersblock/file-posix.c+120 -863 replies
2/2block: file-posix: Replace posix_fallocate with fallocateblock/file-posix.c docs/system/qemu-block-drivers.rst.inc docs/tools/qemu-img.rst +1 more+25 -333 replies

Reviews trailers per patch

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

PatchAlberto Garcia
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 [PATCH 0/2] Replace posix_fallocate() with falloate()

Change preallocation=falloc to use fallocate() instead of posix_fallocte(), improving performance when legacy filesystem that do not support fallocate, and avoiding issues seen with OFD locks.

More work is needed to respect cache mode when using full preallocation and maybe optimize buffer size.

Continuing the discussion at:
https://lists.nongnu.org/archive/html/qemu-block/2020-08/msg00947.html

Nir Soffer (2):
block: file-posix: Extract preallocate helpers
block: file-posix: Replace posix_fallocate with fallocate

 block/file-posix.c                     | 202 ++++++++++++++-----------
 docs/system/qemu-block-drivers.rst.inc |  11 +-
 docs/tools/qemu-img.rst                |  11 +-
 qapi/block-core.json                   |   4 +-
 4 files changed, 127 insertions(+), 101 deletions(-)
Signature · 1 line
2.26.2