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 n7QMAD2m046212 for ; Wed, 26 Aug 2009 17:10:28 -0500 Received: from bombadil.infradead.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 01370154E801 for ; Wed, 26 Aug 2009 15:11:06 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by cuda.sgi.com with ESMTP id Z0nPe9DfWeRfnTvT for ; Wed, 26 Aug 2009 15:11:06 -0700 (PDT) Date: Wed, 26 Aug 2009 18:11:06 -0400 From: Christoph Hellwig Subject: Re: [PATCH] xfs_io: actually issue 0 size writes Message-ID: <20090826221106.GB18119@infradead.org> References: <4A849096.1010600@sandeen.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4A849096.1010600@sandeen.net> 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: Eric Sandeen Cc: xfs mailing list On Thu, Aug 13, 2009 at 05:15:50PM -0500, Eric Sandeen wrote: > While testing some stuff in generic_write_checks() in the > kernel I realized that you can't actually use xfs_io to send > a 0-byte write in. This is actually a condition worth testing: > > If count is zero and fd refers to a regular file, > then write() may return a failure status if one of > the errors below is detected. If no errors are > detected, 0 will be returned without causing any > other effect. > > So fix that up. > > Signed-off-by: Eric Sandeen Any reason you didn't put this in despite two positive reviews? _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs