Summary of FAT file system 3
Eight, long file names
Long file names are on the original FAT system introduced on only supports short file name system, like the long file name does not exist. To achieve this goal, the long file name by introducing a new character attributes (Attribute) in the original directory entry can be achieved.
ATTR_LONG_NAME = ATTR_READ_ONLY |
ATTR_HIDDEN |
ATTR_SYSTEM |
ATTR_VOLUME_ID
Determine whether a directory entry for the long file name, to MASK achieved through the following:
ATTR_LONG_NAME_MASK = ATTR_READ_ONLY |
ATTR_HIDDEN |
ATTR_SYSTEM |
ATTR_VOLUME_ID |
ATTR_DIRECTORY |
ATTR_ARCHIVE
Long filename directory entry data structure is as follows:
Long file names using Unicode character encoding.
Checksum algorithms, implemented in C language as follows:
/ / ------------------------------------------------ ------------------------
|