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:mime-version:content-type :content-transfer-encoding:message-id:date:from:to:subject :in-reply-to:references; q=dns; s=default; b=rt458D/l5Xe3IiA15z1 469G7CFAC2KqS42Zj+lpgJAogMQCIx5iRFgklUjT3AogXcbNlnS1tZOB5uqFCqgg Nm3ec510AYYFXN4Dp/9eLuuGU4Iu/Y1vXRVbPiFyJ6phfFcGl+73VknZEy+8X8E6 vLHPvrF371yH4gTcXfFgFfaQ= 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:mime-version:content-type :content-transfer-encoding:message-id:date:from:to:subject :in-reply-to:references; s=default; bh=usltTbnndcC12cXebHRF5FfGp dM=; b=mV334NnCdJa1E3sjOq10qENIdboMS40/aChTrcpdkXoK3yHzDcCMHPE3y Pz0Pl+kh1SffSsNemzKbZgSyTX6EH2JY5mTh7LFMibOfQkRK5g1OY1VB/HYJTcry CSCb55pqJsjcMRNLW+pFINTffo3cmgSZjKwo9ppwsdfuidNjxA= 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=0.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: mailbackend.panix.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22071.56848.992859.797169@compute03.cs.columbia.edu> Date: Mon, 2 Nov 2015 17:05:04 -0500 From: Jonathan Lennox To: cygwin AT cygwin DOT com Subject: Re: fstat st_size on open files on Parallels filesystem is wrong In-Reply-To: <20151102140627.GA963@calimero.vinschen.de> References: <20140422081628 DOT GC2339 AT calimero DOT vinschen DOT de> <21334 DOT 55207 DOT 784319 DOT 488271 AT compute01 DOT cs DOT columbia DOT edu> <20140423084056 DOT GJ2339 AT calimero DOT vinschen DOT de> <21335 DOT 61113 DOT 963950 DOT 516021 AT compute01 DOT cs DOT columbia DOT edu> <20140423172413 DOT GQ2339 AT calimero DOT vinschen DOT de> <22038 DOT 38637 DOT 802707 DOT 846218 AT compute03 DOT cs DOT columbia DOT edu> <20151021110734 DOT GO5319 AT calimero DOT vinschen DOT de> <22071 DOT 12068 DOT 858109 DOT 210047 AT compute03 DOT cs DOT columbia DOT edu> <20151102112334 DOT GC5319 AT calimero DOT vinschen DOT de> <22071 DOT 24647 DOT 434328 DOT 551494 AT compute03 DOT cs DOT columbia DOT edu> <20151102140627 DOT GA963 AT calimero DOT vinschen DOT de> On Monday, November 2 2015, "Corinna Vinschen" wrote to "cygwin AT cygwin DOT com" saying: > On Nov 2 08:08, Jonathan Lennox wrote: > > On Monday, November 2 2015, "Corinna Vinschen" wrote to "cygwin AT cygwin DOT 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 > > > ^^^? > > That should print "1" > > EnableLinkedConnections is a DWORD value and should be set to 1. Yes, sorry, it does print 1. Copy & Paste error. Given "cyg Simple"'s comment, I guess I need to recreate the mapped drives as the Administrator user? > > > 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 > > 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'. $ mount C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) C:/cygwin64/lib on /usr/lib type ntfs (binary,auto) C:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type iso9660 (binary,posix=0,user,noumount,auto) E: on /cygdrive/e type iso9660 (binary,posix=0,user,noumount,auto) U: on /cygdrive/u type prlsf (binary,posix=0,user,noumount,auto) V: on /cygdrive/v type prlsf (binary,posix=0,user,noumount,auto) W: on /cygdrive/w type prlsf (binary,posix=0,user,noumount,auto) X: on /cygdrive/x type prlsf (binary,posix=0,user,noumount,auto) Y: on /cygdrive/y type prlsf (binary,posix=0,user,noumount,auto) Z: on /cygdrive/z type prlsf (binary,posix=0,user,noumount,auto) > 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". > $ /usr/lib/csih/getVolInfo.exe /cygdrive/z Device Type : 7 Characteristics : 10 Volume Name : Serial Number : 0 Max Filenamelength : 255 Filesystemname : Flags : 3 FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK : FALSE FILE_PERSISTENT_ACLS : FALSE FILE_FILE_COMPRESSION : FALSE FILE_VOLUME_QUOTAS : FALSE FILE_SUPPORTS_SPARSE_FILES : FALSE FILE_SUPPORTS_REPARSE_POINTS: FALSE FILE_SUPPORTS_REMOTE_STORAGE: FALSE FILE_VOLUME_IS_COMPRESSED : FALSE FILE_SUPPORTS_OBJECT_IDS : FALSE FILE_SUPPORTS_ENCRYPTION : FALSE FILE_NAMED_STREAMS : FALSE FILE_READ_ONLY_VOLUME : FALSE FILE_SEQUENTIAL_WRITE_ONCE : FALSE FILE_SUPPORTS_TRANSACTIONS : FALSE $ /usr/lib/csih/getVolInfo.exe /cygdrive/y Device Type : 7 Characteristics : 10 Volume Name : Serial Number : 0 Max Filenamelength : 255 Filesystemname : Flags : 3 FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK : FALSE FILE_PERSISTENT_ACLS : FALSE FILE_FILE_COMPRESSION : FALSE FILE_VOLUME_QUOTAS : FALSE FILE_SUPPORTS_SPARSE_FILES : FALSE FILE_SUPPORTS_REPARSE_POINTS: FALSE FILE_SUPPORTS_REMOTE_STORAGE: FALSE FILE_VOLUME_IS_COMPRESSED : FALSE FILE_SUPPORTS_OBJECT_IDS : FALSE FILE_SUPPORTS_ENCRYPTION : FALSE FILE_NAMED_STREAMS : FALSE FILE_READ_ONLY_VOLUME : FALSE FILE_SEQUENTIAL_WRITE_ONCE : FALSE FILE_SUPPORTS_TRANSACTIONS : FALSE (Note that the literal "/usr/lib/csih/getVolInfo.exe Z:" printed "NtOpenFile(\??\C:\cygwin64\home\jonathan\Z:) failed, c0000033", so I assume that's not what you want.) -- Jonathan Lennox lennox AT cs DOT columbia DOT 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