#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 () |
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
Copy Copy the contents of the UNIX file "from" to the Nachos file "to" |
|
|
Definition at line 145 of file fstest.cc. Referenced by PerformanceTest().
|
|
|
Definition at line 117 of file fstest.cc. Referenced by PerformanceTest().
|
|
|
|
|
|
Print Print the contents of the Nachos file "name". |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001