Hi Eric,

> That is not a compile time thing. Most of those variables are in
> kernel.asm and the List of Lists, where they either have hardcoded
> initial values (f_nodes_cnt is 0) or are initialized by zeroing
> out memory areas or by calculating values during kernel init.
>

yes, I read carefully the kernel.asm file and noticed that the DATASTART area 
declares many variables pointed by LoL, and initialized.

> You cannot use filenames / pathnames longer than 67 (but the
> LFN mapped to them with drivers like DOSLFN can be longer).
>
> You cannot use UNICODE filenames either (the filename charset
> depends on your codepage / dos font, and it is recommended to
> use plain ASCII). Again, DOSLFN can help, it supports some
> subsets of UNICODE for the long file names.
>

In principle, I would like FFS to be able to handle pathnames longer than 67 
and possibly read Unicode filenames.
I might add a thin layer that translates Unicode UCS2 filenames into UTF8 ones. 
In this way, I can still use the ordinary strlen(), strcpy() functions.
The port, though,  is not yet mature for me to understand where, in the code, 
those limitations are located.

> To mount partitions, they are added to some array or
> linked list of drive properties. Also used for ramdisks
> and networked/nonfat drives. Read the initdisk.c code
> starting at dsk_init() / ReadAllPartitionTables() and
> the things which call it, such as init_kernel() and
> FreeDOSmain(). Then you will also know what FreeDOS
> does between "boot sector" and "read config sys".
>

I'm working on initdisk.c :-)

> The latter is done in config.c and is probably
> interesting for you to read IF you plan to use BUFFERS.
> Maybe you do, as it makes porting easier. 

I'm gonna use buffers :-)

Do you think I'll be to produce a port that doesn't depend on "struct dhdr"?
In other words, how deep are the dependancies between "struct dhdr" and the 
code used by the filesystem?

> Make sure
> you do not implement too much of init_kernel(), or you
> may end up adding the whole FreeDOS kernel to FFS ;-).

:-)

>
> Eric
>
Enrico



------------------------------------------------------
Leggi GRATIS le tue mail con il telefonino i-modeĀ™ di Wind
http://i-mode.wind.it/



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to