C# 클래스 Mosa.FileSystem.VFS.DirectoryEntry

파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

공개 메소드들

메소드 설명
Allocate ( DirectoryEntry parent, string name, IVfsNode node ) : DirectoryEntry

Allocates a new DirectoryEntry object for the given settings.

This method is used to control the DirectoryEntry allocation and maintain a cache of them. Also used to prevent infinite name allocations.

AllocateRoot ( IVfsNode node ) : DirectoryEntry

Allocates a vfs root directory entry.

This method creates a directory entry, which has some special properties. The first one is, that its parent is itself. This provides for the ability to cd .. on the root to stay on the root. The next ability is to create specialized root directories to isolate processes from the remainder of the file system. Setting a root directory created using this method effectively limits the process to access inside of the newly created namespace.

DirectoryEntry ( )

Lookup ( string name ) : DirectoryEntry

Release ( ) : void

Releases the DirectoryEntry from the parent DirectoryEntry. This is *not* a delete operation.

This function is used to remove a DirectoryEntry from the cache. Some (networked) file systems may want to use this function to remove "known" directories from the lookup cache when they loose server connection.

비공개 메소드들

메소드 설명
InsertChild ( DirectoryEntry child ) : void

RemoveChild ( DirectoryEntry child ) : void

Setup ( DirectoryEntry parent, string name, IVfsNode node ) : void

메소드 상세

Allocate() 공개 정적인 메소드

Allocates a new DirectoryEntry object for the given settings.
This method is used to control the DirectoryEntry allocation and maintain a cache of them. Also used to prevent infinite name allocations.
If any one of the parameters is null. If the name is zero-length.
public static Allocate ( DirectoryEntry parent, string name, IVfsNode node ) : DirectoryEntry
parent DirectoryEntry The parent directory entry.
name string The name of the entry to create.
node IVfsNode The vfs node referenced by the directory entry.
리턴 DirectoryEntry

AllocateRoot() 공개 정적인 메소드

Allocates a vfs root directory entry.
This method creates a directory entry, which has some special properties. The first one is, that its parent is itself. This provides for the ability to cd .. on the root to stay on the root. The next ability is to create specialized root directories to isolate processes from the remainder of the file system. Setting a root directory created using this method effectively limits the process to access inside of the newly created namespace.
The specified node is invalid.
public static AllocateRoot ( IVfsNode node ) : DirectoryEntry
node IVfsNode The vfs node, which corresponds to the root directory.
리턴 DirectoryEntry

DirectoryEntry() 공개 메소드

public DirectoryEntry ( )

Lookup() 공개 메소드

public Lookup ( string name ) : DirectoryEntry
name string
리턴 DirectoryEntry

Release() 공개 메소드

Releases the DirectoryEntry from the parent DirectoryEntry. This is *not* a delete operation.
This function is used to remove a DirectoryEntry from the cache. Some (networked) file systems may want to use this function to remove "known" directories from the lookup cache when they loose server connection.
public Release ( ) : void
리턴 void