[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: O_DIRECT buglet



> (Not on the list, please CC on replies)
> 
> Hi,
> 
> Doing O_DIRECT I/O to a buffer which is not on an appropriate block boundary
> seem to fail with return code 22 instead of -22 (EINVAL). This is on 2.4.2
> with an XFS tree checkout from 20010329.
> 
> 
> tia,
> Lennert
> 

Yep, this code has negated error code returns in it. Irix keeps errno
values positive in the kernel and only at the system call level do they
get flipped, the linux convention of when they get set negative is different.
We are doing a check to look for other occurences of this and a fix with
all the cases we find should be along fairly soon.

Steve