Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v10]

2025-01-07 Thread Brian Burkhalter
On Mon, 23 Dec 2024 13:18:09 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v10]

2025-01-07 Thread duke
On Mon, 23 Dec 2024 13:18:09 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v10]

2025-01-07 Thread Taizo Kurashige
On Mon, 23 Dec 2024 13:18:09 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v10]

2025-01-07 Thread Brian Burkhalter
On Mon, 23 Dec 2024 13:18:09 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2025-01-06 Thread Brian Burkhalter
On Tue, 24 Dec 2024 11:46:44 GMT, Taizo Kurashige wrote: > After applying the patch you provided, I confirmed that the test using the > mounted ISO file passes. I'm sorry I haven't been able to see the results of > the physical CD drive test myself, but I think I'll commit this patch. Thank >

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-24 Thread Taizo Kurashige
On Wed, 18 Dec 2024 23:02:34 GMT, Brian Burkhalter wrote: > So I don't see any difference between a physical drive and a mounted ISO file > with respect to this test. I understood that the test fails on both the physical CD drive and the mounted ISO file. In my environment, testing with a mou

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v10]

2024-12-23 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v9]

2024-12-23 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-20 Thread Brian Burkhalter
On Fri, 13 Dec 2024 10:10:16 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-18 Thread Brian Burkhalter
On Tue, 17 Dec 2024 23:40:58 GMT, Taizo Kurashige wrote: > Could you tell me what the result would be if you tested using a virtual > drive with the iso file mounted instead of a physical CD drive and disk? I mounted an ISO file on `D:`. Command line execution of `df` in Cygwin: $ df D:\\ File

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-18 Thread Brian Burkhalter
On Wed, 18 Dec 2024 00:30:37 GMT, Brian Burkhalter wrote: > Also, can you tell me the version of Cygwin (output of “uname -r”)? $ uname -r 3.4.8-1.x86_64 - PR Comment: https://git.openjdk.org/jdk/pull/21799#issuecomment-2552410033

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-17 Thread Brian Burkhalter
On Tue, 17 Dec 2024 23:40:58 GMT, Taizo Kurashige wrote: > I'm sorry, but I would like to know what the output looks like when you run > the df command on a virtual drive with the iso file mounted. I can investigate that tomorrow, Pacific Time. As I recall, an earlier version _did_ work with t

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-17 Thread Taizo Kurashige
On Fri, 13 Dec 2024 21:10:31 GMT, Brian Burkhalter wrote: > It fails for me on a Windows 11 laptop with an external CD drive with a CD > inserted. On Cygwin the df command gives: Could you tell me what the result would be if you tested using a virtual drive with the iso file mounted instead of

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-13 Thread Brian Burkhalter
On Fri, 13 Dec 2024 10:10:53 GMT, Taizo Kurashige wrote: >> test/jdk/java/io/File/GetXSpace.java line 415: >> >>> 413: private static native boolean isCDDrive(String root); >>> 414: >>> 415: private static long[] getCDDriveSpace(String root) throws >>> IOException { >> >> Why not pass

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-13 Thread Brian Burkhalter
On Fri, 13 Dec 2024 21:10:31 GMT, Brian Burkhalter wrote: > Perhaps the output of `df` is not being parsed correctly? Actually I am getting df: 'D:': No such file or directory as the first line returned by the process that runs `df` when I run the test in Cygwin. On the command line this does

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-13 Thread Brian Burkhalter
On Fri, 13 Dec 2024 10:10:16 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-13 Thread Brian Burkhalter
On Fri, 13 Dec 2024 10:10:22 GMT, Taizo Kurashige wrote: >>> The native `GetXSpace` method needs to be defined on all platforms >> >> This change fixes that problem: >> >> --- a/test/jdk/java/io/File/libGetXSpace.c >> +++ b/test/jdk/java/io/File/libGetXSpace.c >> @@ -160,11 +160,11 @@ Java_GetX

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-13 Thread Taizo Kurashige
On Wed, 11 Dec 2024 18:45:43 GMT, Brian Burkhalter wrote: >> test/jdk/java/io/File/libGetXSpace.c line 165: >> >>> 163: #ifdef WINDOWS >>> 164: JNIEXPORT jboolean JNICALL >>> 165: Java_GetXSpace_isCDDrive >> >> The native `GetXSpace` method needs to be defined on all platforms, >> otherwise we

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-13 Thread Taizo Kurashige
On Thu, 12 Dec 2024 23:20:51 GMT, Brian Burkhalter wrote: >> Taizo Kurashige has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add ifdef WINDOWS > > test/jdk/java/io/File/GetXSpace.java line 415: > >> 413: private static native boolea

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]

2024-12-13 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v7]

2024-12-13 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-12 Thread Brian Burkhalter
On Mon, 9 Dec 2024 10:55:13 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW can

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-11 Thread Brian Burkhalter
On Wed, 11 Dec 2024 18:40:41 GMT, Brian Burkhalter wrote: > The native `GetXSpace` method needs to be defined on all platforms This change fixes that problem: --- a/test/jdk/java/io/File/libGetXSpace.c +++ b/test/jdk/java/io/File/libGetXSpace.c @@ -160,11 +160,11 @@ Java_GetXSpace_getSpace0

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-11 Thread Brian Burkhalter
On Mon, 9 Dec 2024 10:55:13 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW can

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v6]

2024-12-09 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v5]

2024-12-09 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v4]

2024-12-06 Thread Brian Burkhalter
On Fri, 6 Dec 2024 04:41:19 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW can

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v4]

2024-12-05 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v3]

2024-12-05 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v2]

2024-12-04 Thread Brian Burkhalter
On Wed, 4 Dec 2024 01:28:36 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW can

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v2]

2024-12-03 Thread Taizo Kurashige
> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't get information > about the size of the CD-ROM drive. > Ge

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-12-03 Thread Taizo Kurashige
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-12-02 Thread Brian Burkhalter
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-29 Thread Taizo Kurashige
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-27 Thread Brian Burkhalter
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > For this reason, I use Cygwin's `df`. Note that the proposed version, while it _does_ work in Cygwin, does **not** work in WSL 1. - PR Comment: https://git.openjdk.org/jdk/pull/21799#issuecomment-2505054032

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-27 Thread Brian Burkhalter
On Thu, 28 Nov 2024 00:03:32 GMT, Brian Burkhalter wrote: > If there were also a simpler way to handle the empty drive case, that would > be good. Actually this simple patch appears to fix the problem with a CD drive attached whether it is empty or contains a CD: --- a/test/jdk/java/io/File/G

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-27 Thread Brian Burkhalter
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-27 Thread Brian Burkhalter
On Wed, 27 Nov 2024 04:28:23 GMT, Taizo Kurashige wrote: >> It's in my queue to review this and test it on actual hardware. > > @bplb > > Sorry to bother you, but how is the review going? I would appreciate your > response. @kurashige23 Sorry, I've been tied up with other things. I will try to

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-26 Thread Taizo Kurashige
On Fri, 1 Nov 2024 16:13:57 GMT, Brian Burkhalter wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW ca

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-01 Thread Brian Burkhalter
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive

2024-11-01 Thread Andrey Turbanov
On Thu, 31 Oct 2024 07:15:16 GMT, Taizo Kurashige wrote: > To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use > Cygwin’s `df` to get the size for comparison if the test target drive is a > CD-ROM drive. > > As described in JDK-8343342, GetDiskSpaceInformationW can't g