This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Error accessing mapped drive >2TB?
- From: Warren Young <wyml at etr-usa dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 23 Oct 2015 16:04:03 -0600
- Subject: Re: Error accessing mapped drive >2TB?
- Authentication-results: sourceware.org; auth=none
- References: <CA+2x6-L_pqdN6PHE0c15hcmrmB66Z75Hz95cH+dbcn4yXuVZNg at mail dot gmail dot com> <712A87EA-64C7-4033-BE7F-39C8C8D527EB at etr-usa dot com> <20151021100328 dot GL5319 at calimero dot vinschen dot de> <CB8461F5-FB0E-44D8-81BB-B52DD02AD400 at etr-usa dot com> <20151021162254 dot GC19868 at calimero dot vinschen dot de> <169BF9F6-FF26-4073-9CC4-786882EFBAE9 at etr-usa dot com> <20151022083446 dot GW5319 at calimero dot vinschen dot de> <B8DBF0B5-51A9-4833-92D5-CA9E08B27DEC at etr-usa dot com> <20151023092007 dot GF5319 at calimero dot vinschen dot de>
On Oct 23, 2015, at 3:20 AM, Corinna Vinschen wrote:
>
> Well, it was *you* asking "How could we prove that the problem is the
> Apple SMB server?" I was just trying to help. If that's not desired,
> I don't have to.
I shouldnât have suggested attacking the problem at the SMB protocol layer to begin with. That requires the sort of expertise that the Samba and Apple developers have, and I doubt I can get access to either. Since Iâm not going to go and acquire such expertise myself just to answer the question, itâs a hopeless line of inquiry.
Instead, it would be better if we can refine the Windows API C code weâve been playing with to show the problem. Then I can attach it to an Apple bug report. Iâm sure they like STCs, too. :)
Iâve made the suggested changes to the program, here:
http://pastebin.com/uZdDZPgi
Is that enough to take to Apple? I mean, does this let them wiggle out and say, âYouâre doing it wrongâ?
>>>>> HANDLE handle = CreateFile ("P:\\", ...);
>>>>
>>>> I guess Iâm not seeing what values to pass to CreateFile()
>>>
>>> Opening a directory requires to use the FILE_FLAG_BACKUP_SEMANTICS
>>> flag.
>>
>> Yes, silly me for not guessing that Windows requires that I tell it I
>> am about to do a backup before I attempt to open a directory for
>> reading. What was so wrong about the design of opendir() that MS had
>> to reinvent it this way?
>
> Think DOS/early Windows. CreateFile was not meant to open directories
> to perform a directory search
I was reacting more to the revelation that Windows has workarounds for the known-problematic file access semantics, and that theyâre specifically labeled as âfor backup programsâ when in reality theyâre just ad hoc post facto fixes to a poorly thought out initial design.
Theyâve reinvented Unix, poorly.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple