[Gluster-devel] How to fix wrong telldir/seekdir usage
Emmanuel Dreyfus
manu at netbsd.org
Sun Sep 14 05:09:45 UTC 2014
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.
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org
More information about the Gluster-devel
mailing list