Hi,
np->allocsize is the number of bytes allocated for the file, right? (rounded
up to a block multiple).
Is it okay for np->allocsize to be initially as big as needed to contain the
file, rather than the actual disk space allocated for the file? AFAICS, it
is sufficient if diskfs_grow does the right thing in this case.
Rationale:
FAT does not make it easy to determine the length of the cluster chain. You
have to read it in completely. As this is slow for big files (O(n)), we
should avoid it in stat, and only do it in diskfs_grow, when it actually
matters.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
[EMAIL PROTECTED], [EMAIL PROTECTED] PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ [EMAIL PROTECTED]