diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-03-23 01:32:20 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-24 00:22:31 -0700 |
commit | 12aefd726dc2b4effcde8136df1f88cebb1084f0 (patch) | |
tree | 76166a97c16e104c7659880ba3f49cc7dc9cfca3 /xlators/cluster | |
parent | 83ab05db5505a033a66385a7e1aaad605fea562b (diff) |
Replace struct stat by struct iatt
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 749 (crash in stripe_readv_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=749
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/stripe/src/stripe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 420f43e20..7ef86e10e 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 */ |