RFR: 8293502: (fc) FileChannel::transfer methods fail to copy /proc files on Linux

Brian Burkhalter bpb at openjdk.org
Thu Sep 15 18:05:43 UTC 2022


On Thu, 15 Sep 2022 15:41:36 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> test/jdk/java/nio/file/Files/CopyProcFile.java line 52:
>> 
>>> 50:  */
>>> 51: public class CopyProcFile {
>>> 52:     static final String SOURCE = "/proc/mounts";
>> 
>> I wonder how stable this is. If the mount tables change while the test is running then I assume it will fail.
>
> Yes, I thought of that as well. Do you have any suggestion for an alternative?

Perhaps just using a small prefix of the mount tables would be more stable.

-------------

PR: https://git.openjdk.org/jdk/pull/10267


More information about the nio-dev mailing list