[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060829190411.GK18092@kvack.org>
Date: Tue, 29 Aug 2006 15:04:11 -0400
From: Benjamin LaHaise <bcrl@...ck.org>
To: Zach Brown <zab@...bo.net>
Cc: Yi Yang <yang.y.yi@...il.com>, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...l.org>, linux-aio <linux-aio@...ck.org>
Subject: Re: [2.6.18-rc* PATCH RFC]: Correct ambiguous errno of aio
On Tue, Aug 29, 2006 at 11:32:05AM -0700, Zach Brown wrote:
> Like it or not, the sys_io_submit() interface returns -EINVAL when the
> file descriptor doesn't support the requested command. Changing the
> binary interface is a big deal and should not be done lightly. What is
> the motivation for making this change?
-EOPNOTSUPP also gives the wrong error message, as it is a networking
error. Any program which knows that it is submitting a correctly filled
in set of parameters can deduce the reason for the -EINVAL. Changing it
otherwise would result in behaviour outside of that specified in the man
page (which lists reasons for the -EINVAL result).
-ben
--
"Time is of no importance, Mr. President, only life is important."
Don't Email: <dont@...ck.org>.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists