GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FBS / V0-3-1 > fbs_rtos / rad750


Interface   Data Structures   File List   Data Fields   Globals  

FBS_tffs.c.vx-ppc-cpci File Reference

Function definitions for FBS system library, TFFS partitions. More...

#include <vxWorks.h>
#include <string.h>
#include <errno.h>
#include <dosFsLib.h>
#include <blkIo.h>
#include <cbioLib.h>
#include <usrLib.h>
#include <fioLibX.h>
#include <iosLib.h>
#include <sys/stat.h>
#include <tffs/tffsDrv.h>
#include <tffs/fatlite.h>
#include <FBS/FBS_pubrtos.h>
#include <FBS/FBS_msgs.h>
#include <MDB/MDB_pubdefs.h>
#include <FBS_prvrtos.h>

Defines

#define TFFS_NUM_DIR   16

Functions

unsigned int FILE_sysTffsFormat (int drv, unsigned int offset)
 Format a TFFS partition.
unsigned int FILE_sysTffsMount (int drv)
 Mount a TFFS partition.
unsigned int FILE_sysTffsCheck (int drv)
 Check consistency of a TFFS partition.
unsigned int FILE_sysTffsRepair (int drv)
 Attempt to repair a bad TFFS partition.


Detailed Description

Function definitions for FBS system library, TFFS partitions.

Author:
D.L. Wood
These implementations are meant to work with a real TFFS file system and SIB EEPROM banks.

Define Documentation

#define TFFS_NUM_DIR   16

The number of directories to create on disk when formatting.

Referenced by FILE_sysTffsFormat().


Function Documentation

unsigned int FILE_sysTffsCheck ( int  drv  ) 

Check consistency of a TFFS partition.

Parameters:
drv The TFFS drive number for the bank to check.
Returns:
A FILE MSG code.
Runs the DOSFS chkdsk utility on the requested TFFS partition. Only the status is checked; no repairs to the partition file system are attempted.

unsigned int FILE_sysTffsFormat ( int  drv,
unsigned int  offset 
)

Format a TFFS partition.

Parameters:
drv The TFFS drive number for the bank to format.
offset The offset in bytes from the bank base address at which the TFFS/FTL formatting should begin.
Returns:
A FILE MSG code.
Formats a TFFS file system for a raw TFFS non-volatile memory bank. Both the TFFS/FTL layer and the DOSFS layer are written to the media. The offset parameter allows a portion of a media memory bank to be used by boot software.

References FILE_PATH_STR_SIZE, FILE_PATH_STR_SIZE_USR, FILE_SYS_MAX_FILES, and TFFS_NUM_DIR.

unsigned int FILE_sysTffsMount ( int  drv  ) 

Mount a TFFS partition.

Parameters:
drv The TFFS drive number for the bank to format.
Returns:
A FILE MSG code.
Mounts a TFFS/DOSFS filesytem for use. The non-volatile memory bank must have previously been formatted with both the TFFS and DOSFS layers.

References FILE_SYS_MAX_FILES.

unsigned int FILE_sysTffsRepair ( int  drv  ) 

Attempt to repair a bad TFFS partition.

Parameters:
drv The TFFS drive number for the bank to repair.
Returns:
A FILE MSG code.
Runs the DOSFS chkdsk utility on the requested TFFS partition. If an error is found by the utility, repairs to the partition file system are attempted.


Generated on Wed Nov 21 17:55:21 2012 by  doxygen 1.5.8