OSDN Git Service

block/file-posix: Optimize for macOS
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Mon, 5 Jul 2021 13:04:56 +0000 (22:04 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 6 Jul 2021 13:28:55 +0000 (14:28 +0100)
commit0dfc7af2b287323dde0725c04f5765e0e508d9fd
tree1a02da2f6936405b3edfc366d9756a6e5d73136f
parent023ca420ee3d4de76518d690afa98dcac33998ce
block/file-posix: Optimize for macOS

This commit introduces "punch hole" operation and optimizes transfer
block size for macOS.

Thanks to Konstantin Nazarov for detailed analysis of a flaw in an
old version of this change:
https://gist.github.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5#gistcomment-3654667

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-id: 20210705130458.97642-1-akihiko.odaki@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/file-posix.c