C# Class Mono.Fuse.Samples.RedirectFS

Inheritance: FileSystem
ファイルを表示 Open project: jonpryor/mono-fuse Class Usage Examples

Public Methods

Method Description
Main ( string args ) : void
RedirectFS ( ) : System

Protected Methods

Method Description
OnAccessPath ( string path, AccessModes mask ) : Errno
OnChangePathOwner ( string path, long uid, long gid ) : Errno
OnChangePathPermissions ( string path, FilePermissions mode ) : Errno
OnChangePathTimes ( string path, Utimbuf &buf ) : Errno
OnCreateDirectory ( string path, FilePermissions mode ) : Errno
OnCreateHardLink ( string from, string to ) : Errno
OnCreateSpecialFile ( string path, FilePermissions mode, ulong rdev ) : Errno
OnCreateSymbolicLink ( string from, string to ) : Errno
OnGetFileSystemStatus ( string path, Statvfs &stbuf ) : Errno
OnGetPathExtendedAttribute ( string path, string name, byte value, int &bytesWritten ) : Errno
OnGetPathStatus ( string path, Stat &buf ) : Errno
OnListPathExtendedAttributes ( string path, string &names ) : Errno
OnLockHandle ( string file, Mono.Fuse.OpenedPathInfo info, FcntlCommand cmd, Flock &@lock ) : Errno
OnOpenHandle ( string path, Mono.Fuse.OpenedPathInfo info ) : Errno
OnReadDirectory ( string path, Mono.Fuse.OpenedPathInfo fi, IEnumerable &paths ) : Errno
OnReadHandle ( string path, Mono.Fuse.OpenedPathInfo info, byte buf, long offset, int &bytesRead ) : Errno
OnReadSymbolicLink ( string path, string &target ) : Errno
OnReleaseHandle ( string path, Mono.Fuse.OpenedPathInfo info ) : Errno
OnRemoveDirectory ( string path ) : Errno
OnRemoveFile ( string path ) : Errno
OnRemovePathExtendedAttribute ( string path, string name ) : Errno
OnRenamePath ( string from, string to ) : Errno
OnSetPathExtendedAttribute ( string path, string name, byte value, XattrFlags flags ) : Errno
OnSynchronizeHandle ( string path, Mono.Fuse.OpenedPathInfo info, bool onlyUserData ) : Errno
OnTruncateFile ( string path, long size ) : Errno
OnWriteHandle ( string path, Mono.Fuse.OpenedPathInfo info, byte buf, long offset, int &bytesWritten ) : Errno

Private Methods

Method Description
Error ( string message ) : bool
ParseArguments ( string args ) : bool
ProcessFile ( string path, OpenFlags flags, FdCb cb ) : Errno
ShowHelp ( ) : void

Method Details

Main() public static method

public static Main ( string args ) : void
args string
return void

OnAccessPath() protected method

protected OnAccessPath ( string path, AccessModes mask ) : Errno
path string
mask AccessModes
return Errno

OnChangePathOwner() protected method

protected OnChangePathOwner ( string path, long uid, long gid ) : Errno
path string
uid long
gid long
return Errno

OnChangePathPermissions() protected method

protected OnChangePathPermissions ( string path, FilePermissions mode ) : Errno
path string
mode FilePermissions
return Errno

OnChangePathTimes() protected method

protected OnChangePathTimes ( string path, Utimbuf &buf ) : Errno
path string
buf Utimbuf
return Errno

OnCreateDirectory() protected method

protected OnCreateDirectory ( string path, FilePermissions mode ) : Errno
path string
mode FilePermissions
return Errno

OnCreateHardLink() protected method

protected OnCreateHardLink ( string from, string to ) : Errno
from string
to string
return Errno

OnCreateSpecialFile() protected method

protected OnCreateSpecialFile ( string path, FilePermissions mode, ulong rdev ) : Errno
path string
mode FilePermissions
rdev ulong
return Errno

OnCreateSymbolicLink() protected method

protected OnCreateSymbolicLink ( string from, string to ) : Errno
from string
to string
return Errno

OnGetFileSystemStatus() protected method

protected OnGetFileSystemStatus ( string path, Statvfs &stbuf ) : Errno
path string
stbuf Statvfs
return Errno

OnGetPathExtendedAttribute() protected method

protected OnGetPathExtendedAttribute ( string path, string name, byte value, int &bytesWritten ) : Errno
path string
name string
value byte
bytesWritten int
return Errno

OnGetPathStatus() protected method

protected OnGetPathStatus ( string path, Stat &buf ) : Errno
path string
buf Stat
return Errno

OnListPathExtendedAttributes() protected method

protected OnListPathExtendedAttributes ( string path, string &names ) : Errno
path string
names string
return Errno

OnLockHandle() protected method

protected OnLockHandle ( string file, Mono.Fuse.OpenedPathInfo info, FcntlCommand cmd, Flock &@lock ) : Errno
file string
info Mono.Fuse.OpenedPathInfo
cmd FcntlCommand
@lock Flock
return Errno

OnOpenHandle() protected method

protected OnOpenHandle ( string path, Mono.Fuse.OpenedPathInfo info ) : Errno
path string
info Mono.Fuse.OpenedPathInfo
return Errno

OnReadDirectory() protected method

protected OnReadDirectory ( string path, Mono.Fuse.OpenedPathInfo fi, IEnumerable &paths ) : Errno
path string
fi Mono.Fuse.OpenedPathInfo
paths IEnumerable
return Errno

OnReadHandle() protected method

protected OnReadHandle ( string path, Mono.Fuse.OpenedPathInfo info, byte buf, long offset, int &bytesRead ) : Errno
path string
info Mono.Fuse.OpenedPathInfo
buf byte
offset long
bytesRead int
return Errno

OnReadSymbolicLink() protected method

protected OnReadSymbolicLink ( string path, string &target ) : Errno
path string
target string
return Errno

OnReleaseHandle() protected method

protected OnReleaseHandle ( string path, Mono.Fuse.OpenedPathInfo info ) : Errno
path string
info Mono.Fuse.OpenedPathInfo
return Errno

OnRemoveDirectory() protected method

protected OnRemoveDirectory ( string path ) : Errno
path string
return Errno

OnRemoveFile() protected method

protected OnRemoveFile ( string path ) : Errno
path string
return Errno

OnRemovePathExtendedAttribute() protected method

protected OnRemovePathExtendedAttribute ( string path, string name ) : Errno
path string
name string
return Errno

OnRenamePath() protected method

protected OnRenamePath ( string from, string to ) : Errno
from string
to string
return Errno

OnSetPathExtendedAttribute() protected method

protected OnSetPathExtendedAttribute ( string path, string name, byte value, XattrFlags flags ) : Errno
path string
name string
value byte
flags XattrFlags
return Errno

OnSynchronizeHandle() protected method

protected OnSynchronizeHandle ( string path, Mono.Fuse.OpenedPathInfo info, bool onlyUserData ) : Errno
path string
info Mono.Fuse.OpenedPathInfo
onlyUserData bool
return Errno

OnTruncateFile() protected method

protected OnTruncateFile ( string path, long size ) : Errno
path string
size long
return Errno

OnWriteHandle() protected method

protected OnWriteHandle ( string path, Mono.Fuse.OpenedPathInfo info, byte buf, long offset, int &bytesWritten ) : Errno
path string
info Mono.Fuse.OpenedPathInfo
buf byte
offset long
bytesWritten int
return Errno

RedirectFS() public method

public RedirectFS ( ) : System
return System