summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2009-10-07 12:55:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-07 21:40:07 -0700
commitef488e7cceea97c4e2750b463000a2b77fc82323 (patch)
tree948363d6ce9720f586e4067ebd3d6ef0c58301d6 /libglusterfs/src
parent6215731b42a4149e78fb56cb62c2f2dc571ea2a5 (diff)
assign client_readdirp to .readdirp in protocol/client & fix 2 other bugs in call_stub
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 305 (Readdirp crashes in client protocol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=305
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/call-stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c
index c7da94eb57f..e35a0f85ea0 100644
--- a/libglusterfs/src/call-stub.c
+++ b/libglusterfs/src/call-stub.c
@@ -1848,7 +1848,7 @@ fop_readdirp_cbk_stub (call_frame_t *frame,
ERR_ABORT (stub_entry);
stub_entry->d_off = entry->d_off;
stub_entry->d_ino = entry->d_ino;
-
+ stub_entry->d_stat = entry->d_stat;
list_add_tail (&stub_entry->list,
&stub->args.readdirp_cbk.entries.list);
}
@@ -2237,7 +2237,7 @@ fop_setattr_cbk_stub (call_frame_t *frame,
if (frame == NULL)
goto out;
- stub = stub_new (frame, 1, GF_FOP_SETATTR);
+ stub = stub_new (frame, 0, GF_FOP_SETATTR);
if (stub == NULL)
goto out;