ports/devel/llvm-cheri/files/patch-lib_Support_Unix_Path.inc
Brooks Davis a4eba9c8bc Update to a new snapshot and apply the patch for posix_fallocate()
support being remove for ZFS

PR:		223383, 223440
Sponsored by:	DARPA, AFRL
2017-11-16 21:44:18 +00:00

11 lines
414 B
C++

--- lib/Support/Unix/Path.inc.orig
+++ lib/Support/Unix/Path.inc
@@ -427,7 +427,7 @@
// If we have posix_fallocate use it. Unlike ftruncate it always allocates
// space, so we get an error if the disk is full.
if (int Err = ::posix_fallocate(FD, 0, Size)) {
- if (Err != EOPNOTSUPP)
+ if (Err != EINVAL && Err != EOPNOTSUPP)
return std::error_code(Err, std::generic_category());
}
#endif