Hi all,

I have a few questions about the correct readdir implementation.

First of all I would like to know what exactly is the meaning of the
'offset' parameter of filldir and whether it is used somewhere? Unlike
ext2, our directories are not easily read sequentially and this value
(copied by filldir to dirent->d_off) seems to be quite useless outside
our fs code.

Related question is what is the correct behaviour of readdir in case
of user's seeking in the directory? If I understand correctly, in case
of ext3 (indexed directories), when seeking is detected, readdir
starts reading from the directory beginning again.

The last is about concurrency. How is solved problem when a directory
is read by readdir and between two readdir calls the same directory is
changed?

TIA

Tomas
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to