Interface NativeFileSystem


  • public interface NativeFileSystem
    Native file system API.
    • Method Detail

      • getFileSystemBlockSize

        int getFileSystemBlockSize​(Path path)
        Parameters:
        path - Path.
        Returns:
        File system block size in bytes.
      • getFileSystemBlockSize

        int getFileSystemBlockSize​(int fd)
        Parameters:
        fd - Native file descriptor.
        Returns:
        File system block size in bytes.
      • punchHole

        void punchHole​(int fd,
                       long off,
                       long len)
        Parameters:
        fd - Native file descriptor.
        off - Offset of the hole.
        len - Length of the hole.
      • getSparseFileSize

        long getSparseFileSize​(int fd)
        Parameters:
        fd - Native file descriptor.
        Returns:
        Approximate system dependent size of the sparse file.