Principle of FAT file system 4
Description: An important feature is fully supported FAT32 long file names. Long file names are still recorded in the catalog entry. To lower version of the OS or the program can read long file names correctly, the system automatically all long file names created a corresponding short file name, so that the corresponding data can be addressed with a long file name is, you can also use the short file were addressed. Does not support long filenames OS or the program will ignore it considers illegitimate long file name field, and the OS supports long file names or program is explicitly named in the long term to document recording and editing, and hide from the short file names. Achieve long filename directory entry depends attribute byte offset 0xB when this byte attribute is: read-only, hidden, system, label, that is 0FH time, DOS and WIN32 think it it does not legitimate while ignoring its existence. This is the basis for long file names exist. The 0xB home directory entry for 0F, others just let the system defines, Windows9x or Windows 2000, XP typically support no more than 255 characters long file names. Long file name to the system 13 is cut in units of characters, each group occupying a directory entry. It may require more than one directory entry of a file each time long filename directory entries in descending order according to the table of contents, to prevent confusion with other file name.
System in the store long file names, always filled first by descending a long file name directory entry, and then followed by the corresponding short file name. As can be seen from Table 15, the long file name stored in the corresponding file does not start cluster, file size, time and date of the various properties. These attributes are stored in a file or a directory entry in the short file name, file name is always a long and short file names of their respective correspondence, short file name is not a long file names can also be read, but if there is no corresponding long file names The short file name, no matter what the system will ignore its existence. So short file names is essential. Does not support long filenames environment for short file names in the file name and extension fields for changes (including deleted because the first character is deleted rewrite E5H), will make the long file names useless. Contact long file names and short file names alone between maintaining the positional relationship between them is clearly not enough. Actually, 0xD checksum byte long filenames and play a very important role in this checksum character 11 is achieved by a short file name obtained by way of calculation. Systems based on the corresponding algorithm to determine the appropriate long file names and short file names match. This algorithm is not easy to explain using the formula we use to illustrate some c program. int i, J, chknum = 0; If the data offset by 0xD short filenames calculated checksum and long file names are not equal. The system will not in any way that they matched. |