exFAT
exFAT is a file system in the FAT family that separates cluster-allocation tracking from file cluster-chain traversal.
An Allocation Bitmap records which clusters are unavailable. For a stream with NoFatChain set, FirstCluster and DataLength describe a contiguous allocation and the corresponding FAT entries must be ignored. For an allocated stream with NoFatChain clear, the FAT supplies the chain. An empty file has no cluster chain. The root directory always uses a FAT chain. [1]
Linux v6.12 implements both paths: its last-cluster lookup uses arithmetic for a no-chain allocation and traverses FAT links otherwise. A FAT chain can itself describe consecutive clusters. [2]
NameHash is not a file identifier: this 16-bit value filters lookup candidates. The volume's Up-case Table supplies character mappings; matching hashes still require comparing the mapped names. [3]
Linux v6.16 filters by both name length and hash before exfat_uniname_ncmp compares up-cased code units. Equal-length AB and EA both hash to 0x2029 but remain different names; AB and ab compare equal in this ASCII example. These exact arithmetic controls do not run the filesystem or demonstrate a kernel defect. [4] [5] [6]
Relations
- related
- ValidDataLength (exFAT), Allocation bitmap, FAT cluster chain, File storage, Free-space fragmentation, Filesystem allocation unit, Filename collision
Citations
- Microsoft exFAT specification: sections 3.1.10, 6.3.4.2, 7.1 and 7.6
- Linux v6.12: exFAT chain traversal and allocation, fs/exfat/fatent.c
- Microsoft exFAT specification: sections 7.2, 7.2.5 and 7.6.4
- Linux v6.16: fs/exfat/dir.c, exfat_find_dir_entry
- Linux v6.16: fs/exfat/nls.c, exfat_uniname_ncmp and exfat_utf8_to_utf16
- Hesela: exFAT NameHash arithmetic and identity boundaries