Mail Archives: djgpp/2000/07/13/02:23:48
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.
- Raw text -