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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=twS2T4xVYGiHhPCqx0NmlbyWboaMWpw0Pw2nrjqqBh7nTDDysruRU YA8e9pAJK8qmn7SK96spwpU4S+BXe0BxMjN66Nl1Ek431xefyUjrIfnJxsYAN51d UfcMLEEFtwft15Z0BhJAJaewMr00x4VONduydBa6aPuKD4zHmmofw0= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=jV47zOOyBGqW6HqL0gKOd1PIOpA=; b=k9nSvJVdwdUtmf1OLcXeLVrbysMd ExGUjQqGR7ikmHleKn3rS2n7mw99CY+roCZT1mXTFFOPlbrxUwfBO3c6D5KbEUSW wBbp+lfeaKiMo3oW5EjxB7G/ZLjdUh23OlIF4J/9ZUVZXPYTDMcezyN8jMPfdIxe PeIzLw+W03tMQN4= 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=-5.2 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Achim Gratz Subject: Re: Why does df fail to stat CIFS shares? Date: Thu, 28 Aug 2014 14:58:14 +0000 (UTC) Lines: 28 Message-ID: References: <20140627143626 DOT GA9220 AT F1S712WWS> <20140703094152 DOT GB1803 AT calimero DOT vinschen DOT de> <20140826124557 DOT GB5740 AT calimero DOT vinschen DOT de> <20140827151536 DOT GK20700 AT calimero DOT vinschen DOT de> <20140827153700 DOT GL20700 AT calimero DOT vinschen DOT de> <20140827170421 DOT GM20700 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > > [...] The patch with the fallback to FileFsSizeInformation works as expected. > > > Btw., one other hare-brained idea would be if the Netapp FS has a > > > somewhat different idea of the size of FILE_FS_FULL_SIZE_INFORMATION, > > > maybe due to a misunderstanding in alignment. What you could try is > > > to make full_fsi a pointer: The FileFsFullSizeInformation path still fails with the same error code even with these changes (I've added a few debug_printf to show the results even in the case of success): 31 3473313 [main] df 28752 statvfs: (/home/gratz, 0x28A864), file_attributes 48 1186 3474499 [main] df 28752 fhandler_disk_file::fstatvfs: 0xC000000D = NtQueryVolumeInformationFile(\??\H:\GNU, FileFsFullSizeInformation) 479 3474978 [main] df 28752 fhandler_disk_file::fstatvfs: 0x0 = NtQueryVolumeInformationFile(\??\H:\GNU, FileFsSizeInformation) 1709 3476687 [main] df 28752 fhandler_disk_file::fstatvfs: 0 = fstatvfs(/home/gratz, 0x28A864) 34 3476721 [main] df 28752 statvfs: 0 = statvfs(/home/gratz,0x28A864) Regards, Achim. -- 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