From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:FAT (FAT12, FAT16, FAT32, VFAT)" |
|---|
| claim | "A VFAT long-name slot is a 32-byte entry with attribute 0x0F, 13 UTF-16 characters, a sequence id (bit 0x40 on the last logical slot, at most 20 slots) and a checksum of the 11-byte short name." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:FAT (FAT12, FAT16, FAT32, VFAT)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "msdos_dir_slot" |
|---|
| size | "0x20" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "id" |
|---|
|
| offset | "0x01" |
|---|
| size | 10 |
|---|
| type | "char16_t[5]" |
|---|
| name | "name0_4" |
|---|
|
| offset | "0x0B" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "attr" |
|---|
| condition | "0x0F" |
|---|
|
| offset | "0x0C" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "reserved" |
|---|
|
| offset | "0x0D" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "alias_checksum" |
|---|
|
| offset | "0x0E" |
|---|
| size | 12 |
|---|
| type | "char16_t[6]" |
|---|
| name | "name5_10" |
|---|
|
| offset | "0x1A" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "start" |
|---|
| condition | "0" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "char16_t[2]" |
|---|
| name | "name11_12" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct msdos_dir_slot" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "c03c1a14507dfaf8b856c2608f9ac216021fc222" |
|---|
| path | "include/uapi/linux/msdos_fs.h" |
|---|
| lines | "185-195" |
|---|
|
| type | "source" |
|---|
| detail | "fat_parse_long: id must have 0x40, slots = id & ~0x40, 1..20" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "c03c1a14507dfaf8b856c2608f9ac216021fc222" |
|---|
| path | "fs/fat/dir.c" |
|---|
| lines | "333-341" |
|---|
|
| type | "source" |
|---|
| detail | "fat_checksum: s = (s<<7) + (s>>1) + name[i] over 11 bytes" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "c03c1a14507dfaf8b856c2608f9ac216021fc222" |
|---|
| path | "fs/fat/fat.h" |
|---|
| lines | "241-250" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Long file name slot" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T06:21:48.501Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:44:12.457Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read struct msdos_dir_slot in msdos_fs.h (id, name0_4[10], attr, reserved, alias_checksum, name5_10[12], start, name11_12[4] = 32 bytes) and fat_parse_long in fs/fat/dir.c: id must have 0x40, slots = id & ~0x40 must be 1..20. Matches." |
|---|
|
|
|---|