aio-dio-regress: fix aio-dio-extend-stat on s390
authorEric Sandeen <sandeen@sandeen.net>
Thu, 4 Jun 2009 21:32:24 +0000 (16:32 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 4 Jun 2009 21:32:24 +0000 (16:32 -0500)
commit8eac986fe42ab1aa1f2a0bb11dbe993ff2412c24
treec1e381cdd55d0f1bc8b55ee9e2c034495db6a2ef
parent66b36d19521bfef8fe40cfa9303f0117382cc9d8
aio-dio-regress: fix aio-dio-extend-stat on s390

This patch:

o Changes the BUFSIZE to 4096 so that we can successfully perform direct
  I/O on devices that have a sector size of 4k, such as the virtual disks
  found on the s390 architecture.
o Removes an unused variable.
o Checks the proper field in the ioevent to determine if there was an
  error in the I/O submission.

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