- All Superinterfaces:
AutoCloseable,org.cryptomator.jfuse.api.FuseOperations
- All Known Implementing Classes:
ReadOnlyAdapter,ReadWriteAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cryptomator.jfuse.api.FuseOperations
org.cryptomator.jfuse.api.FuseOperations.Operation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default value for the maximum supported filename length.Fields inherited from interface org.cryptomator.jfuse.api.FuseOperations
FUSE_READDIR_PLUS -
Method Summary
Methods inherited from interface org.cryptomator.jfuse.api.FuseOperations
access, chmod, chown, create, destroy, errno, fallocate, flock, flush, fsync, fsyncdir, getattr, getxattr, init, ioctl, link, listxattr, mkdir, mknod, open, opendir, read, readdir, readlink, release, releasedir, removexattr, rename, rmdir, setxattr, statfs, supportedOperations, symlink, truncate, unlink, utimens, write
-
Field Details
-
DEFAULT_MAX_FILENAMELENGTH
static final int DEFAULT_MAX_FILENAMELENGTHThe default value for the maximum supported filename length.- See Also:
-
-
Method Details
-
isInUse
boolean isInUse()Checks if the filesystem is in use (and therefore an unmount attempt should be avoided).Important: This function only checks, like the name suggests, if the filesystem is busy and used. A return value of
falseshould not be considered as an unmount can be safely and successfully executed and thus an unmount may fail.API note: It is the task of the fs developer to decide what "in use" means. For example, "in use" can mean there are open resources or pending operations. Additionally no guarantees about the validity of the result after the call is made, i.e. the result may be immediately outdated.
- Returns:
- true if the filesystem is in use
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-