[Kos-cvs] [kos] Modification CVS par d2

KOS CVS kos-dev <kos-dev@enix.org>
Wed, 20 Aug 2003 23:32:33 +0200 (CEST)

Module :	kos
Modifié par :	d2	20/08/03 23:32:33

Fichiers modifiés :
	.              : ChangeLog MkVars 
	modules/debug  : debug.c 
	modules/fs     : Makefile 
	modules/fs/fakefs: fakefs.c 
	modules/fs/fat : Makefile _fat.c _fat.h _fat_karm.c 
	modules/karm   : kres.c mount.c nscache.c open.c ures.c 
	modules/kos    : wolfgang.c 
	modules/lib/std: Makefile snprintf.c strcpy.c string.h 
	modules/part   : _part_karm.c 
Fichiers ajoutés :
	modules/fs/fat : fat.c 
	modules/lib/std: memcmp.c 

Détails :
* all: FAT12/16/32 read+seek OK. To test, use the fattest
command, make sure to configure the device name of the disk qnd
the test path in wolfgang.c, function shell_internals().

* modules/lib/std/string.h (isprint): new macro.

* modules/lib/std/strcpy.c (strzcpy): did not respect its
semantic (could write the '\0'after the end of the dest).

* modules/lib/std/snprintf.c: ugly hack to partially fix a printf
bug with long long ints (the stack args were of-by-4): only the
LSB will be printed. IMPORTANT: find a simple and correct
vsnprintf that does not rely on a sprintf...

* modules/karm/open.c (open): correctly handles dir name with a
trailing '/', as in /file/

* modules/fs/fakefs/fakefs.c: New /file directory to mount a FAT
filesystem. Temporary solution til a remount_root() is implemented.

* modules/debug/debug.c (__dbg_dumpmem): memory dumping in hexa +
string, ala hexdump.

* modules/fs/fat/_fat.c: Now operational ! Tested against FAT12,
FAT16 and FAT32 volumes, seek tests, read tests of sizes larger
and less than a cluster, accross cluster boudaries, ...

FAT marche. Un bug en suspens : le .. n'est pas correctement gere dans nscache.

Dans quelques instants, on proprifie tout ca.