From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1750 invoked by alias); 28 Aug 2014 12:31:30 -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 1739 invoked by uid 89); 28 Aug 2014 12:31:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham 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; Thu, 28 Aug 2014 12:31:27 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 3DA3F8E0789; Thu, 28 Aug 2014 14:31:25 +0200 (CEST) Date: Thu, 28 Aug 2014 12:31:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Why does df fail to stat CIFS shares? Message-ID: <20140828123125.GS20700@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140627143626.GA9220@F1S712WWS> <20140703094152.GB1803@calimero.vinschen.de> <20140826124557.GB5740@calimero.vinschen.de> <20140827151536.GK20700@calimero.vinschen.de> <20140827153700.GL20700@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vsi50HYs5tPfr+1I" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-08/txt/msg00549.txt.bz2 --Vsi50HYs5tPfr+1I Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2420 On Aug 27 16:28, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > > -v, please. What means "obviously" here? Did you ask Netapp? >=20 > No, I've tried all combinations of parameters to the open calls to > absolutely no avail. I then started to look at what the VolumeInformation > call is supposed to be doing and decided that this might have a better > chance of producing a workaround. >=20 > > > The FileFsFullSizeInformation class is *old*, it has been introduced > > > with Windows 2000. Did you test all combinations I asked you for? C= an > > > you provide detailed results? It might help to find a working combin= ation. >=20 > All combinations you listed produced absolutely the same behaviour than > before: the open suceeds and the VolumeInfo call fails. I've tried a few > other combinations that are forbidden according to MSDN and promptly had = the > open call fail, so I think I did this correctly... >=20 > While searching the net I've found some notes saying that the only classes > confirmed working everywhere didn't include FileFsFullSizeInformation. T= rue > or not, that's what pushed me to rip it out. >=20 > http://sourceforge.net/p/openxdk/patches/_discuss/thread/4b412944/4ba5/at= tachment/undocumented.txt >=20 > > 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: > >=20 > > PFILE_FS_FULL_SIZE_INFORMATION full_fsi =3D > > (PFILE_FS_FULL_SIZE_INFORMATION) > > alloca (2 * sizeof (FILE_FS_FULL_SIZE_INFORMATION)); > >=20 > > and then change all "full_fsi." to "full_fsi->" >=20 > Tomorrow... >=20 > > If nothing else works, try this workaround for size: >=20 > That's essentially what I've done to get it working. Not that exact patc= h, > so I'll try that out tomorrow as well, but that code path should produce > correct output from df no matter of what FS it finds behind the mount. I've applied my patch since it certainly doesn't hurt. At least not more than those bugs in various filesystems. It seems the minimal requirements for filesystems to get MSFT blessing are *very* low :( Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Vsi50HYs5tPfr+1I Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJT/yEdAAoJEPU2Bp2uRE+gmqYP/1jXP2whSyh5UueUBGtmZNWf Plusm6Po1zMOBN0w082a9JN7ySAY253f2YZ4CrnefF/nS7n5Yhi2ARentKcw6Z70 3aLwGSQBoKXnlvlNbAgtxzh/PcwUNrwTqGAcuz3VqCkYGhGffokfzdr3brRDOnDx 0sVVHKPzGCZf0CVuPLwVT1nghmvXlYNX+DvUvlXqWfitWTGKSPownse7mvyya3Pu mT/pRHF9MOuAEaLyvIZeNBHC24PtmoaoJkUS1g+mAkYa7p6hB6KD6t2QbBcog5Fk 4QWCJtJcrTiG43piB6wIAOu4oOJyl6yeR3IPp5pStzYgc+Dlo9lqopapUPYUkOay k5xuitghNVHWRaly7SaDLtnmRI400uh5ZrSb5EQPE4KbAdWM4ZQ0899L2KEfFWM7 WyMZ2pIGXksOLWdDUQOsGM0YmsIhYhBZ9RwuI9bU4jgM1Q5XNIfSLY1z8VtaUtBh b/x07zhpMfdqELFX6HVQAOD66ZsQqGKcms3F96YOh/3dPFotgbNsZZd1jjfeif8F TN21GTKglhpViX0hjm/FDWN8nq3SSVqCHxQhwIsff5ZWcB/9Ei5j0HJpVWhQXw5+ LPxjLhdo0IpO5eeCuaaoDn8SSRFXp7sedIjUY26MfAQJrp0parqZ4b+BtiX5P2t/ jEvsz5mEJKD+80mq/jXL =1Jwu -----END PGP SIGNATURE----- --Vsi50HYs5tPfr+1I--