[Gluster-devel] glusterfs_open() glusterfs_fstat() glusterfs_readdir() bug?

Serial Thrilla serialthrilla at verizon.net
Thu Mar 26 19:18:07 UTC 2009


Thanks! That patch fixes the glusterfs_fstat() call.
Unfortunately, glusterfs_readdir() wasn't fixed.

Attached is the new code, output, and logs. At the moment there are no 
entries in /home/export/ so I'm not sure why it is returning "f" and 
then another return with no name.

I had an issue before with 3 entries in /home/export (test, test2, 
test3). It was returning 4 items from glusterfs_readdir() and they were 
all one letter names like "P", "[".

The "count" parameter for glusterfs_readdir() doesn't appear to be used 
so I made it 0 for now. Changing it to other values has no effect.


Thanks
Rob


Shehjar Tikoo wrote:
> Hi
> 
> Thanks for the report. The attached patch should fix this problem
> for rc7. The test program, glfs.c, works fine for me with this
> patch applied while using the volfiles supplied. Could you please
> confirm if this works for your setup?
> 
> Thanks
> Shehjar
> 
> Serial Thrilla wrote:
>> Hey all, attached are the code and output of server and client.
>>
>> *Please be aware that the server and client run on the same machine*
>>
>> glusterfs_open() will return a file descriptor but glusterfs_fstat()
>>  returns -1 for that descriptor.
>>
>> Is it normal for the file descriptor to change on each call to 
>> glusterfs_open() despite the same parameters?
>>
>> Also, I was having issues with glusterfs_readdir() but that wasn't 
>> working either so I suspect there's an issue with the descriptor.
>>
>> Please let me know if you need any more info.
>>
>> Attn core developers: Please let me know if you would like access to 
>> my dev box and I'll be happy to provide it.
>>
>> Thanks Rob
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________ Gluster-devel mailing
>>  list Gluster-devel at nongnu.org 
>> http://lists.nongnu.org/mailman/listinfo/gluster-devel
> 
> 
> ------------------------------------------------------------------------
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.238 / Virus Database: 270.11.29/2024 - Release Date: 03/26/09 07:12:00
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glfs.c.output.txt
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090326/45334f4f/attachment-0012.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glfs.c.txt
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090326/45334f4f/attachment-0013.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glusterfsd.log.txt
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090326/45334f4f/attachment-0014.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glusterfs.log.txt
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090326/45334f4f/attachment-0015.txt>


More information about the Gluster-devel mailing list