GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
FILE / V3-9-1
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:
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. |
|
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. |
|
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:
-
|
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:
-
|
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:
-
|
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:
-
|
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:
-
|
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:
-
|
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:
-
|
Variable Documentation
|
Buffer holding file 0 data - incrementing pattern. |
|
Buffer for holding data during file copies. |
Generated on Fri Nov 4 22:28:56 2005 by
1.4.4