]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
aio-dio-regress: fix aio-dio-extend-stat on s390
authorJeff Moyer <jmoyer@redhat.com>
Wed, 3 Jun 2009 20:11:24 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jun 2009 20:11:24 +0000 (15:11 -0500)
commit6b26794772a4acbe8df1cc48d7a169011268d97e
tree5551a726ad834f84a36fdfc59003a8f6b3058c0d
parent4683b6d261cb9e93a22c258d2d82082f0416b37c
aio-dio-regress: fix aio-dio-extend-stat on s390

Hi,

The following patch queries the sector size of the underlying device so
that we can size the write buffer appropriately.  Without this patch, we
try to do an O_DIRECT write of 1KB to a device that has a sector size of
4KB.  This returns EINVAL, of course.  I also noticed that the test was
not checking the right fields for the return code.  It was checking the
original iocb's nbytes field instead of event->res.  So, I fixed that.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
src/aio-dio-regress/aio-dio-extend-stat.c