Class CloudAccessFS

  • All Implemented Interfaces:
    ru.serce.jnrfuse.FuseFS, ru.serce.jnrfuse.Mountable

    @FileSystemScoped
    public class CloudAccessFS
    extends ru.serce.jnrfuse.FuseStubFS
    implements ru.serce.jnrfuse.FuseFS
    • Field Summary

      • Fields inherited from class ru.serce.jnrfuse.AbstractFuseFS

        fuseOperations, libFuse, mounted, mountPoint
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int chmod​(String path, long mode)  
      int create​(String path, long mode, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      static CloudAccessFS createNewFileSystem​(org.cryptomator.cloudaccess.api.CloudProvider provider, int timeoutMillis, Path cacheDir, org.cryptomator.cloudaccess.api.CloudPath uploadDir)  
      void destroy​(jnr.ffi.Pointer initResult)  
      int ftruncate​(String path, long size, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int getattr​(String path, ru.serce.jnrfuse.struct.FileStat stat)  
      int mkdir​(String path, long mode)  
      int open​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int opendir​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int read​(String path, jnr.ffi.Pointer buf, long size, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int readdir​(String path, jnr.ffi.Pointer buf, ru.serce.jnrfuse.FuseFillDir filler, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int release​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int releasedir​(String path, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      int rename​(String oldpath, String newpath)  
      int rmdir​(String path)  
      int statfs​(String path, ru.serce.jnrfuse.struct.Statvfs stbuf)  
      int truncate​(String path, long size)  
      int unlink​(String path)  
      int write​(String path, jnr.ffi.Pointer buf, long size, long offset, ru.serce.jnrfuse.struct.FuseFileInfo fi)  
      • Methods inherited from class ru.serce.jnrfuse.FuseStubFS

        access, bmap, chown, fallocate, fgetattr, flock, flush, fsync, fsyncdir, getxattr, init, ioctl, link, listxattr, lock, mknod, poll, read_buf, readlink, removexattr, setxattr, symlink, utimens, write_buf
      • Methods inherited from class ru.serce.jnrfuse.AbstractFuseFS

        getContext, getFSName, mount, umount
      • Methods inherited from interface ru.serce.jnrfuse.FuseFS

        access, bmap, chown, fallocate, fgetattr, flock, flush, fsync, fsyncdir, getxattr, init, ioctl, link, listxattr, lock, mknod, poll, read_buf, readlink, removexattr, setxattr, symlink, utimens, write_buf
      • Methods inherited from interface ru.serce.jnrfuse.Mountable

        mount, mount, mount, mount, umount
    • Method Detail

      • createNewFileSystem

        public static CloudAccessFS createNewFileSystem​(org.cryptomator.cloudaccess.api.CloudProvider provider,
                                                        int timeoutMillis,
                                                        Path cacheDir,
                                                        org.cryptomator.cloudaccess.api.CloudPath uploadDir)
      • statfs

        public int statfs​(String path,
                          ru.serce.jnrfuse.struct.Statvfs stbuf)
        Specified by:
        statfs in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        statfs in class ru.serce.jnrfuse.FuseStubFS
      • getattr

        public int getattr​(String path,
                           ru.serce.jnrfuse.struct.FileStat stat)
        Specified by:
        getattr in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        getattr in class ru.serce.jnrfuse.FuseStubFS
      • opendir

        public int opendir​(String path,
                           ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        opendir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        opendir in class ru.serce.jnrfuse.FuseStubFS
      • readdir

        public int readdir​(String path,
                           jnr.ffi.Pointer buf,
                           ru.serce.jnrfuse.FuseFillDir filler,
                           long offset,
                           ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        readdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        readdir in class ru.serce.jnrfuse.FuseStubFS
      • releasedir

        public int releasedir​(String path,
                              ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        releasedir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        releasedir in class ru.serce.jnrfuse.FuseStubFS
      • open

        public int open​(String path,
                        ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        open in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        open in class ru.serce.jnrfuse.FuseStubFS
      • release

        public int release​(String path,
                           ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        release in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        release in class ru.serce.jnrfuse.FuseStubFS
      • rename

        public int rename​(String oldpath,
                          String newpath)
        Specified by:
        rename in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        rename in class ru.serce.jnrfuse.FuseStubFS
      • mkdir

        public int mkdir​(String path,
                         long mode)
        Specified by:
        mkdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        mkdir in class ru.serce.jnrfuse.FuseStubFS
      • create

        public int create​(String path,
                          long mode,
                          ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        create in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        create in class ru.serce.jnrfuse.FuseStubFS
      • chmod

        public int chmod​(String path,
                         long mode)
        Specified by:
        chmod in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        chmod in class ru.serce.jnrfuse.FuseStubFS
      • rmdir

        public int rmdir​(String path)
        Specified by:
        rmdir in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        rmdir in class ru.serce.jnrfuse.FuseStubFS
      • unlink

        public int unlink​(String path)
        Specified by:
        unlink in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        unlink in class ru.serce.jnrfuse.FuseStubFS
      • read

        public int read​(String path,
                        jnr.ffi.Pointer buf,
                        long size,
                        long offset,
                        ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        read in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        read in class ru.serce.jnrfuse.FuseStubFS
      • write

        public int write​(String path,
                         jnr.ffi.Pointer buf,
                         long size,
                         long offset,
                         ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        write in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        write in class ru.serce.jnrfuse.FuseStubFS
      • truncate

        public int truncate​(String path,
                            long size)
        Specified by:
        truncate in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        truncate in class ru.serce.jnrfuse.FuseStubFS
      • ftruncate

        public int ftruncate​(String path,
                             long size,
                             ru.serce.jnrfuse.struct.FuseFileInfo fi)
        Specified by:
        ftruncate in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        ftruncate in class ru.serce.jnrfuse.FuseStubFS
      • destroy

        public void destroy​(jnr.ffi.Pointer initResult)
        Specified by:
        destroy in interface ru.serce.jnrfuse.FuseFS
        Overrides:
        destroy in class ru.serce.jnrfuse.FuseStubFS