|
![](/i/fill.gif) |
>> Quite why Windows can't just write the final listing to the directory
>> block and then write all the file data blocks sequentially is beyond me,
>> but anyway...
>
> What happens if the power goes out in the middle of the operation and
> the file allocation table has already been written, but the actual data
> has not been copied over? This is why you have to update the FAT
> everytime you use a block, and the directory everytime you write a file.
>
> This is one of the earlier forms of transaction tracking.
OK. So do it in the opposite order. Write the directory entry last,
after all the files have been written.
It's not like anybody expects a floppy disk to actually operate
*reliably*...
Post a reply to this message
|
![](/i/fill.gif) |