From ca32040f350a7b8ad2e24ee68b417d6bec266038 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 7 Apr 2009 05:42:14 -0700 Subject: libglusterfsclient: Create new directory inode Make sure we give an allocated inode in the loc so that the underlying callbacks are able to fill it with the relevant information about the directory being created. Signed-off-by: Anand V. Avati --- libglusterfsclient/src/libglusterfsclient.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfsclient/src') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 848bda9b524..e7f47240b07 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -3387,6 +3387,7 @@ glusterfs_mkdir (glusterfs_handle_t handle, goto out; } + loc.inode = inode_new (ctx->itable); op_ret = libgf_client_mkdir (ctx, &loc, mode); if (op_ret == -1) { goto out; -- cgit