C# Класс SharpOS.Kernel.Vfs.VirtualFileSystem

Implements the virtual file system service for the kernel.
The virtual file system service provides the root '/' naming namespace for other nodes and services.
Наследование: IFileSystem, IFileSystemService
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
IFileSystemService bool
IFileSystemService bool
VirtualFileSystem System

Открытые методы

Метод Описание
Access ( string path, AccessMode mode ) : bool

Checks if the caller has access to the inode

ChangeDirectory ( string path ) : void

Changes the current directory in the thread execution block.

Create ( string path, VfsNodeType type, object settings, FileAccess access, FileShare share ) : object

Creates a new node in the (virtual) filesystem.

This function creates new nodes in the virtual filesystem. In contrast to *nix this call creates all node types, e.g. files, directories, devices and more. Specific types may require additional settings, which are specified in a settings object passed as the third parameter.

Delete ( string path ) : void

Deletes the named node from the filesystem.

Mount ( string source, string target ) : void

Mounts a new file system.

Open ( string path, FileAccess access, FileShare share ) : object
Rename ( string old, string newname ) : void
Setup ( ) : void

Initializes a new instance of the virtual file system.

Stat ( string path ) : object

Retrieves a

Unmount ( string path ) : void

Unmounts the filesystem rooted at the given path.

In contrast to Posix this does not have to be the root directory of the filesystem. Any path in the filesystem will unmount the entire tree.

Приватные методы

Метод Описание
IFileSystemService ( ) : bool
IFileSystemService ( SettingsBase settings ) : bool
VirtualFileSystem ( ) : System

Описание методов

Access() публичный статический Метод

Checks if the caller has access to the inode
public static Access ( string path, AccessMode mode ) : bool
path string The resource to check permissions for.
mode AccessMode
Результат bool

ChangeDirectory() публичный статический Метод

Changes the current directory in the thread execution block.
public static ChangeDirectory ( string path ) : void
path string The path to change to. This path may be relative or absolute.
Результат void

Create() публичный статический Метод

Creates a new node in the (virtual) filesystem.
This function creates new nodes in the virtual filesystem. In contrast to *nix this call creates all node types, e.g. files, directories, devices and more. Specific types may require additional settings, which are specified in a settings object passed as the third parameter.
public static Create ( string path, VfsNodeType type, object settings, FileAccess access, FileShare share ) : object
path string The path to create.
type VfsNodeType The type of the node to create.
settings object Settings used to initialize the node.
access FileAccess Requests the specified access modes on the created object.
share FileShare Requests the specified sharing settings on the object.
Результат object

Delete() публичный статический Метод

Deletes the named node from the filesystem.
public static Delete ( string path ) : void
path string The path, which identifies a node.
Результат void

Mount() публичный статический Метод

Mounts a new file system.
public static Mount ( string source, string target ) : void
source string The source of the filesystem. This is usually a device name, but can also be another directory.
target string The path including the name of the mount point, where to mount the new filesystem.
Результат void

Open() публичный статический Метод

public static Open ( string path, FileAccess access, FileShare share ) : object
path string
access FileAccess
share FileShare
Результат object

Rename() публичный статический Метод

public static Rename ( string old, string newname ) : void
old string
newname string
Результат void

Setup() публичный статический Метод

Initializes a new instance of the virtual file system.
public static Setup ( ) : void
Результат void

Stat() публичный статический Метод

Retrieves a
public static Stat ( string path ) : object
path string
Результат object

Unmount() публичный статический Метод

Unmounts the filesystem rooted at the given path.
In contrast to Posix this does not have to be the root directory of the filesystem. Any path in the filesystem will unmount the entire tree.
public static Unmount ( string path ) : void
path string The path identifying the filesystem to unmount.
Результат void