[PATCH] posix_favise{64} error handling fixes [was Re: fadvise gclibc vs uclibc]
Carmelo AMOROSO
carmelo.amoroso at st.com
Thu Sep 18 06:24:50 UTC 2008
Carmelo AMOROSO wrote:
> Khem Raj wrote:
>> On Mon, Sep 15, 2008 at 4:55 AM, Carmelo AMOROSO <carmelo.amoroso at st.com> wrote:
>>> Corinna Schultz wrote:
>>>> Quoting Carmelo AMOROSO <carmelo.amoroso at st.com>:
>>>>> a colleague of mine is right now working to produce a patch for
>>>>> posix_fadvise to fix all LTP tests using posix_fadvise[64].
>>>>>
>>>>> Indeed LTP tests expect that, when posix_fadvise[64] fails,
>>>>> it should return as return value an error code (-errno) instead
>>>>> of simply setting properly errno and returning -1.
>>>> Did you see my earlier message, detailing the errors I'm seeing? I have
>>>> very little experience with this low-level programming, and don't really
>>>> know how to begin fixing it, so if you have people already working on it,
>>>> I'll happily wait for your patch. :) Do you have an estimate of when your
>>>> patch will be available?
>>>>
>>>> -Corinna
>>>>
>>>>
>>>>
>>> Hi Corinna, may you try the attached patch.
>>> It worked fine for NPTL branch solving all LTP posix_fadvise tests.
>>> Let me know, so we can enqueue for commit.
>>>
>>> Thanks to Filippo for having fixed this.
>> It needs to to be tested on all arches which use common/posix_fadvise*
>> implementation.
>>
>> Thanks
>>
>> -Khem
>>
> Well, waiting fro feedback from other archs... I did it on sh4 ;-)
> Carmelo
Does anybody (other than sh4) tried posix_fadvise tests?
Attached you can find the log of LTP running on sh4 target with/without
the fix. As you can see, all LTP tests for posix_fadvise now pass.
Being quite confident in the correctness of the patch, unless someone
else will have problem, I'll commit it.
TIA,
Carmelo
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: posix_fadvise_failure.log
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20080918/5fea8c14/attachment.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: posix_fadvise_fixed.log
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20080918/5fea8c14/attachment-0001.diff
More information about the uClibc
mailing list