@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(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 |
rmdir(String path) |
int |
symlink(String linkname,
String path) |
int |
truncate(String path,
long size)
Truncate is not supported internally by Alluxio.
|
void |
umount(boolean force)
Unmounts the Fuse application.
|
int |
unlink(String path) |
int |
utimensCallback(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, writeCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
link, opendir, releasedir, statfs
public 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(String path, long mode, FuseFileInfo fi)
create
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 open(String path, FuseFileInfo fi)
open
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)
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 utimensCallback(String path, long aSec, long aNsec, long mSec, long mNsec)
utimensCallback
in interface FuseFileSystem
public int symlink(String linkname, String path)
symlink
in interface FuseFileSystem
public String getFileSystemName()
getFileSystemName
in interface FuseFileSystem
public void umount(boolean force) throws FuseException
FuseUmountable
umount
in interface FuseUmountable
umount
in class AbstractFuseFileSystem
force
- true to throw an exception and treat umount as a no-op
when umount timeouts due to the fuse device is busy.FuseException
Copyright © 2023. All Rights Reserved.