|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.fs.MFileSystem
public class MFileSystem
this class handles file-system management. This is used to re-direct I/O requests to the right driver, etc.
| Constructor Summary | |
|---|---|
MFileSystem()
|
|
| Method Summary | |
|---|---|
static int |
access(java.lang.String path,
int amode)
tests for access to a file |
static void |
finalinit()
called to perform final initialisation (in the context of the init-task) |
static void |
init_filesystem()
initialises the file-system bits |
static int |
mkdir(java.lang.String path,
int flags)
creates a directory in the file-system |
static int |
mount(java.lang.String path,
java.lang.String fstype,
java.lang.String[] options)
mounts a file-system |
static int |
open(java.lang.String path,
MFile handle,
int flags,
int mode)
opens a file |
static int |
opendir(java.lang.String path,
MFile handle)
opens a directory |
static int |
stat(java.lang.String path,
MInode statbuf)
stats a file/directory |
static int |
umount(java.lang.String path)
unmounts a file-system |
static int |
unlink(java.lang.String path)
unlinks (removes) a file or directory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MFileSystem()
| Method Detail |
|---|
public static void init_filesystem()
public static void finalinit()
public static int mount(java.lang.String path,
java.lang.String fstype,
java.lang.String[] options)
path - absolute pathfstype - file-system typeoptions - file-system specific options
public static int umount(java.lang.String path)
path - absolute path to the mounted file-system
public static int open(java.lang.String path,
MFile handle,
int flags,
int mode)
path - absolute path to the filehandle - file-handle that will be used for this fileflags - OPEN_READ / OPEN_WRITE / OPEN_CREAT
public static int opendir(java.lang.String path,
MFile handle)
path - absolute path to the directoryhandle - file-handle that will be used for this directory
public static int mkdir(java.lang.String path,
int flags)
path - relative path to the directory to be createdflags - flags (mode)
public static int stat(java.lang.String path,
MInode statbuf)
path - absolute path to the file/directorystatbuf - MInode where the information will be placed
public static int access(java.lang.String path,
int amode)
path - absolute path to the file/directoryamode - access mode: bitwise-or of (MFileOps) F_OK, R_OK, W_OK and/or X_OK
public static int unlink(java.lang.String path)
path - absolute path to the file/directory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||