[PATCH] D39464: Define fs::allocate_file which preallocates disk blocks.

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 11 17:52:26 PST 2017


krytarowski added inline comments.


================
Comment at: llvm/lib/Support/Unix/Path.inc:436
       return std::error_code(Err, std::generic_category());
+    return make_error_code(errc::function_not_supported);
   }
----------------
NetBSD needs `ftruncate`(2) as a fallback for `posix_fallocate`(2).

In the default setup `posix_fallocate`() returns EOPNOTSUPP.


https://reviews.llvm.org/D39464





More information about the llvm-commits mailing list