From: Martin Str|mberg Message-Id: <200012302330.AAA15721@father.ludd.luth.se> Subject: Re: Fw: Patch for statfs.c In-Reply-To: from Norberto Alfredo Bensa at "Dec 30, 2000 03:38:49 pm" To: djgpp-workers AT delorie DOT com Date: Sun, 31 Dec 2000 00:30:48 +0100 (MET) Cc: nbensa AT hotmail DOT com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Norberto Alfredo Bensa: > Here it goes...but first, I've made some last-minute changes: > > 1st. I've realised that this new version of statfs will fail on the very first > Windows 95 version (4.00.950), as that version doesn't support > FAT32 drives. Free space reporting on those Windows releases is > limited to ~2GB, even on network drives. Did you try your code on WINDOZE 4.0 (i. e. 95) and saw that or are you just guessing? > 2nd. I've removed completely rescaling. It doesn't make any sense > now that I've changed the order in which the services are called. > > 3rd. I've removed every '#if 0..#endif' in the code... > > One more thing, reporting for network drives, is only totally functional > if running under Windows. Other environments may be limited to > ~2GB (I'm guessing here) Well, on my DOZE 6.22 with TCP/IP I get the same results as before (up to ~4GiB is reported), so you didn't break anything in that setup. As a matter of fact with your work we get up to ~4GiB on networks drives in WINDOZE too. Great work! L00k, df compiled with cvs version: WINDOZE.4 1 520576 468752 51824 90% c:/ SWAP 521368 315136 206232 60% d:/ Drive E: 717968 227872 490096 32% e:/ APPS 5960700 4509468 1451232 76% f:/ GAMES 4723280 3934256 789024 83% g:/ \\SERVER\MIRROR 2097120 2047680 49440 98% m:/ MS-RAMDRIVE 16360 8 16352 0% t:/ \\SERVER\MARTIN 2097120 0 2097120 0% u:/ With your version: Filesystem 1024-blocks Used Available Capacity Mounted on WINDOZE.4 1 520572 468748 51824 90% c:/ SWAP 521368 315136 206232 60% d:/ Drive E: 717968 227872 490096 32% e:/ APPS 5960696 4509448 1451248 76% f:/ GAMES 4723276 3934248 789028 83% g:/ \\SERVER\MIRROR 4128705 4079628 49077 99% m:/ MS-RAMDRIVE 16360 8 16352 0% t:/ \\SERVER\MARTIN 4128705 0 4128705 0% u:/ So I'll check in your patch in a couple of days if nobody objects. It would be good to get this tested on DOZE 6.21 and earlier and DOZE 7.0 and WINDOZE before FAT32 arrived to see we don't mess up anything. I've tested it on DOZE 6.22, WINDOZE 95B, 98, ME and the corresponding DOZEs. Right, MartinS