Contiki 2.6

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 "contiki-conf.h"
#include "cfs/cfs.h"
#include "cfs-coffee-arch.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.
void cfs_close (int fd)
 Close an open file.
cfs_offset_t cfs_seek (int fd, cfs_offset_t offset, int whence)
 Seek to a specified position in an open file.
int cfs_remove (const char *name)
 Remove a file.
int cfs_opendir (struct cfs_dir *dir, const char *name)
 Open a directory for reading directory entries.
int cfs_readdir (struct cfs_dir *dir, struct cfs_dirent *record)
 Read a directory entry.
void cfs_closedir (struct cfs_dir *dir)
 Close a directory opened with cfs_opendir().
int cfs_coffee_reserve (const char *name, cfs_offset_t size)
 Reserve space for a file.
int cfs_coffee_configure_log (const char *filename, unsigned log_size, unsigned log_record_size)
 Configure the on-demand log file.
int cfs_coffee_format (void)
 Format the storage area assigned to Coffee.
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.

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@sics.se>

Definition in file cfs-coffee.c.