From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4460 invoked by alias); 5 Dec 2019 19:16:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4317 invoked by uid 89); 5 Dec 2019 19:16:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2129 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 19:16:51 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MNtCi-1iNT6f0Kng-00OK0e for ; Thu, 05 Dec 2019 20:16:49 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 71152A8066D; Thu, 5 Dec 2019 20:16:48 +0100 (CET) Date: Thu, 05 Dec 2019 19:16:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: 3.0.7(0.338/5/3): Possible reference to Developer's instances of dev files in deployed build Message-ID: <20191205191648.GC5146@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20191204210222.GA3578@shackleton.labs.net> <754a577d-dac1-16e0-56a7-8be8ab1d424c@cornell.edu> <20191205091807.GG3337@calimero.vinschen.de> <20191205125227.GH3337@calimero.vinschen.de> <04da8ce9-0163-8381-644f-cc7c0f81a5f5@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <04da8ce9-0163-8381-644f-cc7c0f81a5f5@cornell.edu> User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-12/txt/msg00033.txt.bz2 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2085 On Dec 5 16:10, Ken Brown wrote: > On 12/5/2019 7:52 AM, Corinna Vinschen wrote: > > On Dec 5 10:18, Corinna Vinschen wrote: > >> On Dec 4 21:41, Ken Brown wrote: > >>> The difference is that NtCreateFile doesn't fail with > >>> STATUS_OBJECT_NAME_NOT_FOUND in the other cases, so the code containi= ng the > >>> assertion doesn't get run. > >>> > >>> BTW, I just tried the following on my system: > >>> > >>> $ ls z:\\ > >>> ls: cannot access 'z:\': No such file or directory > >>> > >>> strace shows that NtCreateFile fails with STATUS_OBJECT_PATH_NOT_FOUN= D in this > >>> case, so again the code containing the assertion is not run. > >>> > >>> To be continued... > >> > >> So, maybe we could just check if ext_here - path > 2, i. e. > >> > >> if (status =3D=3D STATUS_OBJECT_NAME_NOT_FOUND && ext_here - path= > 2) > >> > >> That excludes "X:" paths from this special handling for DOS-only drive= s. > >=20 > > The only problem here is that I can't reproduce the assertion failure. > >=20 > > I created a Samba share on a Linux machine, mounted it as drive Z:, > > and set the "always available offline" property of the drive. > >=20 > > After syncing I accessed the drive, then I stopped Samba on the Linux > > server to switch the drive into offline mode. Then I ran `ls -la > > /cygdrive/z'. After a few secs I got the offline content cached on the > > local machine. I also tried `ls -la /cygdrive/' and `cd /cygdrive; ls > > -la', but every time I got the expected output. In the cases I tried > > to list /cygdrive itself I got the expected output, all drives except > > the z drive. > >=20 > > I tried this with Cygwin 3.1.0-0.8.x86_64 on Windows 7 and Windows 10. > >=20 > > So either there's something very special in Wilfed's setup, or I'm > > doing something wrong. Which is it? >=20 > How does your strace output compare to Wilfed's when you list /cygdrive? = Does=20 > it show a failed attempt to list Z: with an error from NtCreateFile? Not at all. The strace doesn't show any attempt to open Z:. Corinna --=20 Corinna Vinschen Cygwin Maintainer --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl3pV6AACgkQ9TYGna5E T6BwEA//Xsk0+BZnFgOSg/Nrzm8KbhUKRNoC774mG0yuckKpt3Tz98ubotQ47qfa XHmGuzDGJfn4buZm9ApUccTva7rj0IVcXj2LmJk62jcqJP+Sx9ErCEvDJcayAEVz WcCzJvF7Yg8wDdVx6h4Pd5SBETOiq59pzZDDZJGhclRdeu2gIh/qYanDhK1NQkBi UQiuYuogb/hmsH062Q3N0xLoh7+7069k+Q0bmcIPIHaCzao5172dPrdIxP7J9pso gOaN6+hshGvxe0VM8zioaDTfYPWAbZQGvf3q391ENATAsz0Pa0F4aRDoANyMK7Nr m3uqPCPh8H9mfOjZYV+FfWidMBLVC9HIRlLroZljXrwgYg8y5LHpu9WHox4SuvU/ oxI3uA7DzmfLm+71cihl2uep0z7ZQe3QGRLi9FOcXEvSB7UvkjqtJjS2+8cMy0pR 68VFq6va9WXLBxMukb8j/plRpQM0HPTmvIfE6UJGuQzKvAQTzhB9VCAx+H3BJaJh 9rQxn8veLZ39d0mbX0l93R5TvRcxFR+pPEyyT/vGv7X1y94Ini8onifh5oQz23fS dfxyRrfUbmHsYTEO04UBqP/EDc9n1oVdkbIPQWOz58JTo0iGnCKY8b/HI4rvFPpx 4QGfnawVEm+T45hNQKK+8IoEDeMM1ai16JpSyK8mvqqGig5aJl4= =K2c3 -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--