fuse_operations.read

Read data from an open file

Read should return exactly the number of bytes requested except on EOF or error, otherwise the rest of the data will be substituted with zeroes. An exception to this is when the 'direct_io' mount option is specified, in which case the return value of the read system call will reflect the return value of this operation.

Changed in version 2.2

struct fuse_operations
int function(const char*, char*, size_t, off_t, fuse_file_info*) read;

Meta