From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: Read/write counts Date: Mon, 4 Jun 2007 11:02:23 -0600 Message-ID: <20070604170223.GF23968@parisc-linux.org> References: <20070604163327.GR5181@schatzie.adilger.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , "David H. Lynch Jr." , linux-fsdevel@vger.kernel.org To: Bryan Henderson Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:37747 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757063AbXFDRCZ (ORCPT ); Mon, 4 Jun 2007 13:02:25 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Jun 04, 2007 at 09:56:07AM -0700, Bryan Henderson wrote: > Programs that assume a full transfer are fairly common, but are > universally regarded as either broken or just lazy, and when it does cause > a problem, it is far more common to fix the application than the kernel. Linus has explicitly forbidden short reads from being returned. The original poster may get away with it for a specialised case, but for example, signals may not cause a return to userspace with a short read for exactly this reason.