public class StackFS extends AbstractFuseFileSystem
Stack FS mounts a local filesystem path to another local filesystem path. All the operations target the Stack FS mount point will be directly trigger on the local filesystem mounted path without complex added logics.
This class is mainly added for testing purposes to understand the performance overhead introduced by jni-fuse and provides an upper-bound performance data for Alluxio jni-fuse implementations.
| Constructor and Description |
|---|
StackFS(java.nio.file.Path root,
java.nio.file.Path mountPoint) |
| Modifier and Type | Method and Description |
|---|---|
int |
chmod(java.lang.String path,
long mode) |
int |
chown(java.lang.String path,
long uid,
long gid) |
int |
create(java.lang.String path,
long mode,
FuseFileInfo fi) |
int |
flush(java.lang.String path,
FuseFileInfo fi) |
int |
getattr(java.lang.String path,
FileStat stat) |
java.lang.String |
getFileSystemName() |
int |
mkdir(java.lang.String path,
long mode) |
int |
open(java.lang.String path,
FuseFileInfo fi) |
int |
read(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi) |
int |
readdir(java.lang.String path,
long buff,
long filter,
long offset,
FuseFileInfo fi) |
int |
release(java.lang.String path,
FuseFileInfo fi) |
int |
rename(java.lang.String oldPath,
java.lang.String newPath) |
int |
unlink(java.lang.String path) |
int |
write(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi) |
chmodCallback, chownCallback, createCallback, flushCallback, getattrCallback, getContext, getxattrCallback, listxattrCallback, mkdirCallback, mount, openCallback, readCallback, readdirCallback, releaseCallback, removexattrCallback, renameCallback, rmdirCallback, setxattrCallback, statfsCallback, symlinkCallback, truncateCallback, umount, unlinkCallback, writeCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlink, opendir, releasedir, rmdir, statfs, symlink, truncate, utimensCallbackpublic StackFS(java.nio.file.Path root,
java.nio.file.Path mountPoint)
root - rootmountPoint - mount pointpublic int getattr(java.lang.String path,
FileStat stat)
public int readdir(java.lang.String path,
long buff,
long filter,
long offset,
FuseFileInfo fi)
public int open(java.lang.String path,
FuseFileInfo fi)
public int read(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi)
public int create(java.lang.String path,
long mode,
FuseFileInfo fi)
public int write(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi)
public int mkdir(java.lang.String path,
long mode)
public int unlink(java.lang.String path)
public int rename(java.lang.String oldPath,
java.lang.String newPath)
public int chmod(java.lang.String path,
long mode)
public int chown(java.lang.String path,
long uid,
long gid)
public int flush(java.lang.String path,
FuseFileInfo fi)
public int release(java.lang.String path,
FuseFileInfo fi)
public java.lang.String getFileSystemName()
Copyright © 2021. All Rights Reserved.