exFAT end of directory cluster

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys, I'm testing a folder copy algorithm that copies folders and content of said folders.  When I create  folder with sub-folders and files in Windows, Windows does not appear to set the folder cluster to 0xffffffff when only one cluster is being used!

 

Should I also test the folder data field size that would be set to the cluster size hence when only one cluster is being used it is set to the cluster size, so even if the cluster has not been mark with 0xfffffffff I can reliably detect that only one cluster is being used?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try looking at "fat" source in Linux - that is a proven working source that can read/write FAT variants and is open source. See how they handle things.

 

This is an old version (just google "lxr" for something more recent) but something like:

 

https://lxr.missinglinkelectroni...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yeah, a cluster chain can keep returning 0x00000000 if all the allocated clusters are consecutive. I'll have to test the file size in such cases.