@ThreadSafe public final class AlluxioJniFuseFileSystem extends AbstractFuseFileSystem implements FuseUmountable
Implements the FUSE callbacks defined by jni-fuse.
| Modifier and Type | Field and Description |
|---|---|
static long |
ID_NOT_SET_VALUE |
static long |
ID_NOT_SET_VALUE_UNSIGNED |
static int |
MAX_NAME_LENGTH
Most FileSystems on linux limit the length of file name beyond 255 characters.
|
static int |
UNKNOWN_INODES
df command will treat -1 as an unknown value.
|
| Constructor and Description |
|---|
AlluxioJniFuseFileSystem(FileSystem fs,
FuseMountOptions opts,
AlluxioConfiguration conf)
Creates a new instance of
AlluxioJniFuseFileSystem. |
| 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 |
rmdir(java.lang.String path) |
int |
symlink(java.lang.String linkname,
java.lang.String path) |
int |
truncate(java.lang.String path,
long size)
Truncate is not supported internally by Alluxio.
|
void |
umount(boolean force)
Unmounts the Fuse application.
|
int |
unlink(java.lang.String path) |
int |
utimensCallback(java.lang.String path,
long aSec,
long aNsec,
long mSec,
long mNsec) |
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, unlinkCallback, writeCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlink, opendir, releasedir, statfspublic static final long ID_NOT_SET_VALUE
public static final long ID_NOT_SET_VALUE_UNSIGNED
public static final int UNKNOWN_INODES
public static final int MAX_NAME_LENGTH
public AlluxioJniFuseFileSystem(FileSystem fs, FuseMountOptions opts, AlluxioConfiguration conf)
AlluxioJniFuseFileSystem.fs - Alluxio file systemopts - optionsconf - Alluxio configurationpublic int create(java.lang.String path,
long mode,
FuseFileInfo fi)
create in interface FuseFileSystempublic int getattr(java.lang.String path,
FileStat stat)
getattr in interface FuseFileSystempublic int readdir(java.lang.String path,
long buff,
long filter,
long offset,
FuseFileInfo fi)
readdir in interface FuseFileSystempublic int open(java.lang.String path,
FuseFileInfo fi)
open in interface FuseFileSystempublic int read(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi)
read in interface FuseFileSystempublic int write(java.lang.String path,
java.nio.ByteBuffer buf,
long size,
long offset,
FuseFileInfo fi)
write in interface FuseFileSystempublic int flush(java.lang.String path,
FuseFileInfo fi)
flush in interface FuseFileSystempublic int release(java.lang.String path,
FuseFileInfo fi)
release in interface FuseFileSystempublic int mkdir(java.lang.String path,
long mode)
mkdir in interface FuseFileSystempublic int unlink(java.lang.String path)
unlink in interface FuseFileSystempublic int rmdir(java.lang.String path)
rmdir in interface FuseFileSystempublic int rename(java.lang.String oldPath,
java.lang.String newPath)
rename in interface FuseFileSystempublic int chmod(java.lang.String path,
long mode)
chmod in interface FuseFileSystempublic int chown(java.lang.String path,
long uid,
long gid)
chown in interface FuseFileSystempublic int truncate(java.lang.String path,
long size)
truncate in interface FuseFileSystempath - the file to truncatesize - the size to truncate topublic int utimensCallback(java.lang.String path,
long aSec,
long aNsec,
long mSec,
long mNsec)
utimensCallback in interface FuseFileSystempublic int symlink(java.lang.String linkname,
java.lang.String path)
symlink in interface FuseFileSystempublic java.lang.String getFileSystemName()
getFileSystemName in interface FuseFileSystempublic void umount(boolean force)
throws FuseException
FuseUmountableumount in interface FuseUmountableumount in class AbstractFuseFileSystemforce - true to throw an exception and treat umount as a no-op
when umount timeouts due to the fuse device is busy.FuseExceptionCopyright © 2021. All Rights Reserved.