Page 1 of 1

a question about FAT directory structure

Posted: Sun Jul 17, 2005 11:00 pm
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

Re: a question about FAT directory structure

Posted: Mon Jul 18, 2005 11:00 pm
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.