gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] glusterfs_open() glusterfs_fstat() bug?


From: Shehjar Tikoo
Subject: Re: [Gluster-devel] glusterfs_open() glusterfs_fstat() bug?
Date: Thu, 26 Mar 2009 21:08:51 +0530
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

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 address@hidden http://lists.nongnu.org/mailman/listinfo/gluster-devel

diff --git a/libglusterfsclient/src/libglusterfsclient.c 
b/libglusterfsclient/src/libglusterfsclient.c
index 13afb9f..6de8ad8 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -3034,6 +3034,7 @@ libgf_client_fstat (libglusterfs_client_ctx_t *ctx,
        uint64_t ptr = 0;
 
         current = time (NULL);
+        this = ctx->gf_ctx.graph;
        op_ret = inode_ctx_get (fd->inode, this, &ptr);
        if (op_ret == -1) {
                 errno = EINVAL;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]