diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-07 05:42:14 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-08 15:06:09 +0530 |
commit | ca32040f350a7b8ad2e24ee68b417d6bec266038 (patch) | |
tree | efb7fb6bf9e158f95ece09b72c6c94780abd46af | |
parent | 364af2266e9cd9d1f4d88763e61a5b28d1336414 (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>
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 848bda9b5..e7f47240b 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; |