From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26346 invoked by alias); 2 Nov 2015 14:06:32 -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 26333 invoked by uid 89); 2 Nov 2015 14:06:32 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Nov 2015 14:06:31 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id CF679A803FA; Mon, 2 Nov 2015 15:06:27 +0100 (CET) Date: Mon, 02 Nov 2015 14:06:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: fstat st_size on open files on Parallels filesystem is wrong Message-ID: <20151102140627.GA963@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140422081628.GC2339@calimero.vinschen.de> <21334.55207.784319.488271@compute01.cs.columbia.edu> <20140423084056.GJ2339@calimero.vinschen.de> <21335.61113.963950.516021@compute01.cs.columbia.edu> <20140423172413.GQ2339@calimero.vinschen.de> <22038.38637.802707.846218@compute03.cs.columbia.edu> <20151021110734.GO5319@calimero.vinschen.de> <22071.12068.858109.210047@compute03.cs.columbia.edu> <20151102112334.GC5319@calimero.vinschen.de> <22071.24647.434328.551494@compute03.cs.columbia.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <22071.24647.434328.551494@compute03.cs.columbia.edu> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00032.txt.bz2 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2204 On Nov 2 08:08, Jonathan Lennox wrote: > On Monday, November 2 2015, "Corinna Vinschen" wrote to "cygwin@cygwin.co= m" saying: >=20 > > On Nov 2 04:38, Jonathan Lennox wrote: > > > Unfortunately, when I do "Run As Administrator" on MinTTY, the Mac dr= ives > > > (/cygdrive/z and /cygdrive/y) don't show up. I don't know why that is= . So I > > > can't test hard links as administrator. > >=20 > > That's a security feature of UAC. You can change that in the registry. > > As administrator: > >=20 > > regtool -d set /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current= Version/Policies/System/EnableLinkedConnections 1 > >=20 > > Then reboot. >=20 > Didn't work: >=20 > $ ls /cygdrive/ > c d e >=20 > $ regtool get /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersi= on/Policies/System/EnableLinkedConnections >=20 ^^^? That should print "1" EnableLinkedConnections is a DWORD value and should be set to 1. > $ uname -a > CYGWIN_NT-10.0 Vidyo-LT0519-10 2.3.0(0.291/5/3) 2015-11-02 11:15 x86_64 C= ygwin >=20 > Is Windows 10 the same? Yes. Works for me. > > I added support for this filesystem (called prlfs in mount output) and > > without hardlink support for now. I uploaded a new developer snapshot > > to https://cygwin.com/snapshots/ Please give it a try. >=20 > No, still seeing the failure in the snapshot: >=20 > $ ./stat-size-test.exe /cygdrive/y/foo ~/foo > /cygdrive/y/foo: fstat: st_size=3D0 > /cygdrive/y/foo: stat: st_size=3D12 > /home/jonathan/foo: fstat: st_size=3D12 > /home/jonathan/foo: stat: st_size=3D12 Weird. There should be no FileNetworkOpenInformation call anymore for Netapp and the PrlSF filesystem. Does Cygwin correctly recognize the FS? What does `mount' print? It should print `type prlfs'. Can you please once again call `/usr/lib/csih/getVolInfo.exe Z:' and `/usr/lib/csih/getVolInfo.exe Y:' and paste the output here? I'm not quite sure because the original getVolInfo call returned a filesystem type of "PrlSF", not "PrlFS" as I had expected. Cygwin now checks for "PrlSF". Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWN23jAAoJEPU2Bp2uRE+g9U8P/1TtYAV25l28/l/9zyprn94K j0lhiJJZ7USrtxm30RP5uoYdLL+DWWA59vv0X07xNsWqM5yo4N1GHZ07ZD9HiUk2 IFoCan8mfuAzrYI3VmxYHbAH5brM+IVJ5DB1RQPpzWZ5buoX6KhcXmlH/B+5g4Zj ASqYF80PqcFrJn/Xj6vCxiXULEvH/q1iniBWhkwOGN0SSEM14BTvToyGiGOPfcDO 5o66aWl+CuWsu+xfJXSAAWIJCQD0q/nbWxkVORYMnBy0YmBvzxr/pVPgIkK3U4dq uUFd1ydNc01F3nKMmnAjptqIsLh5f4aQ4oDsr5S0UNtNMWpe5w3BQj5P2orlHace qEgbIVevCLqmOuiK1Fs8SQgu4vsw7cWb98kbQlwwrS1rmfbK44sqiAuxBse3fKLZ Z/txQAgHHaLKjFyCWnDw0Yc2yptTaMFnPLHt4LXWZWmcIEMP9KYLmTaypy94GsRA PIuCnhY/K+mYNe7UxFfvGPPkxti3zsI3umv52HjrxTna5M4YjRT505A5WHQYGdox ahiSd8bJ51rtF7wS4HGsMa1GhtWBKMtUcWfqJcKcKS8xFgREg9S3wNca39r3PABW U7My8+8sN+PFEjbRBiIqDx8GsPbcbe3BB9zppBYcGkolbpNI1BdfmQj2YcXftZ2I giwO+bq2DjhfCJkPV0zS =GuZb -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--