Contiki 2.5
Functions
cfs-coffee.c File Reference

 Coffee: A file system for a variety of storage types in
         memory-constrained devices.
More...

#include <limits.h>
#include <string.h>
#include "cfs-coffee-arch.h"
#include "contiki-conf.h"
#include "cfs/cfs.h"
#include "cfs/cfs-coffee.h"

Go to the source code of this file.

Functions

int cfs_open (const char *name, int flags)
 Open a file. More...
 
void cfs_close (int fd)
 Close an open file. More...
 
cfs_offset_t cfs_seek (int fd, cfs_offset_t offset, int whence)
 Seek to a specified position in an open file. More...
 
int cfs_remove (const char *name)
 Remove a file. More...
 
int cfs_opendir (struct cfs_dir *dir, const char *name)
 Open a directory for reading directory entries. More...
 
int cfs_readdir (struct cfs_dir *dir, struct cfs_dirent *record)
 Read a directory entry. More...
 
void cfs_closedir (struct cfs_dir *dir)
 Close a directory opened with cfs_opendir(). More...
 
int cfs_coffee_reserve (const char *name, cfs_offset_t size)
 Reserve space for a file. More...
 
int cfs_coffee_configure_log (const char *filename, unsigned log_size, unsigned log_record_size)
 Configure the on-demand log file. More...
 
int cfs_coffee_format (void)
 Format the storage area assigned to Coffee. More...
 
void * cfs_coffee_get_protected_mem (unsigned *size)
 Points out a memory region that may not be altered during checkpointing operations that use the file system. More...
 

Detailed Description

 Coffee: A file system for a variety of storage types in
         memory-constrained devices.
 For further information, see "Enabling Large-Scale Storage in 
 Sensor Networks with the Coffee File System" in the proceedings 
 of ACM/IEEE IPSN 2009.
Author
Nicolas Tsiftes nvt@s.nosp@m.ics..nosp@m.se

Definition in file cfs-coffee.c.