Logo Search packages:      
Sourcecode: fuse version File versions  Download package

int(* fuse_operations::readdir)(const char *, void *, fuse_fill_dir_t, off_t, struct fuse_file_info *)

Read directory

This supersedes the old getdir() interface. New applications should use this.

The filesystem may choose between two modes of operation:

1) The readdir implementation ignores the offset parameter, and passes zero to the filler function's offset. The filler function will not return '1' (unless an error happens), so the whole directory is read in a single readdir operation. This works just like the old getdir() method.

2) The readdir implementation keeps track of the offsets of the directory entries. It uses the offset parameter and always passes non-zero offset to the filler function. When the buffer is full (or an error happens) the filler function will return '1'.

Introduced in version 2.3

Definition at line 304 of file fuse.h.

Generated by  Doxygen 1.6.0   Back to index