From 12aefd726dc2b4effcde8136df1f88cebb1084f0 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 23 Mar 2010 01:32:20 +0000 Subject: Replace struct stat by struct iatt Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 749 (crash in stripe_readv_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=749 --- xlators/cluster/stripe/src/stripe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 420f43e20a4..7ef86e10eb9 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -579,7 +579,7 @@ stripe_entry_self_heal (call_frame_t *frame, xlator_t *this, rframe->local = rlocal; rlocal->call_count = priv->child_count; loc_copy (&rlocal->loc, &local->loc); - memcpy (&rlocal->stbuf, &local->stbuf, sizeof (struct stat)); + memcpy (&rlocal->stbuf, &local->stbuf, sizeof (struct iatt)); /* "Before it was struct stat" */ while (trav) { if (IA_ISREG (local->stbuf.ia_type)) { @@ -2888,7 +2888,7 @@ stripe_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this, * different than what inode will have. Make sure this doesn't * cause any bugs at higher levels */ memcpy (&tmp_stbuf, &main_local->replies[0].stbuf, - sizeof (struct stat)); + sizeof (struct iatt)); /* "Before it was struct stat" */ for (index=0; index < main_local->wind_count; index++) { /* check whether each stripe returned * 'expected' number of bytes */ -- cgit