usb_mass problem
Posted: Thu Jul 28, 2005 10:19 am
I was having a problem with my usb drive in that there were lots of directories with no name. I tracked it down to the fat_getDirentry function in fat_driver.c. It was regarding the line which determines the last entry:
The comment suggest that the name should have all zeros, the code only checks the first two. On my my usb drive the first entry was zero but the second entry was FF. Is it the file system on my drive that is corrupt? Or is this assumption in usb_mass incorrect?
Code: Select all
//detect last entry - all zeros
if (dsfn->name[0] == 0 && dsfn->name[1] == 0) {
return 0;
}