@ThreadSafe public final class AlluxioJniFuseFileSystem extends AbstractFuseFileSystem implements FuseUmountable
Implements the FUSE callbacks defined by jni-fuse.
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_INODES
df command will treat -1 as an unknown value.
|
Constructor and Description |
---|
AlluxioJniFuseFileSystem(FileSystemContext fsContext,
FileSystem fs,
FuseOptions fuseOptions)
Creates a new instance of
AlluxioJniFuseFileSystem . |
Modifier and Type | Method and Description |
---|---|
int |
chmod(String path,
long mode) |
int |
chown(String path,
long uid,
long gid) |
int |
create(String path,
long mode,
FuseFileInfo fi) |
int |
flush(String path,
FuseFileInfo fi) |
int |
getattr(String path,
FileStat stat) |
String |
getFileSystemName() |
int |
mkdir(String path,
long mode) |
int |
open(String path,
FuseFileInfo fi) |
int |
read(String path,
ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi) |
int |
readdir(String path,
long buff,
long filter,
long offset,
FuseFileInfo fi) |
int |
release(String path,
FuseFileInfo fi) |
int |
rename(String oldPath,
String newPath,
int flags) |
int |
rmdir(String path) |
int |
statfs(String path,
Statvfs stbuf)
Gets the filesystem statistics.
|
int |
symlink(String linkname,
String path) |
int |
truncate(String path,
long size)
Since files can be written only once, only sequentially,
and never be modified in Alluxio, truncate is not supported internally by Alluxio.
|
void |
umount(boolean force)
Umount the mount point of this Fuse Filesystem.
|
int |
unlink(String path) |
int |
utimens(String path,
long aSec,
long aNsec,
long mSec,
long mNsec) |
int |
write(String path,
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, unlinkCallback, utimensCallback, writeCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
link, opendir, releasedir
public static final int UNKNOWN_INODES
public AlluxioJniFuseFileSystem(FileSystemContext fsContext, FileSystem fs, FuseOptions fuseOptions)
AlluxioJniFuseFileSystem
.fsContext
- the file system contextfs
- Alluxio file systemfuseOptions
- the fuse optionspublic int create(String path, long mode, FuseFileInfo fi)
create
in interface FuseFileSystem
public int open(String path, FuseFileInfo fi)
open
in interface FuseFileSystem
public int getattr(String path, FileStat stat)
getattr
in interface FuseFileSystem
public int readdir(String path, long buff, long filter, long offset, FuseFileInfo fi)
readdir
in interface FuseFileSystem
public int read(String path, ByteBuffer buf, long size, long offset, FuseFileInfo fi)
read
in interface FuseFileSystem
public int write(String path, ByteBuffer buf, long size, long offset, FuseFileInfo fi)
write
in interface FuseFileSystem
public int flush(String path, FuseFileInfo fi)
flush
in interface FuseFileSystem
public int release(String path, FuseFileInfo fi)
release
in interface FuseFileSystem
public int mkdir(String path, long mode)
mkdir
in interface FuseFileSystem
public int unlink(String path)
unlink
in interface FuseFileSystem
public int rmdir(String path)
rmdir
in interface FuseFileSystem
public int rename(String oldPath, String newPath, int flags)
rename
in interface FuseFileSystem
public int chmod(String path, long mode)
chmod
in interface FuseFileSystem
public int chown(String path, long uid, long gid)
chown
in interface FuseFileSystem
public int truncate(String path, long size)
truncate
in interface FuseFileSystem
path
- the file to truncatesize
- the size to truncate topublic int utimens(String path, long aSec, long aNsec, long mSec, long mNsec)
utimens
in interface FuseFileSystem
public int symlink(String linkname, String path)
symlink
in interface FuseFileSystem
public int statfs(String path, Statvfs stbuf)
statfs
in interface FuseFileSystem
path
- The FS path of the directorystbuf
- Statistics of a filesystempublic String getFileSystemName()
getFileSystemName
in interface FuseFileSystem
public void umount(boolean force)
AbstractFuseFileSystem
umount
in interface FuseUmountable
umount
in class AbstractFuseFileSystem
force
- whether to do a force umountCopyright © 2023. All Rights Reserved.