LINUX: Detect non-vectorized aio functions
authorAndrew Deason <adeason@sinenomine.net>
Wed, 29 Aug 2012 19:14:39 +0000 (14:14 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 30 Aug 2012 16:03:09 +0000 (09:03 -0700)
commite5ba359f64b5d8d874a31a50694398c17f27cfa1
tree3b5ce61ae8d03ca3bb538e5ccc37364a073b040e
parent5daa08ea263b2a82b4a85abd61d72d4d1f48bbb6
LINUX: Detect non-vectorized aio functions

In kernels before 027445c3, the functions generic_file_aio_read and
generic_file_aio_write, as well as the fs operations aio_read and
aio_write, do not deal with iovecs but rather just use a single
buffer. Detect this, so our aio_read and aio_write implementations
have the correct signatures.

This removes several warnings on such kernels.

Change-Id: I70aa0d43bac5545d83710806b58f36d13d7f6cc8
Reviewed-on: http://gerrit.openafs.org/8020
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
acinclude.m4
src/afs/LINUX/osi_vnodeops.c
src/cf/linux-test4.m4