Hi Imre,

> Eric told me you where working on something similar as me, 
> namely a portable FAT file system. 

that's right :-)

> I am not aware of what your intentions are with this port, 
> so I am not going to try to steel this from you.
> 
> But have you considered:
> - that FreeDOS doesn't have long file name support in the 
> kernel

Yes, I know that.

> - that there are no functions in the kernel that allow to 
> easily read/write files, like with fopen, fread, ...

Four year ago I ported the FreeDos filesystem and added the ANSI stdio.h 
library taken from Minix (written permission).
Therefore I got (and can share with anybody) a full stdio library. 
 
> - that the FreeDOS kernel license is GPL and therefore every
> code that uses this port has by consequence to be GNU GPL.

Yes. 

> I am currently reworking my own code to make a portable FAT 
> file system, based on the code of defrag, chkdsk and 
> recover. 
> 
> It will have:
> - long file name support
> - a full c-lib like API for working with files (fopen, 
> fread, ...)
> - it will be GNU LGPL
> - it will include a browser, so that you can work with image
> files, pretty much like you can use diskexplorer 
> (http://hp.vector.co.jp/authors/VA013937/editdisk/index_e.html)

The FreeDOS' filesystem seems to work pretty good. I made quite a few tests and 
I personally think that the code is reliable.

Adding LFN support is not trivial but shouldn't be a problem.
 
> And it will most likely also have:
> - journaling extensions
> 
> With journaling extensions I mean that the code will be 
> compilable so that before changing anything on the disk it 
> will make a copy of that part of the disk. When the change 
> was done correctly the copy will be deleted, if the system 
> reboots and the copy is still on the disk, the system will 
> reset the copy.

That's interesting.
I think that if you want to make this extension portable you should store the 
journal in a file and not in some reserved region of the disk.
 
> Again, this is what I was planning to do, you can of course 
> write wathever you want to write and I will not bother with 
> it.

Things are that I need to read/write flash USB disks in a commercial embedded 
product by the end of October and the port is almost done.

What's the status of your work?

If you want, we can share the effort and work together on the FreeDOS 
filesystem:-)


Here you'll find the port that I made 4 years ago:

 www.fatti.com/ffs/ffs.zip

It's "0 warning" port and please, note how clean the code is :-)

Enrico

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to