Add warning about potentially missing O_DIRECT support or bad alignment
authorJens Axboe <jens.axboe@oracle.com>
Fri, 3 Jul 2009 06:38:50 +0000 (08:38 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 3 Jul 2009 06:38:50 +0000 (08:38 +0200)
commitcb21168269d746d80d82f28ed4db65c2750a8fd7
treed70c0ce50c59d22bf5e7d0320c9c7ad37024d439
parent8b5f73134cfaab8e3f72bea4166e57c59c635b69
Add warning about potentially missing O_DIRECT support or bad alignment

If the first O_DIRECT fails, then it's likely because:

1) The file system does not support O_DIRECT, or
2) The user set iomem_align to an unsupported value.

Let the user know, otherwise they only see EINVAL and may not realize
why things aren't working.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
ioengines.c