[PATCH] D39464: Define fs::allocate_file which preallocates disk blocks.
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 16:15:04 PDT 2017
mgorny added inline comments.
================
Comment at: llvm/lib/Support/Unix/Path.inc:443
+#ifdef HAVE_FALLOCATE
+ if (fallocate(FD, 0, 0, Size) == -1)
+ return std::error_code(errno, std::generic_category());
----------------
Any reason not to use `posix_fallocate()` which is more portable by definition?
https://reviews.llvm.org/D39464
More information about the llvm-commits
mailing list