diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-10-07 12:55:54 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-07 21:40:07 -0700 |
commit | ef488e7cceea97c4e2750b463000a2b77fc82323 (patch) | |
tree | 948363d6ce9720f586e4067ebd3d6ef0c58301d6 | |
parent | 6215731b42a4149e78fb56cb62c2f2dc571ea2a5 (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
-rw-r--r-- | libglusterfs/src/call-stub.c | 4 | ||||
-rw-r--r-- | xlators/protocol/client/src/client-protocol.c | 1 |
2 files changed, 3 insertions, 2 deletions
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; diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c index ea540c6dc..a798ea9f7 100644 --- a/xlators/protocol/client/src/client-protocol.c +++ b/xlators/protocol/client/src/client-protocol.c @@ -6472,6 +6472,7 @@ struct xlator_fops fops = { .removexattr = client_removexattr, .opendir = client_opendir, .readdir = client_readdir, + .readdirp = client_readdirp, .fsyncdir = client_fsyncdir, .access = client_access, .ftruncate = client_ftruncate, |