[ 
https://issues.apache.org/jira/browse/MESOS-7371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977265#comment-15977265
 ] 

Andrew Schwartzmeyer commented on MESOS-7371:
---------------------------------------------

I confirmed that _long paths_ still work. I patched `os::mkdir` to use 
`CreateDirectoryW` with the long path marker `\\?\`. This allows the use of 
long path enabled Windows system calls _without_ requiring the user to opt-in, 
and is probably what we should do going forward.

Game plan: remove our use of the Windows CRT (e.g. _mkdir and _fullpath etc.) 
and replace it with UTF-16 Windows system APIs as appropriate throughout Stout. 
Add a Windows only internal `wstring os::longpath(string)` function to prepend 
the long path marker to absolute paths (but not to relative), and convert to 
wstring. Use this where needed.

> Investigate enabling NTFS long path support automatically
> ---------------------------------------------------------
>
>                 Key: MESOS-7371
>                 URL: https://issues.apache.org/jira/browse/MESOS-7371
>             Project: Mesos
>          Issue Type: Bug
>          Components: stout
>            Reporter: Andrew Schwartzmeyer
>            Assignee: Andrew Schwartzmeyer
>              Labels: windows
>
> MSDN _seems_ to imply that it's possible to enable the NTFS long path support 
> for each process, without the user having to do it manually. This should be 
> investigated (perhaps it's done during installation).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to