[Gluster-devel] How to fix wrong telldir/seekdir usage
Pranith Kumar Karampuri
pkarampu at redhat.com
Sun Sep 14 09:33:30 UTC 2014
On 09/14/2014 10:39 AM, Emmanuel Dreyfus wrote:
> Pranith Kumar Karampuri <pkarampu at redhat.com> wrote:
>
>> Just to make sure I understand the problem, the issue is happening
>> because self-heal-daemon uses anonymous fds to perform readdirs? i.e.
>> there is no explicit opendir on the directory. Everytime there is a
>> readdir it may lead to opendir/seekdir/readdir/closedir. Did I get that
>> right?
> Yes, on the brick, it happens in xlator/features/index.
>
>> I believe posix xlator doesn't have this problem for non-anonymous fds
>> where the DIR* stream is open till the final unref on the fd.
> Then perhaps the solution is to change xlator/features/index behavior to
> match xlator/storage/posix? There is also
> xlator/features/snapview-server that may be affected.
>
I can do that. Do we know the answer to Avati's question about how
readdir works for nfs handles?
Pranith
More information about the Gluster-devel
mailing list