Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

fstest.cc File Reference

#include "copyright.h"
#include "utility.h"
#include "filesys.h"
#include "system.h"
#include "thread.h"
#include "disk.h"
#include "stats.h"

Go to the source code of this file.

Defines

#define TransferSize   10
#define FileName   "TestFile"
#define Contents   "1234567890"
#define ContentSize   strlen(Contents)
#define FileSize   ((int)(ContentSize * 5000))

Functions

void Copy (char *from, char *to)
void Print (char *name)
void FileWrite ()
void FileRead ()
void PerformanceTest ()


Define Documentation

#define ContentSize   strlen(Contents)
 

Definition at line 113 of file fstest.cc.

#define Contents   "1234567890"
 

Definition at line 112 of file fstest.cc.

#define FileName   "TestFile"
 

PerformanceTest Stress the Nachos file system by creating a large file, writing it out a bit at a time, reading it back a bit at a time, and then deleting the file.

Implemented as three separate routines: FileWrite -- write the file FileRead -- read the file PerformanceTest -- overall control, and print out performance #'s

Definition at line 111 of file fstest.cc.

#define FileSize   ((int)(ContentSize * 5000))
 

Definition at line 114 of file fstest.cc.

#define TransferSize   10
 

Definition at line 24 of file fstest.cc.


Function Documentation

void Copy ( char * from,
char * to )
 

Copy Copy the contents of the UNIX file "from" to the Nachos file "to"

Definition at line 32 of file fstest.cc.

void FileRead ( ) [static]
 

Definition at line 145 of file fstest.cc.

Referenced by PerformanceTest().

void FileWrite ( ) [static]
 

Definition at line 117 of file fstest.cc.

Referenced by PerformanceTest().

void PerformanceTest ( )
 

Definition at line 173 of file fstest.cc.

void Print ( char * name )
 

Print Print the contents of the Nachos file "name".

Definition at line 78 of file fstest.cc.


Generated at Wed Jul 4 11:32:22 2001 for Nachos by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001