Commit Graph

159 Commits

Author SHA1 Message Date
nvt-se
fff8b46110 fixed a buffer bug with the micro logs 2008-11-03 16:58:18 +00:00
nvt-se
a6afeb2de6 fixed bug with dislocated end of file search 2008-11-03 15:13:13 +00:00
nvt-se
afeedb1f2b fixed compiler warnings that were introduced with the new reserve function. 2008-10-29 15:36:21 +00:00
nvt-se
e15fbdbd40 allow duplicate reservations when flushing the log. 2008-10-28 14:47:50 +00:00
nvt-se
f05ccac0a7 documented the extra Coffee functions. 2008-10-21 13:39:56 +00:00
nvt-se
b591bb1b72 read as much as possible, even when reading log records. 2008-10-21 13:26:24 +00:00
nvt-se
7d07a7f65d prohibit 0-sized log entries. 2008-10-16 13:17:27 +00:00
nvt-se
8bb7e37baf - new log semantics: read the previous log entry only if the new one doesn't completely overshadow it.
- bug fix: prohibit file reservations with names that already exist.
2008-10-16 12:54:36 +00:00
nvt-se
77c72f4588 improved log write semantics on configured logs. 2008-10-16 09:58:57 +00:00
nvt-se
ccd492f687 sanity check on configure_log parameters 2008-10-15 13:57:30 +00:00
nvt-se
10639bc982 use abstract types for offsets and pages so that we can easily port it to
very large or small memories.
2008-10-03 19:27:28 +00:00
nvt-se
7f3e81f5d3 fixed file descriptor leakage and erroneous flag setting. 2008-09-21 16:07:26 +00:00
nvt-se
9e7add658b corrected assignments. 2008-09-21 15:30:51 +00:00
nvt-se
ac6ce4cbf1 increased sequential read performance by eliminating a header reading. 2008-09-21 15:01:48 +00:00
nvt-se
4b6abd4fb7 bug fixes:
- close all file descriptors after formatting.
- do not increase file size when flushing the log.
- make sure that the fd is positive in FD_VALID.
2008-09-21 12:49:08 +00:00
nvt-se
195062416e corrected parameter type 2008-08-28 14:32:53 +00:00
nvt-se
86bce2636d fixed bug with eof hint 2008-08-28 14:31:10 +00:00
nvt-se
f122654317 the isolated flag must have higher precedence than the obsolete flag 2008-08-28 12:50:09 +00:00
nvt-se
e483f335ce activated EOF hints and fixed a bug in the garbage collector. 2008-08-25 09:57:38 +00:00
nvt-se
8b7e743921 Enforce the number of pages in a sector to be a power of two. 2008-08-15 22:38:43 +00:00
nvt-se
c36a0a33fc Improved the performance of the garbage collector and the algorithm for
finding contiguous pages.

Adjusted the file header and added a validity indicator.

