Re: glusterfs_open() glusterfs_fstat() bug?

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

 



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@xxxxxxxxxx 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;

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux