|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.fuse.DeepFuse
public abstract class DeepFuse
Interface to filesystem in userspace framework.
| Constructor Summary | |
|---|---|
DeepFuse()
|
|
| Method Summary | |
|---|---|
abstract int |
access(java.lang.String path,
int mode)
Checks file access permissions. |
abstract int |
bmap(java.lang.String path,
long blocksize,
long idx)
Maps block index within file to block index within device. |
abstract int |
chmod(java.lang.String path,
int mode)
Changes the permission bits of a file. |
abstract int |
chown(java.lang.String path,
int uid,
int gid)
Changes the owner and group of a file. |
abstract int |
create(java.lang.String path,
int mode)
Creates and open a file. |
abstract int |
destroy()
Cleans up filesystem. |
abstract int |
fgetattr(java.lang.String path)
Gets attributes from an open file. |
abstract int |
flush(java.lang.String path)
Possibly flushes cached data. |
abstract int |
fsync(java.lang.String path)
Synchronizes file contents. |
abstract int |
fsyncdir(java.lang.String path)
Synchronizes directory contents. |
abstract int |
ftruncate(java.lang.String path,
long off)
Changes the size of an open file. |
abstract int |
getattr(java.lang.String path)
Gets file attributes. |
abstract int |
getxattr(java.lang.String path)
Gets extended attributes. |
abstract int |
link(java.lang.String name1,
java.lang.String name2)
Creates a hard link to a file. |
abstract int |
listxattr(java.lang.String path)
Lists extended attributes. |
abstract int |
lock(java.lang.String path,
int cmd)
Performs POSIX file locking operation. |
abstract int |
mkdir(java.lang.String path,
int mode)
Creates a directory. |
abstract int |
mknod(java.lang.String path,
int mode,
int dev)
Creates a file node. |
abstract int |
open(java.lang.String path)
File open operation. |
abstract int |
opendir(java.lang.String path)
Opens directory. |
abstract byte[] |
read(java.lang.String path,
int length,
int offset)
Reads data from an open file. |
abstract java.lang.String |
readdir(java.lang.String path,
int offset)
Reads directory. |
abstract java.lang.String |
readlink(java.lang.String path)
Reads the target of a symbolic link. |
abstract int |
release(java.lang.String path)
Releases an open file. |
abstract int |
releasedir(java.lang.String path)
Releases directory. |
abstract int |
removexattr(java.lang.String path)
Removes extended attributes. |
abstract int |
rename(java.lang.String from,
java.lang.String to)
Renames a file. |
abstract int |
rmdir(java.lang.String path)
Removes a directory file. |
abstract int |
setxattr(java.lang.String path)
Sets extended attributes. |
abstract int |
statfs(java.lang.String path)
Gets file system statistics. |
abstract int |
symlink(java.lang.String from,
java.lang.String to)
Makes symbolic link to a file. |
abstract int |
truncate(java.lang.String path,
long off)
Changes the size of a file. |
abstract int |
unlink(java.lang.String path)
Removes a file. |
abstract int |
utimens(java.lang.String path)
Changes the access and modification times of a file with nanosecond resolution. |
abstract int |
write(java.lang.String path,
int length,
int offset,
byte[] data)
Writes data to an open file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeepFuse()
| Method Detail |
|---|
public abstract int getattr(java.lang.String path)
path - to the file the stat information is requested for
public abstract java.lang.String readlink(java.lang.String path)
path - to the link
public abstract int mknod(java.lang.String path,
int mode,
int dev)
path - name of the file to be created.mode - specifies both the permissions to use and the type of node to
be created.dev - If the file type is S_IFCHR or S_IFBLK then dev specifies the
major and minor numbers of the newly created device special file;
otherwise it is ignored.
public abstract int mkdir(java.lang.String path,
int mode)
path - to directory to be createdmode - permissions for directory
public abstract int unlink(java.lang.String path)
path - to file to be removed
public abstract int rmdir(java.lang.String path)
path - to file to be removed
public abstract int symlink(java.lang.String from,
java.lang.String to)
from - link sourceto - link target
public abstract int rename(java.lang.String from,
java.lang.String to)
from - path to file to be renamedto - new name
public abstract int link(java.lang.String name1,
java.lang.String name2)
name1 - link sourcename2 - link target
public abstract int chmod(java.lang.String path,
int mode)
path - name of the filemode - permissions to be set
public abstract int chown(java.lang.String path,
int uid,
int gid)
path - name of the fileuid - ownergid - group
public abstract int truncate(java.lang.String path,
long off)
path - name of the fileoff - size to be set
public abstract int open(java.lang.String path)
path - name of the file
public abstract byte[] read(java.lang.String path,
int length,
int offset)
path - name of the filelength - number of bytes to readoffset - from which to read
public abstract int write(java.lang.String path,
int length,
int offset,
byte[] data)
path - name of the filelength - number of bytes to writeoffset - from which to writedata - buffer from which to write
public abstract int statfs(java.lang.String path)
path - name of the file
public abstract int flush(java.lang.String path)
path - name of the file
public abstract int release(java.lang.String path)
path - name of the file
public abstract int fsync(java.lang.String path)
path - name of the file
public abstract int setxattr(java.lang.String path)
path - name of the file
public abstract int getxattr(java.lang.String path)
path - name of the file
public abstract int listxattr(java.lang.String path)
path - name of the file
public abstract int removexattr(java.lang.String path)
path - name of the file
public abstract int opendir(java.lang.String path)
path - name of the file
public abstract java.lang.String readdir(java.lang.String path,
int offset)
path - name of the directory to readoffset - of directory entry requested
public abstract int releasedir(java.lang.String path)
path - name of the file
public abstract int fsyncdir(java.lang.String path)
path - name of the file
public abstract int destroy()
public abstract int access(java.lang.String path,
int mode)
path - name of the filemode - permission to check
public abstract int create(java.lang.String path,
int mode)
path - for the file to be createdmode - of file (directory, regular file ..., permission bits)
public abstract int ftruncate(java.lang.String path,
long off)
path - name of the fileoff - new file size
public abstract int fgetattr(java.lang.String path)
path - name of the file
public abstract int lock(java.lang.String path,
int cmd)
path - name of the filecmd - locking command id
public abstract int utimens(java.lang.String path)
path - name of the file
public abstract int bmap(java.lang.String path,
long blocksize,
long idx)
path - name of the fileblocksize - block sizeidx - block index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||