From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10452 invoked by alias); 28 Aug 2014 14:58: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 10440 invoked by uid 89); 28 Aug 2014 14:58:31 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 28 Aug 2014 14:58:30 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XN19c-0008TX-VI for cygwin@cygwin.com; Thu, 28 Aug 2014 16:58:25 +0200 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Aug 2014 16:58:24 +0200 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Aug 2014 16:58:24 +0200 To: cygwin@cygwin.com From: Achim Gratz Subject: Re: Why does df fail to stat CIFS shares? Date: Thu, 28 Aug 2014 14:58:00 -0000 Message-ID: References: <20140627143626.GA9220@F1S712WWS> <20140703094152.GB1803@calimero.vinschen.de> <20140826124557.GB5740@calimero.vinschen.de> <20140827151536.GK20700@calimero.vinschen.de> <20140827153700.GL20700@calimero.vinschen.de> <20140827170421.GM20700@calimero.vinschen.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 X-SW-Source: 2014-08/txt/msg00554.txt.bz2 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