On Mon, Aug 28, 2006 at 09:28:48PM +0800, Yi Yang wrote:But POSIX also defined ENOTSUP which is equal to EOPNOTSUPP for linux.
In the current implementation of AIO, for the operation IOCB_CMD_FDSYNCHi,
and IOCB_CMD_FSYNC, the returned errno is -EINVAL although the kernel
does know them, I think the correct errno should be -EOPNOTSUPP which
means they aren't be implemented or supported.
If I'm not mistaken, returning EINVAL conforms to POSIX, isn't it?
http://www.opengroup.org/onlinepubs/009695399/functions/fsync.html
Regards,
Frederik