WinCE operates FAT file system in strange manner



Hi all!
I am developping a usb mass storage function driver in WinCE4.2.
I use FMD_ReadSector() and FMD_WriteSector() in CE driver to serve
the
READ10 or WRITE10 CBW posted from usb host.
I found the FAT32 formated by WinCE is so strange. Having Computed
from
DBR(BPB) and
the LBA value stored in sectorinfo of each sector,I know the position
of FAt
table andthe data setion start. In WinCE, I copy a file to
ResidentFlash
directory(FAT32 partition),then I find the actual FAT table is not
write,but WInCE set a sector of data section to FAT Table.And the new
sector used for FAT Table is marked with
a LBA value as same as the start sector of actual FAT table. So there
are some sectors
with teh same LBA.
So,when I cannot make the device to serve correctly to the READ10 or
WRITE10 CBW from usb host.

Anyone can help me? Thanks a lot!

.



Relevant Pages

  • Re: Compact flash transfer rate (w/microcontroller)
    ... Considering that you also update the fat, ... Single sector writes are just fine. ... that said the so called but totally missleading "memory mapped mode". ...
    (comp.arch.embedded)
  • Re: fsck.vfat malloc trouble
    ... Top shows it does indeed allocate all remaining memory. ... The filesystem is 153G. ... There are differences between boot sector and its backup. ... First FAT starts at byte 16384 ...
    (alt.os.linux)
  • Re: The 9997th file specific DOSFS problem
    ... Thought it is already using 32 KB sector size. ... The 512 bytes "tiny cache" for the FAT is very intersting. ... and should not be confused with the cluster ...
    (comp.os.vxworks)
  • Re: HD gone after Word wrote the first sectors
    ... >>> I tried (I had a backup of that sector) to put back the first sector ... >>> to recover the 2nd partition with all files. ... >> A few times lately I have seen that the FAT in the beginning of the ... >> root cluster, examine that the partition is OK using the second FAT ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: crash
    ... connected to my Ubuntu notebook through the USB port. ... But mounting it or running fsck on it as ext3 doesn't ... behind a FAT translation service. ... filesystem, ...
    (alt.os.linux)

Quantcast