X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=bvjq3lThq5vC9+5Do/YNYWarYRrm NYqznO/PReyvR2ls70cDj9uCQuIVxFUGtnSeX6l4Ajp85A84bHBT9M+Z2DjZS41F lZBcBHe65ARypQ6A4w0uPQOWr1VvMCegHlQWMmQ07U2KJjJ2n76oyDWM9FKFUpTW BhnROEULLcP4+KA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=ZCZyT119RdcoZUhYX56n6SFawfo=; b=bg LWGLjfGPcug9D+H3OyI86d6CvVt8nW4yMV+npk40AytcYrbtxav01VdQHRvamWoR ZCIDD5u6Eg40opCDZ/bLqop1coYGnYzoXxrx8erDyxB6F8Iki91u0ULOAFZodT6m d3HKl5LvremctR1FKLN5qsSDITrvEBHMmPMlX9VEc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: etr-usa.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Error accessing mapped drive >2TB? From: Warren Young In-Reply-To: <20151022083446.GW5319@calimero.vinschen.de> Date: Thu, 22 Oct 2015 12:34:13 -0600 Message-Id: References: <712A87EA-64C7-4033-BE7F-39C8C8D527EB AT etr-usa DOT com> <20151021100328 DOT GL5319 AT calimero DOT vinschen DOT de> <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> To: cygwin AT cygwin DOT com X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t9MIYUBR000439 On Oct 22, 2015, at 2:34 AM, Corinna Vinschen wrote: > > On Oct 21 11:26, Warren Young wrote: >> On Oct 21, 2015, at 10:22 AM, Corinna Vinschen wrote: >>> >>> On Oct 21 09:52, Warren Young wrote: >>>> >>>> I mean, I know how to snag a stream of SMB packets with Wireshark, but >>>> I don’t know what I’d be looking for in the dump. >>> >>> Me neither, the Samba guys might be able to help there, perhaps. >> >> Apple hasn’t shipped Samba as part of OS X since 10.6, quite a few >> years ago now. In 10.7, they switched to an internally-developed SMB >> server. > > Yes, but the SMB guys can recite the wire format of SMB asleep, probably. Why would the Samba project’s wizards be motivated to help debug a closed-source piece of software they didn’t write? If anything, I’d expect them to give Apple the finger for booting Samba out of OS X in the first place. > There's also > https://msdn.microsoft.com/en-us/library/windows/desktop/aa365233%28v=vs.85%29.aspx Now we’re talking about *my* motivation, which has only been to test the original report and the fix. I never had this problem — I don’t export whole drives as a matter of principle — and the symptom is now fixed, leaving me without a motivation to learn the SMB protocol. The only people left with both means and motivation would be at Apple, and then only if they had important software that broke because of their implementation choices. You just fixed the only other known piece of software that breaks. (Please don’t back out the fix just to put pressure on Apple! :) ) >> [...] >>> 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? I also had to fix an error in your original code: GetFileAttributes() takes a path string, not a HANDLE. After doing both of these things, I now get a new complaint: Failed to get reparse point: The file or directory is not a reparse point. (0x1126) I’m reporting this in case it affects the way you want your patch for this problem to react. Here’s the new program: http://pastebin.com/kUwPrk8v > Oh and, you have to use the FILE_FLAG_OPEN_REPARSE_POINT flag, of > course. Adding that doesn’t affect the error I get from the program, so I left it out in the Pastebin version. -- 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