All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Replace posix_fallocate() with falloate()
@ 2020-08-31 14:01 Nir Soffer
  2020-08-31 14:01 ` [PATCH 1/2] block: file-posix: Extract preallocate helpers Nir Soffer
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Nir Soffer @ 2020-08-31 14:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, qemu-block, Markus Armbruster, Max Reitz, Nir Soffer

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(-)

-- 
2.26.2



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-09-15  8:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 14:01 [PATCH 0/2] Replace posix_fallocate() with falloate() Nir Soffer
2020-08-31 14:01 ` [PATCH 1/2] block: file-posix: Extract preallocate helpers Nir Soffer
2020-09-01 10:24   ` Alberto Garcia
2020-09-01 10:26   ` Alberto Garcia
2020-09-01 10:47     ` Nir Soffer
2020-08-31 14:01 ` [PATCH 2/2] block: file-posix: Replace posix_fallocate with fallocate Nir Soffer
2020-09-01 15:51   ` Alberto Garcia
2020-09-14 17:32   ` Daniel P. Berrangé
2020-09-15  8:55     ` Nir Soffer
2020-08-31 15:55 ` [PATCH 0/2] Replace posix_fallocate() with falloate() no-reply
2020-09-14 17:19 ` Nir Soffer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.