Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

fsmgr.c File Reference

#include "fsmgr.h"
#include <string.h>
#include <stdio.h>
#include <services/services.h>

Defines

#define FS_SEM_P
#define FS_SEM_V

Functions

void fs_printPartitions (void)
 displays all available partitions
void fs_setup (void)
 have to be called to initialize the file systems manager environment.
void fs_cleanup ()
 have to be called to clean up and free resources of the file system management
T_FS_PARTITIONfs_getActivePartition (void)
 returns a pointer to the currently active partition struct (0 if none is active)
void fs_setActivePartition (T_FS_PARTITION *pa_pPartition)
 sets the supplied parition as currently active
T_FS_PARTITIONfs_getPartition (const char *pa_acName)
 returns a pointer to a specified partition struct (0 if the name is not valid)
unsigned long fs_partitionSize (T_FS_PARTITION *pa_pPartition)
 returns the overall size of the specified partition in bytes
unsigned long fs_partitionFree (T_FS_PARTITION *pa_pPartition)
 returns the amount of free bytes of the specified partition
void fs_register (const char *pa_acName, T_FS_FUNCTIONS *pa_pstFunctions)
 registers a specified filesystem to the file system management
bool fs_mountPartition (const char *pa_acPartitionName, const char *pa_acMsdName, const char *pa_acFileSystem)
 mounts a partitions on a mass storage device (MSD) with a specified filesystem
bool fs_formatDevice (const char *pa_acDeviceName, const char *pa_acFilesystem)
 formats the specified device with the specified file system
bool fs_unmountPartition (const char *pa_acPartitionName)
 unmounts a partition

Variables

T_FS_PARTITIONg_pstActivePartition = 0
bool g_bFsMgrInitialized = false
T_FS_PARTITION g_astPartitions [10]
T_FS_INFO g_astFileSystems [3]

Define Documentation

#define FS_SEM_P
 

#define FS_SEM_V
 


Variable Documentation

T_FS_INFO g_astFileSystems[3]
 

T_FS_PARTITION g_astPartitions[10]
 

bool g_bFsMgrInitialized = false
 

T_FS_PARTITION* g_pstActivePartition = 0
 


Generated on Thu Mar 2 16:11:28 2006 for VDK Blacksheep by  doxygen 1.4.1