I also tested with ALL_O_DIRECT for the innodb_flush_method and it works.
The platform is CentOS 6.3
Now, 22 is "Invalid argument", so either the platform is old (and so doesn't support misaligned O_DIRECT if any) or the filesystem doesn't support it (tmpfs etc.).
I also tested with ALL_O_DIRECT for the innodb_flush_method and it works.
The platform is CentOS 6.3
Now, 22 is "Invalid argument", so either the platform is old (and so doesn't support misaligned O_DIRECT if any) or the filesystem doesn't support it (tmpfs etc.).