GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FILE / V3-8-0

Constituent: file_sys     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

FILE_sys.h File Reference

File System Partition Management. More...

#include "FILE/FILE_sys_msg.h"

Include dependency graph for FILE_sys.h:

This graph shows which files directly or indirectly include this file:


RAM Disk Functions

unsigned int FILE_sysRamCreate (void *addr, int size)
 Create, format, and mount a RAM disk partition.

TFFS Functions

unsigned int FILE_sysTffsMount (int drv)
 Mount a TFFS partition.
unsigned int FILE_sysTffsFormat (int drv, unsigned int offset)
 Format 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

File System Partition Management.

Author:
D.L. Wood
This library contains functions and definitions for formatting and mounting VxWorks 5.5 DOSFS file systems. Both RAM disk and TFFS drive media are supported. Usually, the functions in this library are implemented in two steps. The first step deals with the underlying media driver, which may require special formatting independent of the DOSFS formatting. The second step deals with the actual DOSFS formatting. Unmount functions are not provided as this is an operation that VxWorks DOSFS does not support.

The TFFS formatting and mounting utilities are only available on platforms which support TFFS.


Function Documentation

unsigned int FILE_sysRamCreate void *  addr,
int  size
 

Create, format, and mount a RAM disk partition.

Creates, formats, and mounts a RAM disk partition.

Parameters:
addr The memory address of the RAM disk partition.
size The size in bytes of the RAM disk partition.

unsigned int FILE_sysTffsCheck int  drv  ) 
 

Check consistency of a TFFS partition.

Runs the DOSFS chkdsk utility on the requested TFFS partition. Only the status is checked; no repairs to the partition file system are attempted.

Parameters:
drv The TFFS drive number for the bank to check.
Returns:
A FILE MSG code.

unsigned int FILE_sysTffsFormat int  drv,
unsigned int  offset
 

Format a TFFS partition.

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.

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.

unsigned int FILE_sysTffsMount int  drv  ) 
 

Mount a TFFS partition.

Mounts a TFFS/DOSFS filesytem for use. The non-volatile memory bank must have previously been formatted with both the TFFS and DOSFS layers.

Parameters:
drv The TFFS drive number for the bank to format.

unsigned int FILE_sysTffsRepair int  drv  ) 
 

Attempt to repair a bad TFFS partition.

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.

Parameters:
drv The TFFS drive number for the bank to repair.
Returns:
A FILE MSG code.


Generated on Sun Oct 9 20:42:25 2005 by  doxygen 1.4.4