RFR JDK-8034057: Files.getFileStore and Files.isWritable do not work with SUBST'ed drives (win)

Chris Hegarty chris.hegarty at oracle.com
Tue Apr 29 10:47:23 UTC 2014


I agree with the “fallback” approach, and the changes look good to me Pavel.

-Chris.

On 29 Apr 2014, at 11:01, Pavel Rappo <pavel.rappo at oracle.com> wrote:

> Hi everyone,
> 
> could you please review my change for JDK-8034057: http://cr.openjdk.java.net/~alanb/8034057/webrev/
> 
> It turns out some of win32 functions don't work well with SUBSTed drives (namely GetVolumePathName). As a result it fails to create WindowsFileStore. This is a simple fallback type solution. It first tries to create WindowsFileStore the old way and if it fails with specific error, tries different approach.
> 
> Thanks
> -Pavel



More information about the nio-dev mailing list