JDK 9 RFR of 8171452: (ch) linux io_util_md: Operation not supported exception after 8168628
brian.burkhalter at oracle.com
Tue Dec 20 20:16:34 UTC 2016
On Dec 20, 2016, at 12:01 PM, Doerr, Martin <martin.doerr at sap.com> wrote:
> thank you very much for fixing this so quickly. I have tested the change and it does resolve the issue.
You are welcome. Thanks for verifying the patch.
> I'm happy with this version, but I can't tell if there are more cases where the fall back is desired. I guess old kernels which don't implement fallocate (ENOSYS) are no longer supported.
As noted below, I wonder whether the code should not just fall back for all unsuccessful fallocate64() calls. The fallback is to the same behavior which was there prior to the fix for JDK-8168628 so this seems safe. We’ll see whether a JDK 9 Reviewer has any comment on this point.
> -----Original Message——
> Change on Linux to fall back to ftruncate64() if fallocate64() returns EOPNOTSUPP. I am wondering however whether the fall back should occur for *all* cases where ftruncate64() returns non-zero?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev