[LTP] [PATCH v3 1/3] ltp-aiodio: report posix_memalign errors properly

Jan Stancek jstancek@redhat.com
Fri Jul 15 13:22:00 CEST 2016



----- Original Message -----
> From: "Eryu Guan" <eguan@redhat.com>
> To: ltp@lists.linux.it
> Sent: Wednesday, 13 July, 2016 2:59:00 PM
> Subject: [LTP] [PATCH v3 1/3] ltp-aiodio: report posix_memalign errors	properly
> 
> From posix_memalign(3) the value of errno is indeterminate after a call
> to posix_memalign(). So TERRNO doesn't work in this case.
> dio_sparse    1  TBROK  :  dio_sparse.c:75: posix_memalign():
> errno=SUCCESS(0): Success
> 
> Report posix_memalign() errors by calling strerror on the return value.
> dio_sparse    1  TBROK  :  dio_sparse.c:74: posix_memalign(): EINVAL
> 
> Signed-off-by: Eryu Guan <eguan@redhat.com>

Series pushed. I tested it on 4.7.0-rc7 (which contains your patch),
it completed OK. New cases are very fast, it added just couple ms on
my KVM guest.

Regards,
Jan


More information about the ltp mailing list