summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-04-07 05:42:14 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-08 15:06:09 +0530
commitca32040f350a7b8ad2e24ee68b417d6bec266038 (patch)
treeefb7fb6bf9e158f95ece09b72c6c94780abd46af /libglusterfsclient/src
parent364af2266e9cd9d1f4d88763e61a5b28d1336414 (diff)
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 <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c1
1 files changed, 1 insertions, 0 deletions
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;