From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n36GXqX7177782 for ; Mon, 6 Apr 2009 11:34:08 -0500 Date: Mon, 6 Apr 2009 12:33:31 -0400 From: Christoph Hellwig Subject: Re: [PATCH] xfstests: fix async io error handling in fsx Message-ID: <20090406163331.GA22240@infradead.org> References: <1239031576-26279-1-git-send-email-felixb@sgi.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1239031576-26279-1-git-send-email-felixb@sgi.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Felix Blyakher Cc: xfs@oss.sgi.com On Mon, Apr 06, 2009 at 10:26:16AM -0500, Felix Blyakher wrote: > The result of async io returned in the event.res in addition > to the number of bytes read/written provides negated error > number. The broken libaio defines event.res as unsigned > while the same structure in the kernel defines it as signed. > The kernel indeed treats it as signed, and returns the > negated error number. Till libaio is fixed we provide > the signed long temp var. > Also set errno for each error condition in aio_rw, as the > caller is not aio aware and expects ret(-1)+errno by the > traditional libc convention. Looks good. Reviewed-by: Christoph Hellwig _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs