From 892710a37abcb10fdcff395a4369efce2af4c63f Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 18 Nov 2009 00:28:49 +0000 Subject: cluster/distribute: copy the stat structure while copying dentries in readdirp_cbk. - only the transformed inode number was being copied, leaving other fields of stat 0. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 371 (rm -rf fails on stat-prefetch.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=371 --- xlators/cluster/dht/src/dht-common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/dht') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 52fecc25502..3a38b67ffa0 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2062,6 +2062,8 @@ dht_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, goto unwind; } + entry->d_stat = orig_entry->d_stat; + dht_itransform (this, prev->this, orig_entry->d_ino, &entry->d_ino); dht_itransform (this, prev->this, orig_entry->d_off, -- cgit