Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
saratoga:
--- Quote from: DonDan on May 27, 2010, 11:49:47 AM ---I have noticed that if a crash occurs during a recording, there is no file with the recorded data. It would be a really awful scenario if you have, lets say recorded a 2 hours session, and in the last few minutes it crashes. You would have lost the entire recording.
--- End quote ---
If you lose power while writing the fat table isn't properly closed. Run check disk and it'll be updated and you'll get your file.
DonDan:
Would this also apply to a crash during the recording or only to shutdowns caused by power down?
saratoga:
--- Quote from: DonDan on May 27, 2010, 12:10:35 PM ---Would this also apply to a crash during the recording or only to shutdowns caused by power down?
--- End quote ---
I can't think of any difference between the two, so presumably.
DonDan:
--- Quote from: saratoga on May 27, 2010, 12:04:45 PM ---
--- Quote from: DonDan on May 27, 2010, 11:49:47 AM ---I have noticed that if a crash occurs during a recording, there is no file with the recorded data. It would be a really awful scenario if you have, lets say recorded a 2 hours session, and in the last few minutes it crashes. You would have lost the entire recording.
--- End quote ---
If you lose power while writing the fat table isn't properly closed. Run check disk and it'll be updated and you'll get your file.
--- End quote ---
Why is the File Allocation Table is only written at the end of recording process?Would it not be better if it is done at the beginning to ensure you find the file without a fdisk procedure in case of a power down or crash?
Am I missing something?
Vague Rant:
That would conflict with the very concept of the FAT, which you might think of as a book index which lists where everything can be found--the difference being that the FAT also has to know how large the file is ("how many pages it takes up"). The nature of a recording is that it's constantly growing in size, so adding it to the FAT record at the beginning wouldn't make any sense.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version