[Openais] possibly bug in saCkptCheckpointRead()
Steven Dake
sdake at mvista.com
Tue Jul 26 12:15:35 PDT 2005
Maxi
Patch attached to fix the problem.
On Tue, 2005-07-26 at 15:29 -0300, Maxi Combina wrote:
> > > The questions are:
> > > 1.- Have I missunderstood the SAF? Or is this bug of openais?
> >
> > thanks for the bug report. this is a bug in openais. I'll post a patch
> > today.
> you are welcome.
>
> >
> > > 2.- If I did not understand the SAF correctly, which is the way to
> > > ensure that Read() has effectively read the requested amount of bytes?
> > > (indicated in the field `dataSize')
> > >
> > openais will read as much of the checkpoint as is available. I suspect
> > the only time datasize could be shorter then the read request is when an
> > offset is read on a small checkpoint with a larger buffer.
>
> mmmm... `dataSize' and `read request' are the same thing...
> are you talking about `readSize' and `read request'? I woul appreciate
> if you can clarify a bit more the above explanation
>
sorry I meant readSize. So basically readSize can be short if section
size - read offset > dataSize. In this case, readSize is limited to the
lesser of those two arguments.
regards
-steve
> Regards,
> Maxi
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defect-784.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20050726/b287a741/defect-784-0001.bin
More information about the Openais
mailing list