From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33405 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLyPk-0003Mp-FE for qemu-devel@nongnu.org; Fri, 26 Nov 2010 08:32:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLyPj-0007c2-E8 for qemu-devel@nongnu.org; Fri, 26 Nov 2010 08:32:36 -0500 Received: from verein.lst.de ([213.95.11.210]:54835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLyPj-0007bu-3E for qemu-devel@nongnu.org; Fri, 26 Nov 2010 08:32:35 -0500 Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id oAQDWY88009282 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 26 Nov 2010 14:32:34 +0100 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-7.2) id oAQDWYDG009280 for qemu-devel@nongnu.org; Fri, 26 Nov 2010 14:32:34 +0100 Date: Fri, 26 Nov 2010 14:32:34 +0100 From: Christoph Hellwig Message-ID: <20101126133234.GB9040@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] raw-posix: raw_pwrite comment fixup List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Christoph Hellwig Index: qemu/block/raw-posix.c =================================================================== --- qemu.orig/block/raw-posix.c 2010-11-26 14:27:44.156253530 +0100 +++ qemu/block/raw-posix.c 2010-11-26 14:27:59.812272461 +0100 @@ -463,7 +463,7 @@ static int raw_pwrite(BlockDriverState * count -= ret; sum += ret; } - /* here, count < 512 because (count & ~sector_mask) == 0 */ + /* here, count < sector_size because (count & ~sector_mask) == 0 */ if (count) { ret = raw_pread_aligned(bs, offset, s->aligned_buf, bs->buffer_alignment);