From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvqCA-0001pY-LB for qemu-devel@nongnu.org; Tue, 23 Aug 2011 08:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvqC9-0004mC-J9 for qemu-devel@nongnu.org; Tue, 23 Aug 2011 08:35:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvqC9-0004li-Bz for qemu-devel@nongnu.org; Tue, 23 Aug 2011 08:35:05 -0400 Message-ID: <4E539F28.9030201@redhat.com> Date: Tue, 23 Aug 2011 14:38:00 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1313450170-22646-1-git-send-email-devin122@gmail.com> In-Reply-To: <1313450170-22646-1-git-send-email-devin122@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qed: make qed_alloc_clusters round up offset to nearest cluster List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Devin Nakamura Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 16.08.2011 01:16, schrieb Devin Nakamura: > Signed-off-by: Devin Nakamura > --- > block/qed.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/block/qed.c b/block/qed.c > index 333f067..9a1e49c 100644 > --- a/block/qed.c > +++ b/block/qed.c > @@ -263,6 +263,8 @@ static int qed_read_string(BlockDriverState *file, uint64_t offset, size_t n, > */ > static uint64_t qed_alloc_clusters(BDRVQEDState *s, unsigned int n) > { > + s->file_size = qed_start_of_cluster(s, s->file_size + > + s->header.cluster_size - 1); > uint64_t offset = s->file_size; > s->file_size += n * s->header.cluster_size; > return offset; Stefan, Devin, have you come to a conclusion about this patch? Kevin