Date: Thu, 13 Jul 2000 09:22:53 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp AT delorie DOT com Subject: Re: Filetree disk size In-Reply-To: <396CB1C5.56815648@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 12 Jul 2000, Richard Dawe wrote: > > > > Perhaps a future port of Fileutils could take care of this. > > Well, since I'm in the process of porting fileutils 4.0, we could put this > feature in. The logical step would be to add code to `stat' that computes the st_blocks field (it is not in `struct stat', so you will need to change the definition of `struct stat' as well). This could be done by computing the cluster size for each drive letter the first time you see that drive, and caching that value for future use. Then you can round up the file's size using that cluster size. Once we support st_blocks, the changes to `du' to use it would be trivial. Ideally, the `configure' script should detect that and cause `du' to use it automagically.