FAT: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Adding patent note and removing invalid syntax
m Reverted edits by Lukand (talk) to last revision by Cmpsb
Line 412: Line 412:
Notice that each character is two bytes long and that the name is null terminated. The two FF's at the end are the padding at the end of the long file name. This is also what the other FF's in the long file name entry are.
Notice that each character is two bytes long and that the name is null terminated. The two FF's at the end are the padding at the end of the long file name. This is also what the other FF's in the long file name entry are.
The final important thing to notice about the long file name entry is it's attribute byte at offset 11. the 0x0F attribute allows us to verify that this is indeed a long file name entry.
The final important thing to notice about the long file name entry is it's attribute byte at offset 11. the 0x0F attribute allows us to verify that this is indeed a long file name entry.
=== Sad note ===
'''LFN''' is patented by Microsoft, and if you try to make your OS public without paying licenses, you may be '''violating patent rights'''. If you want file names >8 for free, you should consider another filesystem.


== Programming Guide ==
== Programming Guide ==
This section is intended to give you information about common functions that are preformed on a FAT file system.
This section is intended to give you information about common functions that are preformed on a FAT file system.
Edit: If you are focusing on FAT32 only, there is an article for that: [[User:requimrar/FAT32]] that you might want to check out.
Edit: <plug>If you are focusing on FAT32 only, there is an article for that: [[User:requimrar/FAT32]] that you might want to check out.</plug>


=== Reading the Boot Sector ===
=== Reading the Boot Sector ===