delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/22/04:35:07

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=PAvuaoiNH4dDqVYjKImt6MeUCiRp5j0cwKzlRR/y0RH5RC9twyMe1
/ckcPleNGaft3hl7eAp2/XXpIBtaVbOj5RKN2UJqcDVhrt9+SElDDQa5HZlpiZ/q
xOQe1eDd9Kb91fv7bWftmF3Pc2WIBiQyu8mFLWOUoIdPfM95ulCj9U=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=bNypoVezC30MCRX/b+b7FzMbAjw=; b=L/N64sY2kmTs54+07zg98Upo0wHD
pRB7WmupmvLVSKpoqU9biGxqbT2Tbx8aChQSsfx3l+VLDn1XZO3zqBP7Dd7Ht0CT
c5QXARMJEtUYrUdytKDtnD7vghMyZDx7DkQsniWAWTEcMlyLWl2O1/8w1c8mc9cx
gvNT0377KQ/a5Zw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 22 Oct 2015 10:34:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Error accessing mapped drive >2TB?
Message-ID: <20151022083446.GW5319@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <169BF9F6-FF26-4073-9CC4-786882EFBAE9@etr-usa.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--TOcFo/l1T3s1H/TJ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 21 11:26, Warren Young wrote:
> On Oct 21, 2015, at 10:22 AM, Corinna Vinschen wrote:
> >=20
> > On Oct 21 09:52, Warren Young wrote:
> >>=20
> >> I mean, I know how to snag a stream of SMB packets with Wireshark, but
> >> I don=E2=80=99t know what I=E2=80=99d be looking for in the dump.
> >=20
> > Me neither, the Samba guys might be able to help there, perhaps.
>=20
> Apple hasn=E2=80=99t 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.
There's also
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365233%28v=3Dvs.=
85%29.aspx

> [...]
> >  HANDLE handle =3D CreateFile ("P:\\", ...);
>=20
> I guess I=E2=80=99m not seeing what values to pass to CreateFile() becaus=
e I
> get an error with the values I=E2=80=99m trying here.  I=E2=80=99ve put m=
y fleshed-out
> test program here:
>=20
>   http://pastebin.com/BfN2fNBQ
>=20
> Its complaint is:
>=20
>   Bad handle: The filename, directory name, or volume label syntax is
>   incorrect.  (0x7b)
>=20
> I double-checked, and P: is still mapped.

Opening a directory requires to use the FILE_FLAG_BACKUP_SEMANTICS flag.
See the Remarks section of
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=3Dvs.=
85%29.aspx

Oh and, you have to use the FILE_FLAG_OPEN_REPARSE_POINT flag, of
course.

This might be the difference to Explorer.  If the server accidentally
returns the FILE_ATTRIBUTE_REPARSE_POINT flag only if the dir has been
opened with FILE_FLAG_OPEN_REPARSE_POINT, Explorer would never see
this.  In contrast to Cygwin it's not interested in the fact whether
the dir is a reparse point or not.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--TOcFo/l1T3s1H/TJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWKJ+mAAoJEPU2Bp2uRE+gKCEQAKZ6cf25cyLLJSDm/T/TePZ2
tLLVbGBiQv4BGPKiJxQRy7Tlq3iIqVOvxpZF6ytrUBPuqzT07EqAX0RIM0Ht0CHe
bnxdj2DkfCgpU87Ep2nNtjQPhbyWLM3SYcgDPQU/Dl1xFgYO9b6W8GCIW2bqy6Ng
cnVZW+dWUDWWAq3c2qtnILogW5zhbUVWIAJthyd8MS9S+HWz8mvKW2ITlBnOLPaC
s7NgGOJlFbzEDmdV3/58sJcJLolWjm54nKvCYj47U4yOhX5xcxaRzzyC9Gbfttcz
O/a0/iGW2ho/l3roQ059H71EgzP01d/XIx8xyK9kVsSc5eezrS/BLVnIuTSU5krN
w/ZY/341lvacmyHQgfZHvbUs572ZwK/MOaZX/dNn+ztLvoNmvI5hnHKbAsI3mwMu
pLLZy1vRCJRdWDRdKHaRNDDKpckwiCqnVgkJ/xzA0C7/2gwRjGzDHK5D9Lr0ZRyk
3d0TB8gspH8A6IJGb2/oLNBXW30Hsrl4lTOdCh2Bw5ypZALnqA2VgN4vcqBVUdMc
GP9zmf4UfSUEk5/lRnIc6nXPnYHmZcBJNDps3f9e88j+Yrikt58HwP5bL8Siez4m
50vHS7NorzodZnyWqHq91yo1j3/j8FU0LPprzIiesXTqvZrwDPVPSs3uoZjHrV/t
AE9OkxqG2TjmWWAQKwub
=F44q
-----END PGP SIGNATURE-----

--TOcFo/l1T3s1H/TJ--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019