public int write(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi) { if (size > Integer.MAX_VALUE) {
public int read(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi) {
/** * Read the target of a symbolic link * <p> * The buffer should be filled with a null terminated string. The * buffer size argument includes the space for the terminating * null character. If the linkname is too long to fit in the * buffer, it should be truncated. The return value should be 0 * for success. */ int readlink(String path, Pointer buf, @size_t long size);
/** * Map block index within file to block index within device * <p> * Note: This makes sense only for block device backed filesystems * mounted with the 'blkdev' option * * @param idx block index within file * @param blocksize unit of block index */ int bmap(String path, @size_t long blocksize, long idx);
/** * Get the attribute NAME of the file pointed to by PATH to VALUE (which is * SIZE bytes long). * * @return Return 0 on success, -1 for errors. */ int getxattr(String path, String name, Pointer value, @size_t long size);
/** * Map block index within file to block index within device * <p> * Note: This makes sense only for block device backed filesystems * mounted with the 'blkdev' option * * @param idx block index within file * @param blocksize unit of block index */ int bmap(String path, @size_t long blocksize, long idx);
/** * Set the attribute NAME of the file pointed to by PATH to VALUE (which * is SIZE bytes long). * * @param flags @see {@link ru.serce.jnrfuse.flags.XAttrConstants} * @return Return 0 on success, -1 for errors. */ int setxattr(String path, String name, Pointer value, @size_t long size, int flags);
/** * List extended attributes * <p> * The retrieved list is placed * in list, a caller-allocated buffer whose size (in bytes) is specified * in the argument size. The list is the set of (null-terminated) * names, one after the other. Names of extended attributes to which * the calling process does not have access may be omitted from the * list. The length of the attribute name list is returned */ int listxattr(String path, Pointer list, @size_t long size);
/** * Set the attribute NAME of the file pointed to by PATH to VALUE (which * is SIZE bytes long). * * @param flags @see {@link ru.serce.jnrfuse.flags.XAttrConstants} * @return Return 0 on success, -1 for errors. */ int setxattr(String path, String name, Pointer value, @size_t long size, int flags);
/** * List extended attributes * <p> * The retrieved list is placed * in list, a caller-allocated buffer whose size (in bytes) is specified * in the argument size. The list is the set of (null-terminated) * names, one after the other. Names of extended attributes to which * the calling process does not have access may be omitted from the * list. The length of the attribute name list is returned */ int listxattr(String path, Pointer list, @size_t long size);
/** * Read the target of a symbolic link * <p> * The buffer should be filled with a null terminated string. The * buffer size argument includes the space for the terminating * null character. If the linkname is too long to fit in the * buffer, it should be truncated. The return value should be 0 * for success. */ int readlink(String path, Pointer buf, @size_t long size);
/** * Get the attribute NAME of the file pointed to by PATH to VALUE (which is * SIZE bytes long). * * @return Return 0 on success, -1 for errors. */ int getxattr(String path, String name, Pointer value, @size_t long size);
@Override @NotImplemented public int setxattr(String path, String name, Pointer value, @size_t long size, int flags) { return 0; }
@Override @NotImplemented public int setxattr(String path, String name, Pointer value, @size_t long size, int flags) { return 0; }
@Override @NotImplemented public int readlink(String path, Pointer buf, @size_t long size) { return 0; }
@Override @NotImplemented public int getxattr(String path, String name, Pointer value, @size_t long size) { return 0; }
@Override @NotImplemented public int listxattr(String path, Pointer list, @size_t long size) { return 0; }
@Override @NotImplemented public int bmap(String path, @size_t long blocksize, long idx) { return 0; }
/** * Write data to an open file * <p> * Write should return exactly the number of bytes requested * except on error. An exception to this is when the 'direct_io' * mount option is specified (see read operation). */ int write(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi);
@Override @NotImplemented public int listxattr(String path, Pointer list, @size_t long size) { return 0; }