> From: Chris Liechti 
> Sent: Tuesday, January 27, 2004 12:49 PM
> 
> if you write a big file, it does not need to be continuos on 
> the disk.  the clusters may be used in any order. and that will
> happen if you dont start with a fresh formated card. thus, you
> have to read the FAT table and find out which cluster is the
> next, you also need to parse the directory entries to find out
> which is the first cluster of the file.

Yeah, I am aware of that.  I was thinking of a freshly formatted
card where all the clusters of the large file are allocated in 
order.  Just use a PC to format then allocate a large file filled
with 0xFF (erased).  After you have done this once, all cards 
of the same size that are formatted the same way will have the 
first file cluster in the same place.  I'm just trying to remove
all the FAT code from the MSP device.

Hmmm...  Obvious problem is that I'm not the only user of my
product so I have to worry about the general case of another
user putting in a card with other files on it.  Drat.  Looks
like my idea is not good for that situation.  Unless I'm willing
to format the card and delete his/her files.  Still thinking...

> see my notes in the other mails. i had a similar idea as you :-)

Yes, I saw that after I wrote my email.  It seems the email server
is sending some messages out of chronological order.  Or perhaps
I just read them out of order.  

                                - Dan Miner

Reply via email to