Beispiel #1
0
        public static IFuseMount Mount(string mountPoint, IFuseFileSystem fileSystem, MountOptions options = null)
        {
            if (options == null)
            {
                options = new MountOptions();
            }

            FuseMount mount = new FuseMount(mountPoint, fileSystem, options);

            mount.Mount();
            return(mount);
        }
Beispiel #2
0
        public unsafe FuseMount(string mountPoint, IFuseFileSystem fileSystem, MountOptions options)
        {
            _mountPoint   = mountPoint;
            _mountOptions = options;

            _fileSystem  = fileSystem;
            _getattr     = Getattr;
            _read        = Read;
            _open        = Open;
            _readdir     = Readdir;
            _release     = Release;
            _write       = Write;
            _unlink      = Unlink;
            _truncate    = Truncate;
            _rmdir       = Rmdir;
            _mkdir       = Mkdir;
            _create      = Create;
            _chmod       = Chmod;
            _link        = Link;
            _utimens     = Utimens;
            _readlink    = Readlink;
            _symlink     = Symlink;
            _rename      = Rename;
            _chown       = Chown;
            _statfs      = Statfs;
            _flush       = Flush;
            _fsync       = Fsync;
            _setxattr    = Setxattr;
            _getxattr    = Getxattr;
            _listxattr   = Listxattr;
            _removexattr = Removexattr;
            _opendir     = Opendir;
            _releasedir  = Releasedir;
            _fsyncdir    = Fsyncdir;
            _access      = Access;
            _fallocate   = Fallocate;
            _init        = Init;
        }