|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnachos.machine.StubFileSystem
public class StubFileSystem
This class implements a file system that redirects all requests to the host operating system's file system.
| Constructor Summary | |
|---|---|
StubFileSystem(Privilege privilege,
File directory)
Allocate a new stub file system. |
|
| Method Summary | |
|---|---|
OpenFile |
open(String name,
boolean truncate)
Atomically open a file, optionally creating it if it does not already exist. |
boolean |
remove(String name)
Atomically remove an existing file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StubFileSystem(Privilege privilege,
File directory)
privilege - encapsulates privileged access to the Nachos
machine.directory - the root directory of the stub file system.| Method Detail |
|---|
public OpenFile open(String name,
boolean truncate)
FileSystem
open in interface FileSystemname - the name of the file to open.truncate - true to create the file if it does not
already exist.
public boolean remove(String name)
FileSystem
remove in interface FileSystemname - the name of the file to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||