RFR: 8264400: (fs) WindowsFileStore equality depends on how the FileStore was constructed

Alan Bateman Alan.Bateman at oracle.com
Fri Apr 2 14:36:54 UTC 2021


On 01/04/2021 22:46, Brian Burkhalter wrote:
> Hello,
>
>> On Apr 1, 2021, at 1:29 PM, Bernd Eckenfels <ecki at zusammenkunft.net 
>> <mailto:ecki at zusammenkunft.net>> wrote:
>>
>> Is it instead possible to store a normalized version of the store 
>> base path (for the purpose of equals but also for display)? This 
>> would reduce dependence of file name casing semantics which does not 
>> in all cases depend only on the host operating system.
>
> It’s not clear what is intended here. WindowsFileStore does not have a 
> base path itself. Its root path is the path supplied as a parameter of 
> Files.getFileStore().
>
I think it would be useful to looking at the values of the volInfo field 
for both the DRIVE_FIXED and DRIVE_REMOTE cases. I think we need to see 
the values of fileSystemName and volumeName to see if we could use them 
here.

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210402/bb6bee5b/attachment.htm>


More information about the nio-dev mailing list