File Drivers and Backup

In version 1.2 of eXtremeDB/rt, the “eXtremeDB/rt file driver” libraries (mcof*) are introduced. They encapsulate OS-specific system function calls related to persistent storage media (e.g. file systems) and provide a generic platform-independent API to all other eXtremeDB/rt components. The backup library (mcobackup) has been refactored to work with a file system through the file driver library (eliminating dependency on the standard C library).

If an application uses the mcobackup library, it should now also link a corresponding platform-dependent mcof* library (see the list below).

So, an eXtremeDB/rt build system’s project makefile containing the configuration parameter

 
PRJ_project_name_F_BACKUP:=YES

should also have

 
PRJ_project_name_STORAGEDEV:=AUTO

(this will link the default platform-dependent file driver library).

See samples/18-backup/online/makefile.project.online (Desktop packages) or samples/backup/makefile.project.backup (Embedded packages) for an example.

Alternatively, AUTO can be replaced with the specific file driver name from the following list:

 
mcofecos (for ECOS)
mcoffreertos (for FreeRTOS)
mcofmem (stub)
mcofred (RedFS (Tuxera Reliance Edge) on Linux, FreeRTOS)
mcoftx (ThreadX)
mcofu98  (Linux, Unix)  
mcofvx (VxWorks)
mcofw32 (Windows)

Samples