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

Constituent: tffs_overflow_test     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

tffs_overflow_test.c File Reference

Function definitions for TFFS filesystem overflow exception test. More...

#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "unistd.h"
#include "ioLib.h"
#include "taskLib.h"
#include "sysLib.h"
#include "usrLib.h"
#include "dosFsLib.h"
#include "sys/stat.h"
#include "PBS/PBS.h"
#include "PBS/MBA.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"
#include "FBS/FBS_pubrtos.h"

Include dependency graph for tffs_overflow_test.c:


Defines

#define TFFS_TEST_DIR_NAME   "dx"
#define TFFS_TEST_FILE_NAME   "fy"
#define PERROR   perror(""); taskDelay(sysClkRateGet())
#define FILE_COPY_SIZE   1000
#define MSG_PRI   210
#define WDOG_RESET

Functions

static int tffs_mount (int drv)
static int tffs_mkdir (int drv)
static int tffs_copy (int drv)
static int tffs_create (int drv, unsigned int size)
static int file_create (const char *name, unsigned int size)
static int file_copy (const char *inName, const char *outName)
int tffs_overflow_test (int drv, unsigned int fileSize)

Variables

static unsigned char * file_buf_0
static unsigned char * file_buf_copy

Detailed Description

Function definitions for TFFS filesystem overflow exception test.

Author:
D.L. Wood

Define Documentation

#define FILE_COPY_SIZE   1000
 

The size in bytes for file copy transfers.

#define MSG_PRI   210
 

The priority of the MSG output task.

#define PERROR   perror(""); taskDelay(sysClkRateGet())
 

Calls system perror() function.

#define TFFS_TEST_DIR_NAME   "dx"
 

The root directory name to use for test directories.

#define TFFS_TEST_FILE_NAME   "fy"
 

The root file name to use for test files.

#define WDOG_RESET
 

Resets the watchdog timer on the RAD750; a no-op for other targets.


Function Documentation

static int file_copy const char *  inName,
const char *  outName
[static]
 

Copies an existing file and verifies that the copy is correct.

Parameters:
inName The original file name.
outName The copied file name.
Return values:
0 Success.
-1 Failure

static int file_create const char *  name,
unsigned int  size
[static]
 

Creates a new file and fills it with a data pattern.

Parameters:
name The file name.
size The size of the file in bytes.
Return values:
0 Success.
-1 Failure

static int tffs_copy int  drv  )  [static]
 

Copies temporaryprivate files on the partition.

Parameters:
drv The TFFS drive number to test (0 or 1).
Return values:
0 Success.
-1 Failure

static int tffs_create int  drv,
unsigned int  size
[static]
 

Creates temporary private files on the partition for running overflow tests.

Parameters:
drv The TFFS drive number to test (0 or 1).
size The size of the file in bytes.
Return values:
0 Success.
-1 Failure

static int tffs_mkdir int  drv  )  [static]
 

Creates temporary private directories on the partition for running overflow tests.

Parameters:
drv The TFFS drive number to test (0 or 1).
Return values:
0 Success.
-1 Failure

static int tffs_mount int  drv  )  [static]
 

Performs the TFFS file system mount.

Parameters:
drv The TFFS drive number to test (0 or 1).
Return values:
0 Success.
-1 Failure

int tffs_overflow_test int  drv,
unsigned int  fileSize
 

Performs the TFFS file system overflow tests.

Parameters:
drv The TFFS drive number to test (0 or 1).
fileSize The size in bytes for each of the test files.
Return values:
0 Success.
-1 Failure


Variable Documentation

file_buf_0 [static]
 

Buffer holding file 0 data - incrementing pattern.

file_buf_copy [static]
 

Buffer for holding data during file copies.


Generated on Fri Nov 4 22:07:42 2005 by  doxygen 1.4.4