obd_id id = oa->o_id;
memcpy(oa, &tmp, sizeof(tmp));
oa->o_id = id;
+ } else {
+ oa->o_size += tmp.o_size;
}
+
}
RETURN(rc);
}
return 0xffffffffffffffff;
}
- if ( (i+1) * ssz < off )
- out += ssz;
+ if ( (i+1) * ssz <= off )
+ out += (i+1) * ssz;
else if ( i * ssz > off )
out += 0;
else
shift = stripeinfo[which].index;
ioarr[shift + stripeinfo[which].subcount] = pga[i];
- pga[i].off = lov_offset(md, pga[i].pg->index * PAGE_SIZE, which);
+ ioarr[shift + stripeinfo[which].subcount].off = lov_offset(md, pga[i].pg->index * PAGE_SIZE, which);
stripeinfo[which].subcount++;
}