From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46817 invoked by alias); 2 Nov 2015 13:08:28 -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 46802 invoked by uid 89); 2 Nov 2015 13:08:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: mailbackend.panix.com Received: from mailbackend.panix.com (HELO mailbackend.panix.com) (166.84.1.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 02 Nov 2015 13:08:26 +0000 Received: from compute03.cs.columbia.edu (compute03.cs.columbia.edu [128.59.11.33]) by mailbackend.panix.com (Postfix) with ESMTPA id 141E916B4C for ; Mon, 2 Nov 2015 08:08:23 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22071.24647.434328.551494@compute03.cs.columbia.edu> Date: Mon, 02 Nov 2015 13:08:00 -0000 From: Jonathan Lennox To: cygwin@cygwin.com Subject: Re: fstat st_size on open files on Parallels filesystem is wrong In-Reply-To: <20151102112334.GC5319@calimero.vinschen.de> References: <227151856.20140421223417@yandex.ru> <21333.26515.393838.380071@compute01.cs.columbia.edu> <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> X-SW-Source: 2015-11/txt/msg00031.txt.bz2 On Monday, November 2 2015, "Corinna Vinschen" wrote to "cygwin@cygwin.com" saying: > On Nov 2 04:38, Jonathan Lennox wrote: > > Unfortunately, when I do "Run As Administrator" on MinTTY, the Mac drives > > (/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. > > That's a security feature of UAC. You can change that in the registry. > As administrator: > > regtool -d set /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System/EnableLinkedConnections 1 > > Then reboot. Didn't work: $ ls /cygdrive/ c d e $ regtool get /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System/EnableLinkedConnections $ uname -a CYGWIN_NT-10.0 Vidyo-LT0519-10 2.3.0(0.291/5/3) 2015-11-02 11:15 x86_64 Cygwin Is Windows 10 the same? > 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. No, still seeing the failure in the snapshot: $ ./stat-size-test.exe /cygdrive/y/foo ~/foo /cygdrive/y/foo: fstat: st_size=0 /cygdrive/y/foo: stat: st_size=12 /home/jonathan/foo: fstat: st_size=12 /home/jonathan/foo: stat: st_size=12 $ uname -a CYGWIN_NT-10.0 Vidyo-LT0519-10 2.3.0(0.291/5/3) 2015-11-02 11:15 x86_64 Cygwin (See https://cygwin.com/ml/cygwin/2014-04/msg00488.html for the source code to stat-size-test.c). Oddly, though, the original problematic behavior I saw in emacs (with it falsely detecting files as being modified externally) has gone away. Maybe emacs added a workaround for this? -- Jonathan Lennox lennox@cs.columbia.edu -- 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