Removed some redundant code and fixes minor issues in the text.
2008-08-15 12:34:56 +00:00
nvt-se
2b68f88e77 moved platform independent definitions 2008-07-11 21:39:26 +00:00
nvt-se
e8a85b3726 moved platform independent code to the right place 2008-07-11 21:35:10 +00:00
oliverschmidt
5ac52ec4d1 Added VC++ compatibility. 2008-07-06 11:08:07 +00:00
nvt-se
671f5c6393 Major performance boost to directory listings and non-cached file openings. 2008-07-04 02:54:30 +00:00
nvt-se
45c6d92377 exclude log files from directory list 2008-07-03 23:50:54 +00:00
nvt-se
3fc9c96ac2 should be comparison, not assignment 2008-07-03 23:41:28 +00:00
nvt-se
8f64a71362 Simplified file finding code.
Renamed fd_set to coffee_fd_set in order to avoid name clash on the native
platform.
2008-07-03 23:29:58 +00:00
nvt-se
379b09d576 Fixed bug that occured after the node had been rebooted. 2008-07-03 22:59:10 +00:00
nvt-se
65ec55e68f call watchdog_periodic in potentially long-running loops 2008-07-02 15:18:43 +00:00
nvt-se
7e4bab3cc8 turned off debugging by default 2008-07-02 12:06:02 +00:00
nvt-se
26716fe7a1 added formatting function and made code style compliant 2008-07-02 11:11:13 +00:00
nvt-se
63a8390f51 no debugging printouts by default 2008-05-14 14:02:48 +00:00
nvt-se
92649bedce A flash file system for sensor nodes. 2008-04-28 10:33:14 +00:00
oliverschmidt
5d910d643e Set directory entry size if available in some dirent field. Currently for the Apple2 only. 2008-03-29 13:54:56 +00:00
adamdunkels
eced8a3ec2 Removed left-over debug printouts 2008-01-24 23:07:05 +00:00
adamdunkels
af73a358f4 Added const to constant arguments 2008-01-24 13:08:35 +00:00
adamdunkels
bf5ba0fdea Added missing filesize field 2008-01-09 08:12:52 +00:00
adamdunkels
bac526c5f1 Fixed handling of CFS_WRITE and CFS_APPEND 2008-01-08 14:27:06 +00:00
oliverschmidt
1ecf65d6c2 Allow to implement cfs API on preprocessor level. The benefits are:
- Less overhead.
- Switching implementations without makefile changes.
- Compatibility with specific declaration needs. (I.e. the cc65 module loader expects the read() function to be defined as fastcall but that contradicts the cfs API declaration.)
2007-12-23 15:22:33 +00:00
oliverschmidt
f67506ba2a Set truncate flag to make sure that overwriting a existing file doesn't result in a mix of old and new content. 2007-12-23 14:12:44 +00:00
oliverschmidt
0564cc50fd Splitted POSIX based cfs implementation to avoid pulling in potentially large POSIX directory I/O functions without needing them at all. 2007-12-21 01:36:01 +00:00
oliverschmidt
034111b106 Made cfs implementation adhere to (new) cfs interface, streamlined implementation, reduced header dependencies and removed the 'cfs-root/' prefix. The reasoning behind the latter:
- Productive embedded targets don't use the posix based variant anyway.
- For testing purposes the prefix is a hurdle as the documentation doesn't mention it ;-))
- The prefix is incompatible with posix implementations lacking directory support (like the C64).
2007-11-22 11:37:34 +00:00
oliverschmidt
df1c80ee79 Made cfs implementation adhere to (new) cfs interface. 2007-11-22 11:29:13 +00:00
oliverschmidt
c69a49b2a2 Improved cfs interface. 2007-11-22 11:27:08 +00:00
oliverschmidt
6f1c485d8e Removed compiler warnings. 2007-11-17 21:01:31 +00:00
oliverschmidt
3b057f7966 Removed used variable that caused compiler warning. 2007-11-17 20:04:44 +00:00
adamdunkels
1e1e44a3f8 Fixed compiler warnings to make code compile with gcc's -pedantic switch 2007-11-17 18:01:00 +00:00
oliverschmidt
9f97290665 Changed Contiki File System (cfs) from a service to a plain library.
This change means that one needs to select _ONE_ cfs implementation at Contiki library link time. But this doesn't appear to be an issue as all platforms have their "favorite" implementation anyway.
2007-05-19 21:05:48 +00:00
nifi
ae64aa1764 changed counters to unsigned 2007-03-23 15:52:13 +00:00
nifi
e3bdae0e47 added erase of xmem and size checks 2007-03-23 12:15:08 +00:00
adamdunkels
f94cbb21e1 Added a CFS_APPEND option, set CFS_READ and CFS_WRITE to new numbers 2007-03-22 23:55:32 +00:00
adamdunkels
ea6f2942bd Added file size 2007-03-22 23:55:03 +00:00
adamdunkels
897bd980e1 CFS implementation over the xmem module 2007-03-21 23:15:31 +00:00
oliverschmidt
424fde144d Added the CCIF (Contiki Core InterFace) declarations used by the applications which are currently part of the Win32 build. 2006-08-26 23:54:00 +00:00
nifi
649afd342b Avoid compiler warning. 2006-08-15 09:38:33 +00:00
oliverschmidt
fab4acbfe4 Avoid compiler warning. 2006-08-13 14:06:24 +00:00
oliverschmidt
6973e29dfc Don't exit application on every _BUT_ exit messages ;-) 2006-08-13 14:05:20 +00:00
adamdunkels
c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00