contiki/core/cfs
nvt-se 1425537a13 Introduced two garbage collection mode: greedy and reluctant.
The greedy GC mode attempts to erase as many sectors as possible, and
it is therefore a slow operation, since the flash driver must wait
for about a second after erasing one sector. The former behavior was
to always do a greedy GC if file reservations fails due to lack of space.

The new reluctant GC stops after erasing one sector, and therefore
we often do not have to wait if there is no file system operation
in the time while the sector is being erased. We call the garbage collector
using this mode when removing a file that is not a micro log file, since
the remove function is called recursively for micro log files that are
erased because the corresponding ordinary file is erased.

This change increases the coffee test (examples/sky/test-coffee.c) speed
from 9 to 5 seconds.
2009-04-02 11:22:23 +00:00
..
cfs-coffee.c Introduced two garbage collection mode: greedy and reluctant. 2009-04-02 11:22:23 +00:00
cfs-coffee.h corrected GC page isolation loop. 2009-03-20 15:15:43 +00:00
cfs-eeprom.c switched unsigned int to cfs_offset_t 2009-02-27 14:50:35 +00:00
cfs-posix-dir.c
cfs-posix.c switched unsigned int to cfs_offset_t 2009-02-27 14:50:35 +00:00
cfs-ram.c Major API change: 2009-02-27 14:25:37 +00:00
cfs-xmem.c Major API change: 2009-02-27 14:25:37 +00:00
cfs.h Switched cfs offset type to signed int to allow backward movements with cfs_seek. 2009-03-01 12:28:39 +00:00