[Kos-cvs] [kos] Modification CVS par d2
KOS CVS
kos-dev <kos-dev@enix.org>
Tue, 19 Aug 2003 17:36:17 +0200 (CEST)
Module : kos
Modifié par : d2 19/08/03 17:36:17
Fichiers modifiés :
. : ChangeLog
modules/ide : _ide_karm.c
modules/karm/interface: block.h file.h
modules/kos : wolfgang.c
modules/lib/blockfile: libblockfile.c
modules/part : _part.c _part_karm.c
Détails :
* modules/lib/blockfile/libblockfile.c (lbf_read/lbf_write): call
a common function to perform both read/writes.
(lbf_readwrite): The common function, calls
lbf_readwrite_partial_block() to fetch a portion of a
block. Tested against read past the end of file, with partial
blocks, mixed partial/complete blocks, ... number of bytes
read/written consistent with this.
* modules/kos/wolfgang.c (file_test): stress test for read/write,
to make sure invalid seeks are correctly detected, and that reads
past the end of file are correctly handled (partial read correctly
made): the reported number of bytes read/written are consistent
with the EOF detection, partial read/writes of partial blocks
correctly handled, ...
* modules/karm/interface/block.h: read/write methods now return
the number of blocks read/writtent from/to device
* modules/ide/_ide_karm.c (_ide_block_read/_ide_block_write):
don't perform read/write past the end of the disk
Compile et tests Ok.