a question about FAT directory structure

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
AltCtrlDel
Member
Member
Posts: 25
Joined: Sat Jun 25, 2005 11:00 pm

a question about FAT directory structure

Post by AltCtrlDel »

hi

i am trying to implement a module to support FAT 12 file system without long names support, and i would like to know how the subdirectories are implemented in FAT12

are they implemented as a linked list of clusters as any other file is?

i have read the data of a subdirectory on a floppy using the DEBUG dos utility, the directory entry that points to this subdirectory in the root directory indicates that the subdirectory is of zero-length (anybody understand anything?!!!)

the FAT indicates that the first cluster of the subdirectory is the last one (next cluster is FFF) even though the subdirectory holds much more entries than can be held on one cluster!

if my question is not clear plz tell me
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: a question about FAT directory structure

Post by digo_rp »

take OSV1.0.ZIP from http://cody.homelinux.com/~digo_rp/

is my source of using fat12. This source is in pascal. is very simple to understand you can translate to whatever language you want.
the PcOSX is in gcc with nasm, this is a multitasking kernel on hardware based taskswitching. I use it with grub.
Post Reply