From ef488e7cceea97c4e2750b463000a2b77fc82323 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Wed, 7 Oct 2009 12:55:54 +0000 Subject: assign client_readdirp to .readdirp in protocol/client & fix 2 other bugs in call_stub Signed-off-by: Anand V. Avati BUG: 305 (Readdirp crashes in client protocol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=305 --- libglusterfs/src/call-stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c index c7da94eb5..e35a0f85e 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; -- cgit