Re: [Gluster-devel] How to fix wrong telldir/seekdir usage

2014-09-14 Thread Pranith Kumar Karampuri
On 09/14/2014 10:39 AM, Emmanuel Dreyfus wrote: Pranith Kumar Karampuri pkara...@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

Re: [Gluster-devel] How to fix wrong telldir/seekdir usage

2014-09-14 Thread Emmanuel Dreyfus
'Pranith Kumar Karampuri pkara...@redhat.com wrote: I can do that. That will teach me about that anonymous fd. Reading the code it seems afr-self-heald.c code does opendir and use the fd for readdir syncop, which suggest underlying xlator will use the same DIR *, but logging in index.c I can

Re: [Gluster-devel] How to fix wrong telldir/seekdir usage

2014-09-14 Thread Pranith Kumar Karampuri
On 09/14/2014 10:41 PM, Emmanuel Dreyfus wrote: 'Pranith Kumar Karampuri pkara...@redhat.com wrote: I can do that. That will teach me about that anonymous fd. Reading the code it seems afr-self-heald.c code does opendir and use the fd for readdir syncop, which suggest underlying xlator will

Re: [Gluster-devel] How to fix wrong telldir/seekdir usage

2014-09-14 Thread Emmanuel Dreyfus
Pranith Kumar Karampuri pkara...@redhat.com wrote: If we hit a dead-end there we should make this change in self-heald.c Keep us posted. Sure. In the meantime I am stil linterested by your change about non anonymous fd in features/index -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz