xfs
[Top] [All Lists]

Re: O_DIRECT buglet

To: Lennert Buytenhek <buytenh@xxxxxxx>
Subject: Re: O_DIRECT buglet
From: Steve Lord <lord@xxxxxxx>
Date: Mon, 02 Apr 2001 13:17:38 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from Lennert Buytenhek <buytenh@xxxxxxx> of "Sun, 01 Apr 2001 12:12:48 EDT." <20010401121248.A14579@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> (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



<Prev in Thread] Current Thread [Next in Thread>